Throttling events with setTimeout

Time and time again, we need to listen for an event (scroll, keyup) and execute some arbitrary code when that event fires. If you do this enough, you’ll likely run into a situation where you are just receiving way too many events. In these cases, it’s best...

Best ways to learn React.js

React.js is definitely the most popular JavaScript framework these days. I’ve spent a good amount of time using a lot of different resources to learn it and I thought it would be cool to share those with you! Egghead.io Price – $19.99 per month Description...

Moment.js, get the next day of the week

Moment.js is a JavaScript library that helps you do pretty much anything you could ever need with dates! Specifically, it helps you parse, validate, manipulate, and display dates in JavaScript.   Today I was writing a little program and I needed to find the date...

The benefits of going to conferences

Yesterday I was on [email protected] talking about a range of topics. At one point we started talking about our favorite conference topics and IOT kept coming up. It seems like so many people love talks that aren’t directly related to what they do for their day...

Create a perfect search bar with CSS Calc

This is a neat trick with CSS3’s calc function. Let’s say you’re trying to build a search form and you want the submit button and the text input to float next to each other. To start off with, let’s just create a simple form: <form>...

Node Module Walk-Through: Deep Freeze

Deep freeze is a great module from the prolific Substack. Before we get into how it works, let’s talk about what it is. According to the readme, deep freeze is used to: recursively Object.freeze() objects Object.freeze is a built in JavaScript method that allows...

Node.js v5.4 vs luvit v2.8 Benchmark

I ran a simple HTTP benchmark against Node.js v5.4.1 and luvit v2.8.0. Benchmarks were performed using a slightly modified version of the example “Hello World” script provided by both projects and used siege for performing requests. The scripts were...

Seven best Node.js frameworks of 2016

Node.js has had explosive growth over the last year. And with that growth has come a slew of great web frameworks. However, it can be a bit difficult choosing between them. Let’s take a quick pass and compare them! Hapi Website: hapijs.com Hapi.js brands itself...

Node Module Walk-Through: Get Port

I had a fun idea for a new blog post series. We’ll pick an NPM module and walk through it together! Hopefully learning some cool things along the way. Today’s module is get-port by the awesome Sindresorhus! It’s a very simple module that returns an...