Ember in 2018 and Beyond

The Ember.js team recently called for feedback on how to improve the framework. This will be used to shape the roadmap for future features and direction. Read more about the announcement here.

This post reflects on my journey and impressions of the Ember.js framework so far and some …

➟ Read more

Calculate pi on Raspberry using Elixir

Elixir is a modern, functional programming language, based on the Erlang runtime environment. Erlang has a long history of being a robust platform for building distributed systems with many "processes" that run concurrently. The processes in quotation marks means light-weight processing containers managed by the BEAM (the Erlang runtime virtual …

➟ Read more

SQL Server: Make a column an identity

In SQL Server, columns can be defined as an identity column. With an identity column, each newly inserted row will get a new unique value in the identity column. This is useful for auto-incrementing a primary key column.

There are cases when a primary key column is not set up …

➟ Read more

Handle right-click browser event

A few months ago, a friend of mine claimed that it's probably very tricky to handle the right-click mouse event on a web page, since the browser already handles the right-click event. "How difficult can that be?", i thought to myself.

It turns out it's not all that difficult. This …

➟ Read more

ES2015 Part 4: Rest and Spread operators

Part 4 in the series of ES2015 deals with the new JavaScript operators: rest and spread

The rest operator

The rest operator comes into play when a function receives a variable list of parameters. Before we look at the operator, let's first consider a function that takes a few parameters …

➟ Read more

ES2015 Part 3: Arrow Functions

Part 3 looks at a new way of declaring functions.

Arrow functions

Arrow functions (also called "fat arrow functions") provide a short-hand syntax for declaring functions.

The general syntax looks like this:

(x)  => { }

The above creates a function that takes one parameter. The body of the function is inside the …

➟ Read more

ES2015 Part 2: Variable declaration

Part 2 in the series of ES2015 looks at a new way of defining strings, with the ability to substitute variables into place-holders.

Template Strings

In JavaScript, strings can be created using a pair of double-quotes: " or a pair of single-quotes: ' With ES2015, there's another quotation mark that can be …

➟ Read more

ES2015 Part 1: Variable declaration

Some background around JavaScript specifications:

Most (if not all) current browsers support the ES5 specification. Internet Explorer 8 however does not support ES5, it supports the previous version of JavaScript: ES3. Yes, that's right - there is no ES4. ES4 was never finalized due to various disagreements among the stakeholders and …

➟ Read more

Promises in jQuery

In the recent lesson about AJAX we saw how to make a server request in the background (asynchronous), and then handling the server response in a function. If a second asynchronous server request depends on the first one, it becomes messy to manage the dependencies. For example, the second asynchronous …

➟ Read more

AJAX calls

AJAX stands for asynchronous JavaScript and and XML. This allows a single page in the browser to make requests to the server without reloading the entire page. Browsers implement the XMLHttpRequest object that can make these server requests in the background. This object and AJAX calls in general is often …

➟ Read more