Search

Developers Log

A blog about software developing and technology

Tag

JavaScript

JavaScript: quick guide to the Revealing module pattern

The revealing module pattern is a variation of the module pattern in which  we declare ALL methods inside the function private scope, and we return an object with pointers to the methods that we want to make public.

Advertisements

Drawbacks in the JavaScript module pattern

Last week we saw how the module pattern could help us to structure our JavaScript code. But the use of the module pattern has some disadvantages that we must understand, to be able to apply this pattern correctly.

JavaScript: quick guide to Module pattern

In previous post have seen how to create JavaScript objects literals, we also saw how we can use those to encapsulate parts of our code, creating de facto reusable modules. But if you come from Java, or .Net development you probably missed one thing: we haven't seen yet how we can define public, and private properties.

JavaScript Singleton with object literals

In this post we will see how we can use Objects Literals when doing JavaScript OOP.

Simple guide to JavaScript objects, and Prototype

Developers coming from Java, C#, etc may find JavaScript Object Oriented Programming a bit disconcerting at first;¬† unlike Java, or C#, JavaScript it is not a class-based language: which means one has to get used to a different way to... Continue Reading →

Blog at WordPress.com.

Up ↑