#software-engineering
Read more stories on Hashnode
Articles with this tag
Sayit once and only once · Sayit once and only once TL;DR: Avoid duplicate email validations. Problems Addressed Repeated email validation logic in...
Defaults Can Sink You · TL;DR: Treat unknown responses as unauthorized, not as valid. Problems Security risks Ignoring unknown cases Error...
When Equals and HashCodes Misbehave · TL;DR: Misaligned equals() and hashCode() break collections. Problems The least surprise principle...
Avoid Ambiguous Naming for Path Variables · TL;DR: Use clear names for better code understanding. Problems Unclear variable purpose Bijection Fault...
Check the happy path to be happy · TL;DR: Ensure you fail the test when no exception is thrown in invalid conditions. Problems Silent faulty...
Stop the Return Rollercoaster · TL;DR: Prevent chaining return statements for better code readability and flow. Problems Confusing flow Hard to...