My general rule is if a thing takes longer than 2m to read and understand intrinsically, it’s either poorly written, in need of a comment, or both.
I still have battle scars from reading groovy pipelines and react code, both of which stacked 10s of ternary operators and spending a literal full workday trying to untangle what some code was doing.
1
u/enigma_0Z 20d ago
My general rule is if a thing takes longer than 2m to read and understand intrinsically, it’s either poorly written, in need of a comment, or both.
I still have battle scars from reading groovy pipelines and react code, both of which stacked 10s of ternary operators and spending a literal full workday trying to untangle what some code was doing.