Didn't really see a ton of substance in that, it seemed to mainly add up to a long-winded explanation of printing out a text file using two different languages in convoluted ways.<p>Here is my much shorter version of basically the same thing with a different language:<p>Nim for Node.js Programmers<p>I love Node.js programming, especially because of the massive ecosystem of modules available, but Nim has some advantages in many cases. Here are three: it uses very little memory, creates code that is very fast, and interfaces extremely easily with C and C++.<p>### Node.js<p>How to set up Node<p>Since you are a Node programmer, you already have it set up.<p><pre><code> const fs = require('fs');
fs.readFile('hello.txt', 'utf8', (err, data) => {
if (err) {
console.error('Problem reading file:', err);
} else {
console.log(data);
}
});
</code></pre>
How to set up an editor/IDE<p>Since you are a programmer, you already set it up.<p>### Nim<p>Install Nim -- thoroughly explained here: <a href="http://nim-lang.org/download.html" rel="nofollow">http://nim-lang.org/download.html</a><p>Enter into readfile.nim:<p><pre><code> try:
echo readFile("hello.txt")
except:
echo "Problem reading file."
</code></pre>
Run command 'nim c readfile.nim' then './readfile'<p>### Package Management in Nim<p>The `nimble` command handles packages in Nim. Please read the excellent and thorough documentation here: <a href="https://github.com/nim-lang/nimble" rel="nofollow">https://github.com/nim-lang/nimble</a><p>For more information, see the great documentation at <a href="http://nim-lang.org/documentation.html" rel="nofollow">http://nim-lang.org/documentation.html</a>, the new book Nim in Action, <a href="https://www.manning.com/books/nim-in-action" rel="nofollow">https://www.manning.com/books/nim-in-action</a>, or many other resources online such as those listed here: <a href="http://nim-lang.org/learn.html" rel="nofollow">http://nim-lang.org/learn.html</a>
After using Firefox for the first time in forever I noticed that I'm liking a lot of what Mozilla does to try to educate people on web development practices. I am curious as to how others find Rust to use in practice. Looking to augment my knowledge in Java with another language that's quite different.