Some small practices in programming can have a continuously negative impact on the code we write and the product we create as the end result. It’s important to share what they are and why you should avoid them at all costs. Here are a few tips and reminders to help you write code comments like a pro.

4m read timeFrom blog.gogrow.dev
Post cover image
Table of contents
1. Using var instead of let and const2. Using comments to explain the code3. Using == instead of ===4. Forgetting to use optional chaining5. Not using magic strings and magic numbers6. Improperly handling API call errors7. Using an object as a single parameter8. Forgetting the power of abbreviationsConclusion
66 Comments

Sort: