Bugs in Hello World
I’m disappointed. I expected some obscure edgecase (like “Main is usually a function…” [1]) but instead that’s about scope handling, contract design and responsibility shift.<p>“Hello world” method simply calls an API to a text interface. It uses simple call, to a simple interface that is expected to be ever present. I don’t find any bug there. It won’t work if such interface isn’t available, is blocked or doesn’t exist. It won’t work on my coffee grinder nor on my screwdriver. It won’t work on my Arduino because there is no text interface neither.<p>Of course, one could argue that user might expect you to handle that error. That’s all about contracts and expectation. How should I deal with that? Is the “Hello world” message such important that the highest escalated scenario should be painted on the sky? I can imagine an awkward social game where we throw each other obscure challenges and call it a bug.<p>It’s nitpicking that even such simple code might fail and I get it. It will also fail on OOM, faulty hardware or if number of the processes on the machine hit the limit. Maybe some joker replaced bindings and it went straight to 3D printer which is out of material? _My expectations_ were higher based on the title.<p>Now allow me to excuse myself, I need to write an e-mail to my keyboard manufacturer because it seems like it has a bug which prevents it from working when slightly covered in liquid coffee.<p>[1]: <a href="http:&#x2F;&#x2F;jroweboy.github.io&#x2F;c&#x2F;asm&#x2F;2015&#x2F;01&#x2F;26&#x2F;when-is-main-not-a-function.html" rel="nofollow">http:&#x2F;&#x2F;jroweboy.github.io&#x2F;c&#x2F;asm&#x2F;2015&#x2F;01&#x2F;26&#x2F;when-is-main-not-...</a>