diff --git a/source/_daily_emails/2025-02-21.md b/source/_daily_emails/2025-02-21.md new file mode 100644 index 00000000..bd8a740c --- /dev/null +++ b/source/_daily_emails/2025-02-21.md @@ -0,0 +1,27 @@ +--- +title: More code, more problems +date: 2025-02-21 +permalink: daily/2025/02/21/more +tags: + - software-development +cta: ~ +snippet: | + The more code there is in your application, the problems you could encounter. +--- + +An interesting exercise is to run a tool like [cloc][0] to count the number of lines in your application. + +It counts the number of files and lines within them, as well as how many lines are blank, comments or code. + +It's a metric that I like to check occasionally as I like to keep codebases lean and with the minimum amount of code. + +I don't like to have features that aren't used or [pre-optimised code][1] for use cases that may not happen. + +The more code there is in your application, the problems you could encounter. + +There are more places for bugs and issues to hide. + +Keeping the amount of code to a minimum makes it quicker and easier to write, review and release as well as fix any bugs that are found in the future. + +[0]: https://github.com/AlDanial/cloc +[1]: {{site.url}}/daily/2025/02/16/pre-optimise