Concepts

  1. OOP and dependencies

    2015-01-10

    OOP is a paradigm that for a while now has left a certain bad after taste for me. It's not exactly caused by OOP itself, but how OOP is typically practised, or I dare say, misused. [...]

  2. Template languages and separation

    2012-06-11

    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? [...]

  3. A simple class loader for PHP

    2011-06-09

    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. [...]

  4. A take on modularity in JavaScript

    2010-08-05

    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. [...]