1. Template languages and separation


    Today, it's common to use template languages to produce markup code. My recent work on data and UI separation on the web, made me realize that this technique offer poor separation between design and implementation. Can we use a different approach? [...]

  2. A simple class loader for PHP


    While playing around with the CodeIgniter library on my LAMP server, I found a need for automatic loading of classes. CodeIgniter is a neat little thing that handles loading of MVC parts, but has no real support for helper or simple data classes. I wanted my models to retrieve data from the database through entity classes by using an ORM library (Doctrine). And like in a typical JPA/Hibernate setup for Java, pass those entity objects to the view. [...]

  3. A take on modularity in JavaScript


    Making code modular and solid is always a challenge. Recently, when re-developing a small application, I wanted to focus on modularity. After fiddling a bit with my JavaScript files I came up with a better and simpler way to modularize my code. [...]