Archive for the ‘Singleton’ Category

So, again I will talk about Singleton and why you should be carefull with them. Everytime I think or discuss singleton the following things come in to my mind :
- Global State;
- Hard to test (refer to unit test post);
- Singletonite (I see Singletons everywhere);
- Violating the Single Responsibility Rule.
I could spent a few pages [...]


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

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


Who am I?

My name is Bashar Al-Fallouji, I am an IT Consultant and Co-Founder at DevMotion.

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.

  • Bashar: Thats right, the setSaveFile create a files containing an associative array of classname => filen [...]
  • Loggy: Jim's clarification in particular was pretty useful although I did have to dig down into the tree to [...]
  • Jim Osborne: Got it! It did work 'out of the box' when I extended the test code to instantiate a class within [...]
  • Jim Osborne: Downloaded PHP-Autoload-Manager from github yesterday and tested in line with README file. It did no [...]
  • Hamidou: Felicitations! [...]