30 Days of Node.js – Day 10

In 1981, shortly before I turned one year, the James Bond movie For your eyes only was released. Encryption and decryption was important back then and is probably even more important today. That’s why today’s lesson covered the topic Encryption & Decryption. As usual, the code snippets can be found on https://github.com/nielslange/30-days-of-node-js/tree/master/Day%2010%20-%20Encryption%20%26%20Decryption.

References:

30 Days of Node.js – Day 9

Today’s lesson was about hash functions and HMAC, which both are helpful to encrypt and decrypt data. I’ve learned about various encryption methods and how to use them. The code snippets can be found on https://github.com/nielslange/30-days-of-node-js/tree/master/Day%2009%20-%20Hashing%20and%20HMAC.

References:

30 Days of Node.js – Day 8

I cannot believe it, I’ve just published my first npm package. Today’s lesson was about how to publish npm module.

The biggest lesson I learned today is that publishing npm packages it very easy and straightforward. I’ve also learned that I should run extensive testing before publishing the npm package. As you can tell on the version number of my module, I haven’t quite followed that approach initially. Nevertheless, I’m happy that my first package is available for the npm community and today’s code snippets can be found on https://github.com/nielslange/30-days-of-node-js/tree/master/Day%2008%20-%20Publishing%20package%20on%20NPM.

References:

30 Days of Node.js – Day 7

As mentioned in an earlier post, reinventing the wheel is rather unproductive. That’s why npm (Node Package Manager) is bundled with Node.js. In today’s lesson, I’ve learned how to install and update npm itself as well as latest packages, exact versions of packages or package versions within a semantic range. The code snippets are not JavaScript files, but should be run inside a terminal directly. Today’s code snippets can be found on https://github.com/nielslange/30-days-of-node-js/tree/master/Day%2007%20-%20All%20about%20NPM.

References:

30 Days of Node.js – Day 6

Arrays are important to store information. But how to add, edit, sort, filter and remove entries within arrays. Well, array methods have been the topic of today’s lesson of the 30-day Node.js challenge. The results of today’s lesson can be found on https://github.com/nielslange/30-days-of-node-js/tree/master/Day%2006%20-%20Array%20methods.

References:

30 Days of Node.js – Day 5

Today’s lesson was about error handling in Node.js. I’ve learned how to propagate errors as well as how to define error callback functions. I also learned that try & catch statements cannot be used within asynchronous functions. Today’s code can be found on https://github.com/nielslange/30-days-of-node-js/tree/master/Day%2005%20-%20All%20about%20errors.

References:

30 Days of Node.js – Day 4

Day 4 of the 30 Days of Node.js challenge was about the console object and its different methods. Until now, I was only using console.log(...) to display data in the console. Today, I’ve learned that by using console.log(...), console.info(...), console.warn(...) and console.error(...) I can control how the error message will appear within the browser’s console. The code snippets of today’s exercise can be found on https://github.com/nielslange/30-days-of-node-js/tree/master/Day%2004%20-%20Console%20module.

References:

30 Days of Node.js – Day 3

Today’s lesson was about regular expressions. I do have to admit that regular expressions are definitely one of my weaknesses. Every time I think “Yes, now I got it!” and run a test against my pattern, it fails. It’s definitely something I need to learn deeply in the future. But for now, I’m happy I finalised lessons of the third day, which can be found on https://github.com/nielslange/30-days-of-node-js/tree/master/Day%2003%20-%20Regular%20expressions.

Update: Just stumbled upon https://github.com/chriso/validator.js and while I still think it’s value to learn regular expressions, I also believe I should not reinvent the wheel, but trust in the power of Open Source instead.