June 28th, 2013 by CleanCodeNZ
The Expression class in C# allows you to build computational expressions in run time. Most of examples you can find are showing you how to build a simple scenario of a binary expression, as a tree it will have many levels, then the question is how to combine expressions? Or how to merge expressions? Read the rest of this entry »
June 27th, 2013 by CleanCodeNZ
We can add javascript or javascript settings in drupal by calling drupal_add_js(), in some cases you may want to remove some javascript you add earlier.
There is no built in function like drupal_remove_js() to do that.
Read the rest of this entry »
June 21st, 2013 by CleanCodeNZ
In javascript, have you ever been confused by prototype and __proto__, what is best way to do inheritance? what the type of object it actually is? where are those apply or call methods from? and what differences they have when functions are declared in different ways. There has been an urge to dive down to have a look of what those foundational concepts are. Read the rest of this entry »
January 30th, 2013 by CleanCodeNZ
There is already a multiple file management module in drupal: plupload, but no luck when I tried to use it following their instructions. Read the rest of this entry »
November 20th, 2012 by CleanCodeNZ
In MVC you can divide a big view into smaller partial views, while with ajax these partial views can also be used by ajax to do partial update of an already rendered page. Read the rest of this entry »