by AlexC04 · 10y ago · 0 comments
This is going to be a black mark on my OCD coder's soul for the rest of time. A code typo immortalised next to my name.
/sigh.
There's a lesson for me... Never. Ever. Attempt to be clever on hackernews.
Thanks for pointing it out.
... I wonder if HN mods would be willing to spare me this suffering. Undoubtedly a waste of their time.
Seriously, the original code is not too bad and probably what most people would write if the inputs and functionality of that function are only complex enough. "Hm, what else goes into isPrepared? Do I have to consider anything else before returning true or false?"