shittier icon indicating copy to clipboard operation
shittier copied to clipboard

Line spacing

Open lukepuplett opened this issue 1 year ago • 0 comments

The worst code has bizarre line-space grouping so you think you see blocks of logic where there are none. The best place for this is anything in a book or sample, where suckers who are learning don’t know any better.

It should also rename things, but subtly. So, remove any verbs so the caller can't tell if the call might mutate state or have side-effects.

Also, where you have e.g. a count of cats, call that variable just cats so it appears as if it could reasonably contain the actual iterable of cats, but also contain the count of cats such that you're bound to lose in an argument with the author.

This could be part of a new tool call refuctor.

lukepuplett avatar Feb 27 '24 13:02 lukepuplett