Category: Programming

What is HTML5?

HTML5 Basics: What is HTML5

HTML5 is one of the languages for creating web pages. A web page is built using three languages: HTML5 for the content, CSS3 for the presentation of the content, and JavaScript used to interact with the content. But the most important language in any web page is HTML5. Without HTML5 we cannot...

Not a Number in JavaScript

Not a Number in JavaScript

What is a Not a Number In my last post I was talking on how to use numbers in JavaScript. Now I want to talk about the notorious Not a Number invalid value. Also know as NaN. A Not a Number indicates that the value of a variable or the...

Numbers in Javascript

How to deal with numbers in JavaScript

We can deal with numbers in JavaScript in many ways. Lets look at the basics. The size of a JavaScript number In JavaScript a number is always a 64 bit floating point. There is no integer, nor decimal, nor bit. Only a 64 bit floating point. This precision follows the international...

What is loosely and tightly coupling?

In programming, we have the concept of coupling.  Coupling is the way two or more modules of our application relates to each other. Suppose that we are building a new application.  We can divide our application in tiers. One tier will be our user interface (UI). Another ties is our business...

A case for missing curly braces

Many times as a deadline approach, we cut corners. We think in terms of “the less amount of keys pressed the better,” because we need to finish our code on time. At first, we tend to eliminate the curly braces when defining a block of code, specially in “if” and loop statements. The problem...