Skip to content

Tag: javascript

Who’s using Node.js?

Node.js is a lot younger than nearly all of its competitors, but in these last few years it seems to have been maturing at an impressive rate. A huge number of large enterprises have incorporated Node.js into their stack in some way or another. In this post I want to take a very quick look at just a handful of the companies that have used Node.js in production. NASA After a dangerous spacesuit malfunction during…

User Authentication in Node.js (Part 2 of 2)

Part 1: https://jayvolr.me/2017/08/23/user-authentication-in-node-js-part-1-of-2/ The first part of this two part series walked you through setting up the login functionality of an authentication strategy using Express, passport.js and MongoDB. In this second part, you’ll learn how to allow new users to create an account, how to securely store passwords, and how to use Redis to store sessions. I’ll also create a small notes application at the end to show off our authentication system in action. Registration We’ll…

User Authentication in Node.js (Part 1 of 2)

For me, learning to create my own user authentication functionality was a pivotal point in learning web development. It brought together so many things I had learned but hadn’t fully grasped how they might work together. Building an authentication system involves using a web framework, a database, a hashing function, an interface, user input, middleware, and more. Assuming you’re not new to Node, you’re probably familiar with a lot of the pieces, but maybe you…

Can Code be Too Elegant?

First of all, what do I mean exactly when I say “elegant code”? I’m not specifically talking about code that implements an algorithm like you might think of when you hear about “elegant” code. I have a much more rudimentary definition, but I think it’s justified. The way I look at it, there are 3 broad classifications of desireable code: Simple code This is code that is clean, plain, and easy to read and understand. “Clean…