Build Your Own Developer tools in Node.js - I did a presentation a couple of years ago to JaxNode User Group about building your own tools. As a user, it is very common to find yourself repeating the same series of commands over and over again. Use Node.js to build developer tools that can be built quickly for the command-line.
Use Node.js to build developer tools that can be built quickly for the command-line.
I did a presentation a couple of years ago to JaxNode User Group about building your own tools. As a user, it is very common to find yourself repeating the same series of commands over and over again. In software development, you often hear about the SOLID principles. One of those principles is the DRY principle, which stands for Don’t Repeat Yourself.
If you don’t want to repeat yourself as a developer, why would you want to do it as a user? This is one of the reasons why I build my own tools. Here are some examples of tasks I ran across where I built my own tools.
I have used a couple of different frameworks for creating command-line tools with Node.js. You don’t have to use Node.js. Python and Shell scripts are also popular for creating command-line tools. You can even use C.
When using Node.js for command-line tools, there are a couple of popular frameworks. The first one that became popular was Commander by TJ Holowaychuk. Commander is still a very popular framework.
Lately, I have been using Oclif. This was developed out of Heroku for their command-line tool. Their parent company Salesforce then used it to build SFDX.
Who else loves to write side-effects-free functions? I think we, as programmers, all do. Today, in this story, I will walk you through the basic principles of functional programming that will make your coding life easier.
Formatting code consistently is a pain, especially when working on a team. The beauty of modern-day web development is that the tooling has gotten so much better! In this article, we will look at setting up Prettier to automatically format your code in Visual Studio Code.