31 ms·
Traditions are traditions, and an industry as young as ours needs to hold on to the very few we have! Moving goalposts around on the Hello World code golfing w
by sk0g 7y ago
Traditions are traditions, and an industry as young as ours needs to hold on to the very few we have!
Moving goalposts around on the Hello World code golfing world has some 'consequences' - there's languages with built in hello world that try and get it printing with minimal code, and removing the comma, for example, would invalidate that hack.
- superasn 7y agoOne tradition I'm happy got lost in the way is using FOO, BAR, BAT in examples. It made the simplest examples hard to understand and those words never made any sense to me. It's always better to use contextual words in most examples. edit: for more clarity this article (1) explains it quite well https://dev.to/kiarathedev/why-i-don-t-use-foo-bar-baz-1kf7 https://dev.to/kiarathedev/why-i-don-t-use-foo-bar-baz-1kf7
- sk0g 7y agoI'd honestly rather have a,b,c than that! Nobody writes code with such placeholder variable names, so why demonstrate it that way? Placeholder variables like i and j don't count! Foo, Baz, etc are annoying to read too, IMO.
- runarberg 7y agoI use foo, bar, baz, etc. all the time when I’m writing tests. But I agree generally it is better when examples use meaningful name `cd /path/to/file` as oppose to `cd /foo/bar/baz`
- kunglao 7y agoWhat's wrong with FOO? It's fun to say and can use it almost anywhere when you need a random word. Has saved me seconds here and there when I didn't need to think of a word because I have FOO :)