HACKER Q&A
📣 chrisBob

Beyond Hello World in multiple languages?


I work in a lot of different languages on a regular basis, and it can be hard to keep track of some of the syntax between Python, MATLAB, Swift, JS, R, C++, ...

Does anyone have a good resource for "Hello World" type examples in multiple languages that go a little beyond `print("hello world");`?

I would be happy to start with code that at least includes a function definition and a for loop, but my eventual goal would be to fill about 1 page of code in each language with the most common actions.

Does something like this exist? I don't want to recreate it if someone can point me to a good existing project.

Thanks!


  👤 compressedgas Accepted Answer ✓
You might be interested in https://hyperpolyglot.org/

👤 cratermoon

👤 elyseum
Maybe not a starting point because it’s too advanced, but Make A Lisp has example implementations for +80 languages now: https://github.com/kanaka/mal