JavaScript

Why does JavaScript even have null?

JavaScript has its quirks and difficulties. One of them is null & undefined. If there’s undefined, why does JavaScript even have null? Equality Let’s start exploring null and undefined by having a look at the following comparisons: null >= 0; //true null <= 0; //true null == 0; //false null > 0; //false null < 0; //false How can null be bigger or equal to zero, less or equal to zero, but not be equal to zero?! To understand this we have to know how JavaScript handles these comparisons. There are two different kinds of operators used in the example above: Equality Operators …

WebVR

JS13k Games Post Mortem | A JavaScript WebVR game using A-Frame for the Js13KGames jam

On the 13th of September, the JS13k Games jam 2017 has ended. The challenge in this contest is to build a game in JavaScript that fits in a .zip file of 13k in one month. New this year was the A-Frame category. A-Frame is a web framework for building virtual reality experiences on the web. I love 3D and VR, programming in JavaScript and a challenge, so I decided to participate (again) this year. Eventually, the biggest challenge turned out to be time. I ran out of time, with about 5kb left of the 13kb. Since I always wanted to try creating…

Progressive Web Apps

The PWA Resource list

Recently I started getting asked more and more about the development of Progressive Web Apps. After the basic explanation about what they are I usually point to various places on the web. So, I decided to create this list of resources to have them available for everyone… Resources Progressive Web Apps A new way to deliver amazing user experiences on the web. https://developers.google.com/web/progressive-web-apps/ What are Progressive Web Apps? http://blog.ionic.io/what-is-a-progressive-web-app/ Progressive Web App Checklist https://developers.google.com/web/progressive-web-apps/checklist iOS doesn’t support Progressive Web Apps, so what? https://cloudfour.com/thinks/ios-doesnt-support-progressive-web-apps-so-what/ Progressive Web Apps — Yeh or Meh? http://developer.telerik.com/topics/web-development/progressive-web-apps-yeh-meh/ Production Progressive Web Apps with JavaScript Frameworks https://css-tricks.com/production-progressive-web-apps-javascript-frameworks/ What, Exactly, Makes…

node.js

Live-LiveCoding: node.js @ SDN event

Hello Coders! Here’s the recording of my LiveCoding session at the SDN Event. In this session I’ve build a very basic website using node.js and express.js. I talk about Pug for templating and Sass for my css. I also explain some great features in Visual Studio Code. I also streamed the session to my LiveEdu.tv channel. Be sure to check that to find out when I’ll be streaming again. You can find the code build in the session at my GitHub. I want to thank SDN for organizing the event. Be sure to check their channel as well (it’s in Dutch).

node.js

The Express.js Route to Success | express.js router

Intro You probably want your node.js server to respond to requests that are coming in, specially when you are building a website in this site https://www.webdesign499.com/5-types-of-content-every-business-website-should-have/. This can be complex and quite tedious to implement in vanilla node.js. Luckily express.js has done this for you.

node.js

How to build node.js apps effortlessly with express.js

Node.js is a pretty powerful and versatile framework to build sites and tools. But using the defaults to handle HTTP requests and such can be a pain. Express.js can make your life a lot easier. In the previous tutorial I showed you how to get started with node.js, this time I’m going to expand on that. We’re going to scaffold a new Express.js app.  Express.js is a web framework that makes it very easy to handle calls to the node.js server. It helps you with routing, error handling and it works very well other frameworks. Installing the express generator The…

node.js

Getting started with Node.js on ChakraCore

Intro Last year I started to use Node.js more and more. Personally I really like it. Using node.js on ChakraCore has some advantages over using V8. I’ve decided to get to know node.js a bit better and start a series of posts about it, beginning from the top. What is node.js? Node.js is described as interface to V8, Google’s JavaScript engine that also used in Chrome. Node.js enable you to write server-side code using JavaScript. It is uses an event-driven, non-blocking I/O mode.  This  very lightweight and efficient, but, as a trade off, you have have to implement every HTTP…

JavaScript

Poor Mans jQuery

A lot of people use jQuery in their HTML/JavaScript applications. There’s nothing wrong with that. But I’ve seen a lot of people use jQuery only to make it easy to find elements and they are not using any of the other jQuery functions. It’s pretty clear that writing a single ‘ $ ‘ instead of the way longer usages of various function on the ‘document‘ object, like getElementById. One of the functions on the ‘document’ object is the querySelectorAll function. This function brings a similar experience to vanilla JavaScript by taking selectors as a parameter.  So if we take a…

HTML5, Presentation, UWP app

Speaking about JavaScript UWP apps.

Last week I was invited by iSense to give a presentation about JavaScript Frameworks in Universal Windows Platform Apps. I decided my personal goal was to show people that JavaScript is a perfectly legit language of writing your apps for Windows 10, specially when you have a web development background. I started with an introduction about the way the JavaScript UWP apps work in Windows 10 and talked a bit about the great support of ES6 in Microsoft Edge. I then demonstrated how easy it is to convert a web application to a hosted UWP app, including what you could do in…