4 ms·
Why or how did fizzbuzz earn its place in lore? I looked at Wikipedia and it didn't seem to go into detail. Also we have the teapot, hello world, Foo Bar What
by vertline3 8y ago
Why or how did fizzbuzz earn its place in lore? I looked at Wikipedia and it didn't seem to go into detail.
Also we have the teapot, hello world, Foo Bar
What are some others?
- dabent 8y agoIt was popularized by Jeff Atwood in his blog entry "Why Can't Programmers.. Program?" https://blog.codinghorror.com/why-cant-programmers-program/ https://blog.codinghorror.com/why-cant-programmers-program/ Atwood referenced Imran Ghory who seems to have originated the test.
- vertline3 8y agoThis is neat, I didn't know it started there.
- stcredzero 8y agoWhy or how did fizzbuzz earn its place in lore? The functional why was as a filter for eliminating impostors. At the time it was new, no one could look up the answers for it, because it was such an arbitrary problem. Now, it's just a curiosity.
- henrikschroder 8y agoI wonder how widespread it's become in shitty prepare-for-coding-interview materials, so variations might be needed, but as a tool for identifying non-programmers, it is extremely good. It's ridiculous how good it is, it really shouldn't be, because as a decent programmer, it's so hard to understand how anyone could apply for a programming job, yet still be so bad at programming that they can't pass the test. And yet, there are so many people like that it's fucking scary.
- tyingq 8y agoPrinting the lyrics to "99 bottles of beer".
- RobertKerans 8y agoA few others that are similar: - fibonacci sequence to n (ooh, look, isn't recursion pretty) - parallel map (simple demonstration of parallelism in languages that allow it) [slightly more involved, webapp hello worlds] - basic blog (various MVC web frameworks, normally along lines of if I run commands x, y and z I get models, views and controllers and it all works) - basic todo application (various frontend frameworks) - basic chat application (as a realtime demonstration, generally for websockets)
- vertline3 8y agoOne common one when learning recursion or lispy things is factorial with recursion? But it's also in proof as well. It may just be really simple or something so I'm not sure my example counts