You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: