Languages
-
Objects and persistence in databases
2020-04-27There are situations where Object-oriented programming (OOP) isn't the best fit, and I keep coming across more of them. Way back when I was working on our graduation project, I had my first taste of Object-relational mapping (ORM), and I thought it was pretty nifty. However, I've come to realize that ORM is just trying to fix a problem caused by OOP, or how OOP is usually implemented. [...]
-
Template languages and separation
2012-06-11Today, 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? [...]
-
The retirement of HTML
2011-09-25HTML is a technology that emerged in the beginning of the 90s, and the current version (4.01) dates back to 1999. Lately, HTML5 has been a big buzzword, but I must say it's overrated and definitely not a new silver bullet. HTML5 defines some new tags, but that's basically it. The vocabulary is still as limited as the current version of HTML. Vocabulary is only one of HTML's limitations. The time has come for something new. [...]
-
A simple class loader for PHP
2011-06-09While 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. [...]
-
A taste of semantic web and RDFa
2010-10-08The amount of data stored on the web is vast. Traditionally, most of this has been restricted to human interpretation. The next step is the semantic web. Imagine software that can tap into this enormous source of data and perform queries for you, presenting it all in one single place. This is conceivable by introducing semantics to web content. [...]
-
A take on modularity in JavaScript
2010-08-05Making 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. [...]