Misunderstanding Context

Over the last few days I’ve been involved in a discussion on LinkedIn[1]. It has been interesting as it shows how many people still misunderstand many of the intricacies of context and, in particular, how it ties in with the values returned from subroutines. The original question asked why these two pieces of code acted […]

How Well Can You Read Documentation?

(I was going to call this post “How well do you understand context?” but I think this title is more accurate). I just saw someone recommending this code:

Looks sensible enough, doesn’t it? But it isn’t. What’s the hidden inefficiency?