Category Archives: JavaScript

Sencha & ECMAScript 2015

Posted on in ES2015 JavaScript

With just a few more days to go, before the release of Ext JS 6.2, (BTW, Can’t wait! Material Design theme, pinch to zoom, D3 integration, calendar component and much more…) Sencha is already busy with working on the next major version of Ext JS. We will give you a preview on our long term […]

Read more »

Tutorial: Full-stack JavaScript for the Enterprise. Getting started with: Ext JS, Node.js, Express, MongoDB and Docker. (1)

Posted on in Docker Ext JS 6 JavaScript Node JS

This is part I of the tutorial, and covers: JavaScript on the client. Yeah you are correct, when you have a web project, optimized for production, you can use FTP and simple upload the folder on your server. That’s easy, and when you only have a simple HTML5/JS/CSS app, or an application with a PHP […]

Read more »

Connect & play around with BB-8 by Sphero with JavaScript on a Mac

Posted on in JavaScript Robotics

I'm a huge Star Wars fan, and like most of you, i've seen The Force Awakens as well. I immediately felt in love with BB-8. The little white orange droid. So you can imagine, how happy I was, when I opened my christmas presents, and found the little BB-8 by Sphero droid in a box. […]

Read more »

Simple Techniques for Solving Common Sencha Coding Problems

Often when I’m teaching a Sencha Training class, students ask me to look at their apps because there’s a problem they don’t know how to fix. Since I didn’t write the code, it’s hard sometimes for me to give them a quick answer. However, I do have a set of simple techniques that filter out […]

Read more »

Getting Started with Sencha Touch 2: Build a Weather Utility App (Part 3)

Posted on in JavaScript Mobile Sencha Sencha Touch

In this three-part Sencha Touch tutorial, you will build the Do I need my Umbrella? app, a simple utility app that loads weather information from a web service — worldweatheronline.com. Based on weather codes, this app can predict if you need your umbrella or not. In this last part of the tutorial, we’ll talk about […]

Read more »

Getting Started with Sencha Touch 2: Build a Weather Utility App (Part 1)

Posted on in JavaScript Sencha Sencha Touch

Welcome at this series of blog posts: How to create a utility app with Sencha Touch and Sencha Cmd. Originally I wrote this tutorial for .NET magazine and afterwards I modified it for the Sencha Blog Site. Since I think it's a good set of articles and you might have missed it. I will also […]

Read more »

Always use semicolons in JavaScript

Posted on in JavaScript

According to Javascript; the semicolon after a statement (for example a function), is optional. However, it's much better to end your line with a semicolon. A validator like JSLint for example, will throw a warning, even though the browser won't and accepts it. See below, which strange things can happen when you won't end your […]

Read more »

Node Connect example

Posted on in JavaScript Node JS

The example below can be easily replaced with Node Connect. Just with a few lines. app.js var http = require('http'); var path = require('path'); var fs = require('fs'); var extensions = { ".html" : 'text/html', ".css" : 'text/css', ".js" : 'application/javascript', ".json" : 'application/javascript', ".png" : 'images/png', ".gif" : 'images/gif', ".jpg" : 'images/jpeg' } http.createServer(function(req, […]

Read more »

Hello World with Node.js

Posted on in JavaScript Node JS

See the example below for an easy Hello World example with Node.js. Create a Node.JS server and serve a hardcoded response, with content-type: “text/html”. And listen to localhost:8000 in your browser to see the result. In your project folder create an app.js file: var http = require('http'); http.createServer(function(req, res){ var html = BoilerplateHello World"; res.writeHead(200, […]

Read more »

Auto restart node after code changes

Posted on in JavaScript Node JS

When you are sick and tired of restarting your node app in the terminal (CTRL+C) on every code change you make then you can automate this process. Actually it’s really simple. Install Nodemon via the package manager. $ sudo npm install nodemon -p When you want to check if it correctly installed and on which […]

Read more »