Use early returns for gates.
Use functions for complicated "getters" (this is actually a move beyond their "getTheme" or "getDashboard" kinda examples".
Dont use complex nested of ternary or null coalescence.
Yep. Syntax sugars exist for a reason. Abusing any feature in a language will make it hard to read. Just take a look at the other article posted about building pipeline. Or heck, any other design pattern that becomes dogma like OOP in Java.
Use early returns for gates.
Use functions for complicated "getters" (this is actually a move beyond their "getTheme" or "getDashboard" kinda examples".
Dont use complex nested of ternary or null coalescence.
Ie. Write readable code, not code golf.
Has some good examples of what not to do.
Yep. Syntax sugars exist for a reason. Abusing any feature in a language will make it hard to read. Just take a look at the other article posted about building pipeline. Or heck, any other design pattern that becomes dogma like OOP in Java.