#refactoring
Read more stories on Hashnode
Articles with this tag
Pass by copy, pass by reference. which is better? · TL;DR: Beware of passing arguments by reference Problems Unexpected Results Side...
Don't abuse this fancy operator · TL;DR: Use comma operator just for loops Problems Readability Hidden Defects Solutions Avoid operator...
You need to return more than one object · TL;DR: Don't return multiple values. Problems Coupling Missing...
If you miss a comma, you are concatenating · TL;DR: Watch out for fancy language assumptions Problems Possible defects The least surprise principle...
You create empty methods instead of failing TL;DR: Don't fill in methods to comply Problems Fail Fast Principle Violation Solutions Throw an...
Metaprogramming is always a problem · TL;DR: Don't allow remote code execution Problems Security Solutions Validate and sanitize input Avoid...