As someone who is often switching languages, I find these sorts of cheatsheets useful.<p>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.
How to write using X in both languages:<p>Python: <a href="https://github.com/python-xlib/python-xlib" rel="nofollow">https://github.com/python-xlib/python-xlib</a><p>Node.js: <a href="https://github.com/sidorares/node-x11" rel="nofollow">https://github.com/sidorares/node-x11</a>
When I read the headline I was expecting the X windowing system. When I clicked the article and saw “junior programmer” I thought this is about to be impressive.<p>Cool site :P
Very cool! Reminds me of <a href="http://youmightnotneedjquery.com/" rel="nofollow">http://youmightnotneedjquery.com/</a><p>I particularly enjoyed seeing that you used snake case in Python and camel case in JavaScript. Great attention to detail.
A weird reference imo. Perhaps useful to build as a learning experience but I wouldn't expect who needs if/else included in a cheat sheet to be ready to learn to languages.
Do people actually use cheat sheets like this? IMO, the first stackoverflow result in google is generally what I'm looking for and quicker - especially for common things and common languages such as the things on this page. Even if you have the page bookmarked, you still need to find/search/scroll for the specific thing you're looking for. Also, with Alfred you can google anything even quicker by not having to cmd+tab to the browser.
Reminds me of this OneLang HN post from several months ago - <a href="https://news.ycombinator.com/item?id=16415051" rel="nofollow">https://news.ycombinator.com/item?id=16415051</a><p>It's an IDE that lets you code simultaneously in several different languages
<a href="https://ide.onelang.io/" rel="nofollow">https://ide.onelang.io/</a>
Reminds me of PLEAC - Perl Cookbook translated to >10 langs
<a href="http://pleac.sourceforge.net" rel="nofollow">http://pleac.sourceforge.net</a>
When I publish code about algorithms and data structures to my web site, I usually offer multiple language versions. Why? Because understanding the computer science theory and math proofs is a big effort. Writing and debugging my first implementation in any language is a big effort. But porting that code to a bunch of languages is comparatively easy and is almost a thoughtless mechanical process.
I thought this was going to be a polyglot[1] demonstration of writing code for X Windows. However, I was not disappointed in what I found!<p>[1] <a href="https://en.wikipedia.org/wiki/Polyglot_(computing)" rel="nofollow">https://en.wikipedia.org/wiki/Polyglot_(computing)</a>
Impressive to see almost all JS examples being as short as the python ones. Python is normally valued for being short and concise but modern JS is really catching up here.
I had such high hopes when I opened the arsenal. I anticipated it would an article of how to write code that's both JavaScript and Python syntactically correct.
What's the point of having print or console.log around everything? Just have one box with "print to standard output" and those two at the top.
this is very good. i had it in my head that there was no "extend" function in JS, and didn't realize "push(...array)" was possible. thank you for the super detailed guide