JQuery is one of the most popular libraries on the web. Although it seems to be in a decline amongst serious JavaScript engineers in favour of solutions which allow for better engineering, such as React, JQuery had a big impact on JavaScript for many years. Since it’s so well known,
Everything You Need To Know About The ‘this’ Variable In JavaScript
There’s many things that can trip up beginners when they first learn JavaScript. The one thing that I most commonly see befuddling JS newbies is the mysterious ‘this’ variable. Even veterans of other object oriented languages can have problems understanding how ‘this’ works in JavaScript, as it works very differently
NPM Packages You Should Be Using: ramda
Welcome to the latest instalment of a series which brings to your attention NPM modules you may not be aware of, but which are very useful. Today we’ll be looking at ramda. If you’ve come to JavaScript from another mainstream language, you’ll probably feel that it’s missing a lot of
Object Oriented Programming In JavaScript – Part 3: ES6 Classes
ES6 introduced a whole host of new features into JavaScript. One of these was the class syntax. It gives us a way of defining ‘classes’ in JavaScript which is similar to more traditional Object Orientated languages such as Java. The reason I put ‘classes’ in inverted commas is because despite
Object Oriented Programming In JavaScript – Part 2: Inheritance
Inheritance is a major feature of Object Oriented Programming (OOP). It is useful because it allows for code reuse and is also a way of enabling polymorphism. Polymorphism is a bit beyond the scope of this post, but you can read various descriptions about it on the Stack Overflow thread:
Object Oriented Programming In JavaScript – Part 1: The Basics
The Basics of Objects In programming, objects are units of code which contain both data and functions which act on that data, all related to a specific entity within the system. They are used to model the semantics of the system. For example a customer relationship manager tool may contain
Mastering Asynchronous Javascript: Part 5 – Observables with RxJS
So far in this series we’ve looked at a number of way to handle asynchronous events in JavaScript: Callbacks Promises Generators Async / await In this, the final instalment of the series we’ll be looking at how observables can be used for asynchronous programming. The particular implementation of observables I’ll
Mastering Asynchronous Javascript: Part 4 – async / await
Last time we talked about a new feature introduced in the ES6 language called generators. These make asynchronous programming fairly easy, but have the drawback of needing to use a module to make them work for asynchronous flow control (I showed you co) because they’re actually iterators rather than being
Mastering Asynchronous JavaScript: Part 3 – Generators
Last time I showed you how promises can make asynchronous programming in JavaScript easier than using callbacks. Now I’ll show you some cutting edge JavaScript features that will make asynchronous programming a breeze. Introduction To Generators One of the more recent updates to the JavaScript language, ES6, introduced the concept
NPM Modules You Should Be Using: momentjs
This is the first in a regular series which highlights some of the most useful npm modules out there. It’s easy to spend time home brewing your own solutions to problems when there are modules out there that could do all of the work for you. I hope this series