Skip to main content


Showing posts from 2012

Scalable JavaScript Application Architecture

Went to Yahoo developer meetup last week. Nicholas Zakas was the speaker that talked about how to build a scalable javascript application. There are some key points I’d like to share. First is the overall architecture diagram. Nicholas mentioned loose coupling is important to make an application scalable. A loosely coupled system is one in which each of its components has, or makes use of, little or no knowledge of the definitions of other separate components. Only the base library knows which browser is being used.  Only the application core knows which base library is being used  Only the sandbox knows which application core is being used  The modules know nothing except that the sandbox exists  No part knows about the web application The advantages of such system are Multiple different applications can be created with the same framework.  Each part can be tested separately.  Replace any parts do not break the application.  The following link is Nicholas’ fu

Fresh and Easy Shop for Shools Admin Tool

This is one of my biggest .NET project and I am happy with the end result. This project has 12 database tables and 50 stored procedures. This application is completely Ajax and web services driven. I also used EJS Javascript template engine. Main functionality including: Administrator activity log Find possible duplicate school records. This is done using Full-text search against school name and address Search schools Result pagination Update 1 or more schools at a time Add new school attributes Create and update admin users Multiple user level with different permissions Export school data to Excel 

Volkswagen Inventory Search

This application allows users to search Volkswagen's new and used car inventory. The key features are multiple vehicles search with dynamic search filter sets. filters' enable/disable state change on each search. The application's built using JavascriptMVC framework. It is completely Ajax driven with web services. I worked on this application for one and a half month mainly focusing on complex Omniture tracking, bug fixes and feature improvement.

How to debug Javascript in IE7

Most developers know Firebug which is a nice debugging tool for Firefox. When it comes to IEs, Microsoft has a better debugging tool for it. It is called Visual Web Developer Express. Many people think it is only for .NET development. I will show you how to do Javascript debugging using Visual Web Developer Express. Install Visual Web Developer Express. It is free. Update some IE settings. Tools->Internet Options->Advanced. Uncheck "Disable script debugging". Check "Display a notification about every script error". Fire up Visual Web Developer Express and create a New Web Site. Run the new web site in debugging mode. (F5) At this point, IE is launched with the new web site in it. Type in the web page you want to debug into address bar. Switch back to Visual Web Developer Express and you should see all the Javascript files of the page are loaded under Solution