Archive for June, 2013

Expression Tree and Merge of Expressions

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 »

How to modify static javascript data in Drupal

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 »

Tags:

javascript in Depth

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 »