Archive for the ‘Design Pattern’ 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 [...]

I read an interesting post on Domain Driven Design on Fede.carg’s blog. Ever heard about Domain Driven Design ?
Domain-driven design separates the model layer “M” of MVC into an application, domain and infrastructure layer. The infrastructure layer is used to retrieve and store data. The domain layer is where the business knowledge or expertise is. [...]

Who am I?

My name is Bashar Al-Fallouji, I work as a Service Architect at Origin Energy (Sydney, Australia).

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.

  • dipan: Hi Bashar It's really awesome that you wrote this code. IT'll save tones of time of all developer. [...]
  • Bashar: Glad that you liked it ! [...]
  • Angel S. Moreno: well, there goes wasting a couple of hours of development and a couple of days of testing. I owe you [...]
  • 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 [...]