Maximiliano Contieri - Software Design

Maximiliano Contieri - Software Design

Follow
homeDesignCode SmellsBloggingProductivityAboutSupport Me
Tag

Programming Tips

#programming-tips

More content

Read more stories on Hashnode


Articles with this tag

Code Smell 224 - Deodorant Comments

Sep 10, 20232 min read 99 views

You use nice words to excuse bad code · TL;DR: Don't excuse bad code. Write a clean one! Problems Readability Solutions Rewrite the code and delete...

Code Smell 224 - Deodorant Comments

Code Smell 222 - Comma Operator

Aug 28, 20232 min read 79 views

Don't abuse this fancy operator · TL;DR: Use comma operator just for loops Problems Readability Hidden Defects Solutions Avoid operator...

Code Smell 222 - Comma Operator

Code Smell 221 - Missing Break in Switch

Aug 6, 20232 min read 65 views

You abuse cases in switches and make subtle mistakes · TL;DR: Cases are GOTOs, but you might be missing them Problems Hidden...

Code Smell 221 - Missing Break in Switch

Code Smell 219 - Looping from index 0

Jul 24, 20232 min read 202 views

Counting from zero seems natural. Doesn't it? · TL;DR: Start counting from one instead of zero. Like humans do. Problems Bijection from real-world...

Code Smell 219 - Looping from index 0

ㄥ8Ɩ llǝɯS ǝpoƆ - spɹɐʍʞɔɐq ǝslƎ/ℲI

Dec 17, 20222 min read 176 views

The first thing we read after the if the condition is the IF · TL;DR: You have the important else condition on the...

ㄥ8Ɩ llǝɯS ǝpoƆ - spɹɐʍʞɔɐq ǝslƎ/ℲI

Code Smell 175 - Changes Without Coverage

Oct 31, 20222 min read 110 views

If your merge request has no test changed, you haven't finished your job · If your merge request has no test changed, you haven't finished your...

Code Smell 175 - Changes Without Coverage