Posts tagged as:

programming

Wherever performance is the key factor, choosing the right algorithm, (in a very unbiased fashion,) is a very crucial factor. And generally for reversing string in JavaScript applications, I endorse this petite string reversal algorithm using Array.reverse() method.

Continue reading

{ 0 comments }

I have often observed that websites that are template-driven (like blogs, cms, etc), tend to load all the required scripts and css in every page. One such example would be WordPress blogs with plugins for various types of content processing (overlay, tooltip, animation, etc.) Every page of such a WordPress driven site loads the relevant plugin stylesheets and javascripts, even though it might not be required for that particular page.

Here is a jQuery code I wrote in order to load prettyPhoto jQuery plugin (prettyPhoto homepage) only when required. This process can also be applied to other plugins by analyzing the plugin triggers from within the rest of the page content.

Continue reading

{ 2 comments }

Optimizing JavaScript (part 1)

Technical Publications

In my years of experience in programming, I have observed that certain performance ‘tweaks’ work best for certain languages. This is mostly due to the nature of the interpreter/compiler involved in executing a particular piece of code.

April 25, 2009 7 comments

Object Oriented Philosophy

Technical Publications

Wading through the marshlands of object oriented programming, one must at one time realize that there are two fundamental skills that one needs, in order to truly embody the spirit of object oriented paradigm. The ability to abstract ones thought processes. Perceive the harmony within abstract chaos.

April 7, 2009 5 comments