Maximiliano Contieri - Software Design

Maximiliano Contieri - Software Design

Follow
homeDesignCode SmellsBloggingProductivityAboutSupport Me
Tag

refactoring

#refactoring

More content

Read more stories on Hashnode


Articles with this tag

Code Smell 225 - Pass by Reference

Sep 25, 20233 min read 62 views

Pass by copy, pass by reference. which is better? · TL;DR: Beware of passing arguments by reference Problems Unexpected Results Side...

Code Smell 225 - Pass by Reference

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 220 - Return Tuple

Aug 2, 20232 min read 97 views

You need to return more than one object · TL;DR: Don't return multiple values. Problems Coupling Missing...

Code Smell 220 - Return Tuple

Code Smell 218 - Magic Concatenation

Jul 16, 20232 min read 173 views

If you miss a comma, you are concatenating · TL;DR: Watch out for fancy language assumptions Problems Possible defects The least surprise principle...

Code Smell 218 - Magic Concatenation

Code Smell 217 - Empty Implementation

Jun 18, 20232 min read 109 views

You create empty methods instead of failing TL;DR: Don't fill in methods to comply Problems Fail Fast Principle Violation Solutions Throw an...

Code Smell 217 - Empty Implementation

Code Smell 215 - Deserializing Object Vulnerability

Jun 1, 20232 min read 80 views

Metaprogramming is always a problem · TL;DR: Don't allow remote code execution Problems Security Solutions Validate and sanitize input Avoid...

Code Smell 215 - Deserializing Object Vulnerability