Sep 18, 2011 - no comments
Don’t worry. This article isn’t nearly as sexy as the title implies. No, rather I visited my first time ever congress: PFC11.
Read more »News #Learning #PHP #Zend #Doctrine #PHPCR #Orchestra #Backbone #Mustache #jQueryUI
Aug 26, 2011 - no comments
When I was writing in my personal journal I made an entry of things I want to learn more about. I figured I’m going to learn at least some new tech or principle a month. I’ve already been trying out a few things, but sometimes computers just refuse to cooperate… Anyway, here is a list of stuff I’m currently watching and learning. So much to do, so little time.
Read more »Programming #SOLID #OOP #PHP #Architecture #Principles
Aug 10, 2011 - 8 comments
Oh how we love acronyms. We’ve discussed a lot about writing a class, but we haven’t talked about writing classes yet. How do you know if your solution is right? It is not enough to have a working program. SOLID is a set of principles that define severable measurable properties your architecture should have at least, in order to be dubbed right.
Read more »Technology #PHP #PHP 5.4 #Traits #OOP #Concept
Aug 06, 2011 - no comments
Recently the first previews of PHP 5.4, with several cool new features, has been released. I want to talk about an OOP concept that will be introduced in this version of PHP: traits.
Read more »News #Tool #nl2lf #PHP #Encoding #GitHub
Jul 31, 2011 - no comments
When I switched to a new IDE to edit an existing project, new files would get the wrong newline characters. This is not such a big deal, but to prevent cross-platform problems I wanted to keep all the files Unix-style. I wrote a convert script at first, but when it happened again I decided to make a small tool out of it: nl2lf. I also learned to configure my IDE before using it…
Read more »News #Jenkins #Ant #PHPUnit #Quality Assurance #PHP #Wamp #Pear #DocBlox #CodeSniffer
Jul 22, 2011 - 11 comments
Recently I have become quite interested in quality assurance. Not that many things are going wrong for me, but I’d really like to be more certain about the quality of my work. I’ve used some tools to help me achieve just that. In less than two hours you can set up your workspace and have the living daylights automated out of you!
Read more »
Theory #Functional Programming #Elegance #PHP
Jul 11, 2011 - no comments
Previously we talked about recursion, a way of programming in which we define a case and a step and let the software produce magic. We also touched on the functional programming paradigm. Today I want to add another topic from the functional programming arena: higher order functions.
Read more »Theory #Concept #Definition #PHP
Jun 27, 2011 - no comments
Some concepts just have to click. You stare at it for a while (or not) and then suddenly you see it. And what has been seen cannot be unseen. Recursion is one such concept; once you understand it you see it everywhere. Now, I don’t mean your two-facing-mirrors kind of recursion – I’m talking about programming, of course. Read on for more about one of the coolest concepts in the book.
Read more »Programming #OOP #Polymorphism #Inheritance #Concept #Definition #PHP
Jun 23, 2011 - no comments
If inheritance can feed your kittens, polymorphism will solve world peace ánd become beauty queen to boot. Read all about it in this article!
Read more »Theory #PHP #OOP #SOLID #Perfection #Judging
Jun 10, 2011 - no comments
Lukas Kahwe Smith wrote an article about keeping the parameter order intact when overloading the parent Exception’s constructor. He feels that by rearranging the parameter order the child no longer follows the contract of the parent. This is confusing and an ‘OO no-no’, according to him. In another recent article Keith Casey talks about this issue as well.
Read more »Programming #Inheritance #OOP #Architecure #PHP
May 28, 2011 - no comments
A very powerful and dangerous tool in the OOP toolbox is inheritance. Without it, OOP is utterly pointless and totally useless. Inheritance is the way to re-use functionality without re-implementing it. Inheritance will even feed your kittens! Read on for all the magic.
Read more »Programming #OOP #Consistency #Perfection #Encapsulation #PHP
May 18, 2011 - no comments
There are various ways to access the properties of an object. Is one way better than another? What constitutes a better way? Why should anyone care?
Read more »Programming #OOP #Concept #Definition #PHP
Apr 23, 2011 - 1 comments
I’m sure this topic has been discussed many times before and will be discussed many times again. However, I think there is a very interesting and important meta-discussion going on that is being left out of the spotlights.
Read more »Programming #OOP #Concept #Definition #PHP
Apr 16, 2011 - no comments
I’m going to try and present the very shortest explanation of what OOP is. Even though the concepts we will be talking about are equally valid in most, if not all, modern programming languages that use OOP as their paradigm, I will use PHP in my examples because that’s the language I work with the most. So let’s dig in!
Read more »