Home » JavaScript (page 5)


Immutable Objects in JavaScript

There are very good reasons to use immutable objects in certain languages. In JavaScript, however, I’m still kind of…. meh. In this blog post, I plan to discuss my reasonings with the hope that I might spark discussion on the use of Immutable Objects in JavaScript. What Are Immutable Objects? The definition of mutable is “liable or subject to change ...

Read More »

Angular.js Login Example

Login forms have become part of the norm in the latest years, and their importance increases with the sensitivity of the information being dealt inside your app. Keeping the best interests of your recurring users at heart, the login should be well thought out and impossible to crack, so that the information trusted to you is safe. Login on an ...

Read More »

Angular.js Components Example

One of the most powerful features in AngularJS are directives, what with them marking a DOM element so that it behaves a certain way. However, properly using and constructing them would give us a more robust application, as directives are essential in creating flexible Javascript and template code for our app. With the feature-set that AngularJS has to offer, we ...

Read More »

AngularJS Unit Testing With Karma and Jasmine

One of the benefits of using AngularJS is that it is designed with testability in mind. Having integrated unit testing can help prevent bugs as projects grow in complexity and the number of developers. It also provides new devs with documentation on how to use existing code. In my last article, I explained how to use Test-Driven Development (TDD) to ...

Read More »

Angular.js App Structure

There are thousands and more developers working daily on apps, regardless of their being web, desktop or mobile applications and independently of the technologies used in them. A very big number of these apps launched daily are built with AngularJS, and they can be of different sizes: very small, small, medium or large scale apps. Keeping in mind the size ...

Read More »

Update DynamoDB Items with Node.js

On a previous post we proceeded into inserting items to DynamoDB using Node.js. DynamoDB also supports updating items. We will use the Login table for the update examples. When issuing an update you must specify the primary key of the item you want to update. var updateName = function(email,fullName,callback) { var docClient = new AWS.DynamoDB.DocumentClient(); var params = { TableName:"Users", ...

Read More »

Dynamic component loading with Angular2: replace compile

Just a quick article to show how you can do dynamic compilation in Angular 2. In Angular 1 we had the $compile directive, which we could use to programmatically compile a string and resolve any directives and other variable interpolations. In angular 2 there isn’t really an alternative for this and we have to jump through some hoops to get ...

Read More »

Scan DynamoDB Items with Node.js

On previous posts we covered how to query a DynamoDB database Query DynamoDB Part 1 Query DynamoDB Part 2. Apart from issuing queries DynamoDB also offers Scan functionality. What scan does is fetching all the Items you might have on your DynamoDB Table. Therefore scan does not require any rules based on our partition key or your global/local secondary indexes. ...

Read More »

AngularJS Navigation Example

By now you’ve surely heard of the superheroic Javascript framework named Angular, and if not, then you’ll hear about it very soon if web programming is a part of your world, so you had better take a look here! Angular is by far the best in handling dynamic views in HTML, and it appears that the trend will continue. Now ...

Read More »

Want to take your WEB dev skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • PHP Programming Cookbook
  • jQuery Programming Cookbook
  • Bootstrap Programming Cookbook
  • Building WEB Apps with Node.js
  • CSS Programming Cookbook
  • HTML5 Programming Cookbook
  • AngularJS Programming Cookbook