Last week, my professor gave us a minor assignment that I am really excited to share my experience with you guys. It is Release 0.1 (click to the link to see its details). As we can see, the project requires us to create a CLI that checks if an URL is available and push our work to Github.
But I had never created an CLI before and barely published my work on Github (I know it is kind of embarrassed to say that a wannabe programmer never pushes your work on Github.)
So how did I do it?
I got to say Google is one of best inventions of all time. Literally, everything you can google anything you need. And guess what I can create a basic CLI using Node.js and yargs npm package. Shout out to Yvonnick Frin
and his article Build a Node.js CLI using yargs
. Highly recommend you guys to check his blog out.
However, this doesn't mean that I know how to create an link checker tool at all. But thanks to the help of my professor and classmates, it started to know which way to go. And yeah, a quite amount of time spent in researching and googling.
What I learn from my experience.
Needless to say, we can learn from literal anything that happens to our life. And the development of Release 0.1 is no exception.
Have fun while doing it
Credit: shutterstock.com
Coding is fun. It is undeniable. If we are not talking about the stress while fixing bugs, it is thrilling when you can develop something and finish it instead of abandoning it like you have done before. The feeling of achievement gave me the satisfaction that nothing else could.
Learn to create an CLI
I got really confused when I had to create an CLI. Simply because I have to no ideas how even though I had put a quite amount of effort to research. Still, I did not know how to do it. One more time I want to shout out Yvonnick Frin for his article.
Have a better understanding of Node.js
Despite the fact that I had interacted with Node.js before, I still find it difficult to have a good grasp of this language. But due to the time I spent on this project, I finally learn something about Node.js which I was ignorant before.
Conclusion
Someone used to say to me, the best way to learn is to build. No, I know why. Thank you guys for spending reading my blog. Have a good day to y'all.
Top comments (0)