Archive for the ‘Programming language’ Category

PHP Code Comparator is a command line script allowing to compare different versions of a library, framework or package. It will detect code changes in terms of class existence or method definitions.
If you ever wanted to have a way to quickly identify what classes have been altered or methods have been changed between two different [...]

The Ultimate Coder Battle

In: PHP

25 May 2009

I recently heard about a funny contest handled by Microsft. The concept is really fun, and so is their web site (Check the video!).
Here is a short description of the contest.
Microsoft presents the Ultimate Battle: It’s a knock-down, drag-em-out battle between professional and student developers! And it’s your big chance to show the world your [...]

Some people just like to write as few line of codes as possible. Well, PHP can be tricky sometimes.. For instance, be carefull when declaring a variable and passing it as a parameter to a function or to a method at the same time. If that parameter is supposed to be passed by reference, you [...]


A few weeks ago, I made a post about a very interesting video made by Miško Hevery intituled “The Clean Code Talks - Don’t Look For Things!”.
Today, I discovered that there is a PDF summarizing the important principles, with actually some very detailled examples also.
I really highly suggest to any programmer interested by unit testing [...]

A friend and I have been working on different projects together. We recently decided to share one of our script to the open source community.
The name of the tool is the Autoload Manager.
The AutoLoad Manager is a generic autoloader that can be used with any PHP framework or library. Using the PHP tokenizer mechanism, it [...]

Wufoo shares a very neato tool called PHP Quick Profiler or PQP. It basically allows a developper to have some usefull and fancy logging on a piece of code.

How hard is it to use ? 
Well, it took me around 3 minutes to download and use it on one of my scripts.
Here is what I got [...]

I recently watched an interesting presentation from Miško Hevery intituled “The Clean Code Talks - Don’t Look For Things!”. This presentation discusses some best practices to follow in order to keep a code clean. It talks about unit testing and the law of Demeter in OOD.
For the people who never heard about it, the law [...]

One of the characteristic of PHP is that it doesn’t do strong typing.
PHP 5.1 introduced Type Hinting. Functions were able to force parameters to be objects (by specifying the name of the class in the function prototype) or arrays.
I recently read one RFC (Request For Comments) - on PHP.net wiki - from Felipe [...]

I had the chance to attend the PHP Québec Conference this year. It was very interesting. I highly encourage anyone to attend such conferences if he / she is interested by PHP.
Anyway during one of the presentation, I discovered an interesting little script / tool named PHPLoc. It is written by Sebastian Bergmann and It [...]


Who am I?

My name is Bashar Al-Fallouji and this is my Blog. I currently work at Nstein as a Senior Solution Architect & Business Analyst. Nstein Technologies develops and markets multilingual solutions that power digital publishing for the most prestigious newspapers, magazines, and content-driven organizations.

I am particularly interested in Web applications, Open Source Development, Software Engineering, Information Architecture, Unit Testing, XP/Agile development, etc.

On this blog, you will find mostly technical articles and thoughts around PHP, OOP, OOD, Unit Testing, etc. I am also sharing a few open source tools and scripts.

  • Apprendre a utiliser Git | Anis Berejeb: [...] chez github. essayons de « checkouter»  un projet. Je choisis le projet [...]
  • Sheila: BAF rocks! [...]
  • anis berejeb: I think that there is no ambiguity because what is passed in the : $res = changeObj($obj = new StdC [...]
  • Pascal G.: In C#, as soon as you define a parameter as an output parameter, the compiler will force you to pass [...]
  • Bashar: Indeed, since PHP5, objects are always passed by reference. Pascal, isn't the behavior you are [...]