<strong>Do you find yourself in any of those thoughts when creating applications with NodeJS?</strong>
Do you find yourself in any of those thoughts when creating applications with NodeJS?
customeris anymore and which properties they have.”
It is sometimes harder to keep up with the latest hype train then actually learning fundamentals.
NodeJS became a victim of its own success. The market is flooded with developers, every company is using Node in some part of their tech stack. You can say that companies don 't pick it because of it’s underlying technology but because they can get cheap labor and feel safe because all the other companies are also using Node, so it must be a good choice.
You probably know the saying that you should learn Lisp, even if you won’t use it, just because the learned mindset will make you a better developer? Instead of learning Lisp to become a better developer, you can learn a language which is actually in use and will improve you as good as Lisp does. Meet Rust. Rust is not the latest hype, but has fundamentals which offer you a wide range of opportunities, even in the long run.
Rust is a systems language, but it’s ergonomic syntax empowers the developer after the first struggles.
From a NodeJS perspective, Rust can be used to create web server applications and services. You can write Lambda functions or full fledged applications. Instead of using TypeScript, Rust has a strong build-in Type system. Instead of using ESLint, it ships with the pickiest compiler out there.
The pain you feel in the beginning is different. I call it good pain. Good pain lets you grow as a person (and developer), bad pain just hurts. I would categorize many of the TypeScript and NodeJS pains as bad pain. Not because the tools are bad, but a language which was created in 10 days just gets you so far.
At some point you need to make a personal decision of how your life should look like. Your day to day has a huge impact on your happiness and the well-being of your surroundings. Rust can help you rediscover the joy of programming again.
After you learned Rust, you may think you just replaced tool X with tool Y and end up in the same place. But, there is a difference. Once learned, you can use Rust to create:
One would say you can cover the whole stack. Rust creates a self feeding system:
You are writing your web service in Rust. Instead of installing five different npm modules which help you cover your mistakes, you are using build-in tools to harden your code base. After the compiler gives you a green light you are 98% sure your application will run safe and fast in the years to come.
But, hold on, you are still sometimes frustrated by the repetitive work environment. But now you mastered a language which you can use to build your own Operating System on the side, you can implement the TCP protocol, you can create Games and join a local game community. You can even create applications for the Browser which are compiled to WASM. If this is not enough, you can get yourself a piece of hardware and run Rust on it.
NodeJS won’t be completely gone, and your skills neither. However you found a great addition and you might just focus on Rust more in the future. Remember, no language survived forever. NodeJS could end up with the same faith as PHP and others. Picking a systems language like Rust gives you strength and opportunities for many years to come.
From a developers perspective: Yes, definitely. Rust has many unique features which will be copied also to other programming languages (like Ownership in Swift). Learning Rust sharpens your thinking and will make you more considered in your day-to-day language of choice.
From a safety and correctness perspective: You should aim to replace part of your web service with Rust. Start small and see where it leads you. Other companies like NPM, Dropbox and Yelp are doing it and had big success.
Rust for the web is not completely there, but once fully landed, it can not only convert your web services into safe bets. Once mastered, Rust lets you jump up and down the stack, explore Computer Science concepts first hand and build tools in your free time other then the next CRUD application.
So, take the chance and make 2019 the year you learn Rust. Have something in production by Christmas and try to replace part of your services at work in Rust and see if it’s successful. Rust will not only let you sleep calmer at weekends, knowing that a rock solid binary is running in production, but the skills you gained let you explore a vast universe of possibilities around technology.
Follow great articles on Twitter
A Guide to Hire Node.js Developers who can help you create fast and efficient web applications. Also, know how much does it cost to hire Node.js Developers.
Node.js for Beginners - Learn Node.js from Scratch (Step by Step) - Learn the basics of Node.js. This Node.js tutorial will guide you step by step so that you will learn basics and theory of every part. Learn to use Node.js like a professional. You’ll learn: Basic Of Node, Modules, NPM In Node, Event, Email, Uploading File, Advance Of Node.
The practical implications of having Streams in Node.js are vast. Nodejs Streams are a great way to handle data chunks and uncomplicate development.
You may already be aware that Raygun uses Node.JS for our API nodes that receive your precious crash reporting data (we also do node.js crash reporting if you’re interested). We’ve peaked in the past at more than 110,000 requests per second coming...