Do you want to know how to develop your skillset to become a Web Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. Building web apps with Node.js
2. HTML5 Programming Cookbook
3. CSS Programming Cookbook
4. AngularJS Programming Cookbook
5. jQuery Programming Cookbook
and many more ....
I agree to the Terms and Privacy Policy

JavaScript Tutorial – Part 4: Object Creation and Prototype Chains

The term “Object-Oriented programming (OOP)” has been greatly overused, and JavaScript is not one of the exceptions. For someone who comes from many years programming in Java, learning JavaScript made me realize that the correct name for the paradigm used by programming languages like Java, C++, and C# (to name a few) is not Object-Oriented but Class-Oriented programming. Because in ...

Read More »

Migrating Spring Web MVC from JSP to AngularJS

Target Audience This article is written for Spring Web MVC developers who are familiar with JSP development and who would like to understand how to migrate to a client side Javascript framework like AngularJS. Sample Pet Clinic for reference An example of a Spring Pet clinic application that we have tried to revamp as an AngularJS app with an updated ...

Read More »

Javascript Typeof Example

When writing code in whatever programming language, you will inevitably have to deal with different types of variables and treat them accordingly. What happens when you are not the one who defines your variables type? Let’s have a look!                 Typeof syntax typeOf can be used in two ways: as a function and ...

Read More »

JavaScript Objects from a Java Developer Perspective

One of the challenges for Java developers learning and applying JavaScript is the very different interpretations each language has of “objects.” I find it much easier to context switch between Java and languages such as Groovy, Ruby, Python, C#, and C++ than switching context between Java and JavaScript. The other languages’ class-based approach to object-orientation is similar enough that their ...

Read More »

HTML5 Checkbox Example

In this example, we shall take a closer look at how we can create and style checkbox elements with HTML5 markup and CSS3 styling. Creating checkboxes will be needed when you want to present the user a set of options they can choose from, which is most likely in surveys. First we take a basic approach to the html element ...

Read More »

Python: Selecting certain indexes in an array

A couple of days ago I was scrapping the UK parliament constituencies from Wikipedia in preparation for the Graph Connect hackathon and had got to the point where I had an array with one entry per column in the table. import requests   from bs4 import BeautifulSoup from soupselect import select   page = open("constituencies.html", 'r') soup = BeautifulSoup(page.read())   ...

Read More »

CSS Inheritance Example

In this example, we’ll focus on a css property value that I guess many of you ignore (do not use) while styling elements on websites. It is inherit. Before we go straight into that, know the following: Each element in HTML is part of a ‘tree’, and every element (except the initial html element) has a parent element that encloses ...

Read More »

JavaScript Tutorial – Part 3: Variable Scope and Closures

Previous Tutorial: JavaScript Tutorial – Part 2: Variables, Functions, and Objects Naming is one of the hardest problems in programming. Since there are many things to decide when creating a program, programmers tend to use the same name for variables in many places. And because JavaScript is a very “promiscuous” language, this can cause serious bugs that can be very ...

Read More »

Javascript forEach example

Very often we run in cases when we just have a collection of elements and a necessity to loop through it. EcmaScript5 suggests a simple forEach() method for such purpose. So, if you’re tired of writing countless for (var i = 0; i < arr.length; ++i) loops, let’s look how it works.               For ...

Read More »