Hacker News new | ask | show | jobs
by ChrisSD 2833 days ago
As someone who is often switching languages, I find these sorts of cheatsheets useful.

I know all the syntax in them but I'll be damned if I can ever remember which language uses which until I've settled back in to things.

3 comments

My go-to site is usually https://learnxinyminutes.com/
Me too. On any given day, I can be using any of a half dozen languages (C#, powershell, javascript, bash, perl, python, c++, java - our codebase is all over the place). It gets hard to keep the syntax straight on all of them.
You might find Rosetta Code to be useful - it's a wiki site with hundreds of examples, all with solutions in dozens of languages for comparison.

ikewise, I felt a little let down. On the flipside, it's an excellent opportunity to bring Rosetta Code to people's attention - a wiki with hundreds of example problems, each solved in many languages for comparison!

https://www.rosettacode.org/wiki/Rosetta_Code

I find it invaluable in that sort of mid-learning level of a new language, where I have the syntax sorted, but I need lots of programs small enough to hold in my head, but also large enough to show off all the features, to learn and read. Here's Dijkstra, for example: https://www.rosettacode.org/wiki/Dijkstra%27s_algorithm