August 3rd in Widget by . no comment .

JavaScript Widget Development Best Practices (Part 6: Refactoring the Widget API)

In the former article of the series We rendered the user interface of our widget inside an anchor element in publisher’s website; We asynchronously loaded widget styles; We implemented a very naive authentication mechanism. We also defined a job queue _wdq (similar to google analytics’ _gaq) to be able to …

Continue Reading
July 28th in Widget by . no comment .

JavaScript Widget Development Best Practices (Part 5: Getting Your Hands Dirty)

I’m giving a talk on JavaScript Widget development best practices tomorrow at jstanbul 2012. At the conference, I will have a 30-minute timeframe to express as much as I can with respect to external JavaScript widget development best practices. Since 30 minutes is not enough for this, my aim is …

Continue Reading
June 28th in o2.js Modules by . no comment .

Now you can have o2.js as a node.js module and require it from npm too

Unless you have been living in a cave for the recent two years, you should known that node.js is a highly efficient platform built on Chrome’s JavaScript runtime for easily building fast, scalable network applications, by using an event-driven, non-blocking I/O model. node.js is lightweight and efficient; perfect for data-intensive …

Continue Reading
March 13th in Code Organization Guidelines by . no comment .

How to Refactor a Mess into an Organized Web Application (Part 3: the Client Side)

In part 2 of the series, we organized the server-side of our vcard demo application. Today, we will be dealing with the client side: We will be progressively enhancing our initial application to get vcard data without refreshing the page; We will be strictly diving our application into four tiers; …

Continue Reading
March 4th in Code Organization Guidelines by . 2 comments .

How to Refactor a Mess into an Organized Web Application (Part 2: the Server Side)

Overview In the former post of our series, we started to refactor a simple vcard application, which initially was a total mess. In the first part, we defined a skeleton folder structure for our application; and we laid out the foundations of the BPC architecture. Where; Behavior/business logic (B) would …

Continue Reading
December 10th in Code Organization Guidelines by . 2 comments .

How to Refactor a Mess into an Organized Web Application (Part 1: the BPC Architecture)

This page has been translated into Spanish language by Maria Ramos. »» Cómo Refactorizar un enredo en una Aplicación Web Organizada (Parte 1: la Arquitectura BPC). In the former post I said that we would be refactoring chaos into order. This article is the next in the series; and here …

Continue Reading
December 4th in Code Organization Guidelines by . no comment .

How to Refactor a Mess into an Organized Web Application (Part 0: Teaser)

Ever found yourself as the front-end coder of a fat-client project, where the project has the following characteristics: The project has been going on for over for serveral years, The JavaScript is spread all over the place (I mean “all” over the place; inline, inside php snippets, within templates… here, …

Continue Reading
November 5th in Functional Programming by . no comment .

Everything You Need To Know About JavaScript Functions (and more)

Functions are the building blocks of any JavaScript module. In this tutorial, we’ll have a glance on basic principles behind functional programming in JavaScript, along with some lesser known features of JavaScript functions. This is mainly a follow-up, and a more in-depth analysis, of a former JavaScript Function Kung-Fu post. …

Continue Reading
September 16th in Unit Testing by . 8 comments .

Unit Testing with JavaScript — Part 1: Best Practices

Despite the fact that unit testing can add considerable value to the quality of your code, it can do more harm than good, on the long run, if you do not implement it correctly. It all depends on the quality of the tests you design. And it, in turn, depends …

Continue Reading
June 4th in PhoneGap by . 2 comments .

Creating A Mobile JavaScript Chat – Part 4: Cross-Domain Restrictions

In the former tutorial of this series, we created a sample mobile application that’ll run in an Android mobile device. All the HTML, CSS and JavaScript files, which the application was using, were stored in the /assets/www folder of our mobile project. You can click here, to get the source …

Continue Reading
 Page 1 of 2  1  2 »
o2.js _
Fork Ribbon