Remix.run Logo
codr7 4 days ago

I hereby cast my vote for naive recursive Fibonacci.

https://github.com/codr7/shi#language

Someone 4 days ago | parent [-]

Why? I would try to find a short program that’s somewhat similar to typical real-world code. I wouldn’t know what my #1 choice for that would be, but naive recursive Fibonacci, it would not be.

https://www.swift.org/ has better examples: simple web apps, CLI tools, and embedded code.

codr7 3 days ago | parent [-]

Because the implementation should be familiar to most devs, which makes it easier to see what kind of language you're dealing with.

Binary sort would be another candidate for me, but people get it wrong in subtle ways and not every language does array updates.

Your examples don't make much sense to me. A web app using what framework? What does that say about the language? CLI apps could work if you could find one that people recognize and that's small enough for an example.