News for hackers. Stuff that matters.
Re:Simple Ways of Reducing the Cognitive Load in Code by robmcm on Wednesday June 29, 2016 @04:56AM (#12000338)
Remember this is in the case of spiting out smaller functions to improve readability.

Variable naming will only add to that, as you can rename variables in the extracted methods for their local purpose.

If you have too many arguments you can package them up in a object/map/tuple of your choosing (depending on language).

(Reverting to local state would in my opinion increase confusion and decrease readability.)

There are no comments on this comment yet.