

There will be times when you have to handle uncommon scenarios where there aren’t established conventions. Comment all atypical code, but don’t let it replace code readability Consider refactoring if it’s more than two levels deep, by having root level return conditions, shorter blocks and abstracting nested logic to its own functions.Ĩ.

Nesting is a sure fire way to increase the complexity of your code and make it much harder to read and comprehend. Stop having long logical conjunctions and simplify your code with optional chaining. Utilise regex when needing to search stringsĪlthough regex can seem esoteric from the outside, it is such a powerful string parsing tool and allows you to construct complex patterns to account for a variety of difficult string matching scenarios. Template strings will allow you to inject values into the string while preserving the format and the code is much more reader friendly than doing string arithmetic.ĥ.

You can use various tools to track your technical debt but the quickest and easiest way to get started is to use the free Stepsize extensions for VSCode and JetBrains that integrate with Jira, Linear, Asana and other project management tools.
