For dev bloggers
Start publishing articles on your own domain with Hashnode and tag them with #clean-code. Learn more
📢 Hashnode + Vercel
15 Jan - Feb 7 (3 Weeks)
sort, sortOld, sort20210117, workingSort, It is great to have them all. Just in case
Keep just one …
We want our code to behave different on different environments, operating systems, so taking decisions at compile time is the best decision, isn't it?…
If you see your objects as data holders you will violate their encapsulation but you shouldn't, as in real life, you should always ask for consent.
Code is there. Just in case. We might need it soon.
Remove dead code.
Leave covered and real tested code.…
We learned loops back in school. But enumerators and iterators are the next generation.