All tags

Posts tagged: #maintainability

Why is reading bad code so painful?!

4 minute read
🎙️ Listen to the podcast episode here 🎙️ I was reading some code recently that had a bunch of problems at various layers, and in spite of all my years of coding and the fact that it's not even my projec…
Read More

Always Add Argument (Parameter) Names

6 minute read
An argument (lol) for the use of explicit argument names in C# function calls even when they seem redundant. You can assert correctness when reviewing the call site in a dumb text display (e.g. a pat…
Read More

Single class per file

3 minute read
Reasons you should prefer a single class / interface / record / enum / struct per file in C# projects. Congitive load Multiple types per file increases the cognitive overhead of remembering where ever…
Read More

Always add braces

1 minute read
Small matter of code style that I keep coming across. Whether to write if (thing) Action(); or if (thing) Action(); or if (thing) { Action(); } We should always use the braces to avoid introducing …
Read More