567 karma · joined July 18, 2021
It wouldn't be entrapment unless the NCA was proactively coercing people into placing orders. (you can't have a contract for something illegal so there'd be no right of action)
One I see all the time from beginners is creating a finite state machine using one method per state and jumping between states by calling the next state’s method from within the current state’s method. Essentially just emulating goto with the added disadvantage that you’re pushing each new state onto the stack until it overflows, so refactoring it using goto would constitute an improvement.
The fact that beginners reinvent this pattern over and over demonstrates it’s easier for people unfamiliar with programming to reason about a program that uses goto, which would explain why it was so ubiquitous in the early days of computing and given its shallower learning curve its usefulness as a teaching aid as a first step before structured programming is being overlooked.
I heard this quote by John Maynard Keynes writing in 1919 about life before the First World War that reminded me of anyone claiming how lucky the current generation is to have smartphones provide modern marvels like Amazon next day delivery-
> The inhabitant of London could order by telephone, sipping his morning tea in bed, the various products of the whole earth, in such quantity as he might see fit, and reasonably expect their early delivery upon his doorstep;
We might have supercomputers in our pockets, but people just use them to do a budget version of things everyone has been doing for 100 years because they can't afford the real thing anymore.