Javascript Closure and Encapsulation

JavaScript is a confusing language. You can do OOP with it, you can do functional programming with it, and so on. A typical and modern way of encapsulating things in javascript is by creating an object....

January 23, 2017 · 2 min · 295 words

Timezone Management with JavaScript and PHP

In the old days, synchronizing php and javascript date and time functionality is a real pain. You need to detect the client timezone offset with javascript, and then convert it to a format which is php friendly, and transform it as a cookie, and so on....

April 13, 2011 · 2 min · 244 words