Archive for July, 2008

Erlang, Javeline / Ajax.org, Life as a hoster, MySQL, PHP, Replies

An alternative way of EAV modelling

I was reading this month’s php|architect. It has a nice article about EAV modeling. I had seen this db structure in other project, but didn’t know that it was called EAV. For those who don’t read php|architect, EAV describes a method of saving a large set of attributes, only some of which apply to an individual entity. Normally you would create a table, with a row for each entity and save each attribute in a column. With EAV you save each attribute as a row.

This makes selecting the data quite tedious. If you can life with some constraints, there is an easier way to do this.
Continue Reading »

Erlang

Learning erlang: Day 1 – Sequential Programming

Today I started with learning erlang. I’ll keep a log on my blog with the progress. On the first I’ve read the first 2 chapters of http://www.erlang.org/course. This language doesn’t look like anything else I’ve ever programmed. So don’t expect so much of a Erlang for PHP programmers kind of tutorial, since the whole thought is different. The first chapter was history which I pretty much skipped. The second chapter is ‘Sequential Programming’. Since all I’ve ever done is sequential programming it should be fairly understandable.
Continue Reading »