Everybody wants less bugs in their code but nobody wants to _______.
use #vscode 😅
declare variables right before they're used
keep methods short and sweet
read the docs first. well, at least some of it
name your classes well. cmon now with meaning!
name your methods even better
make a class do just one thing. no multitasking ish
declare variables right before they're used
"refactor towards deeper insight" #ddDesign 🤓😅
add behavior (methods other that getters and setters) to objects, not just fields
rebuke anemic domain models. unless you have to use em
think twice about deeply nested loops and ifs. use em if u need to. just think twice is all
refactor methods that take too many params (if you gotta ask if it's too many, it is)
read that book "domain driven design", aka the blue book
think before you code. measure twice cut once.
ask ask ask mad questions to clarify the requirements
You can follow @refactorfiend.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: