4 ms·
Not starting with "Hello World"? Is that even legal?
by billpg 4y ago
Not starting with "Hello World"? Is that even legal?
- maxlybbert 4y agoI have the “Primer of Algol 60 Programming” by Dijkstra. It was created ten years before K&R, so of course it doesn’t start with “Hello World.” But that fact surprised me a little the first time I read it.
- pbreit 4y agoI always thought Hello World was the dumbest example. Useful examples are always better.
- kevin_thibedeau 4y agoA minimal viable program that demonstrates basic I/O and allows one to confirm their build tooling works isn't useful?
- erik_seaberg 4y agoI try to start with a failing test, because tests not being identified or failures not breaking the build are serious problems.
- pwdisswordfish9 4y agoI used to think foo and bar were really dumb and I thought less of writers who used them for not putting in more effort to provide realistic examples. That has changed and I'm now grateful to writers who stick with foo and bar, the same way I'm grateful for syntax highlighting. It helps me focus on what is being demonstrated and skip over the stuff that isn't important. Use of foo and bar is good for this, and realistic examples aren't. There's an argument to be made for hello world that falls along similar lines, probably.