4 ms·
Your get_cached_user function is very authentic and is a great example of the kind of hairy code that a programmer should be looking for in his own code. There
by jrockway 15y ago
Your get_cached_user function is very authentic and is a great example of the kind of hairy code that a programmer should be looking for in his own code. There is no need to backpedal on this choice of example; it's fine.
You should go one step further and conclude that nesting is a warning sign often indicative of bad code, and that just fixing the nesting is not the solution to the problem.