Programming

In favour of typing

Programming

Apr 23, 2012 - no comments

In favour of typing

We sometimes conceive of ideas that are arduous to express in code. Like persisting data, or some other uncommon task (sarcasm). It's not difficult, but it takes a lot of keystrokes to write. Being problem solvers, we find it difficult doing this kind of manual labour, especially when machines can do it for us. Still, I would like to take this opportunity to say that typing rocks and solutions that save typing suck.

Read more »

Dependency management

Programming #Principles #Craftsmanship #SOLID

Feb 12, 2012 - 4 comments

Dependency management

Almost all code we write builds on code others wrote. Whether you use some micro or macro framework, company code base or open source library, code is seldomly written in a vacuum. This can lead to several problems, for which several solutions have been devised. How can we structure our software to prevent dependency problems? This article describes common pains and symptoms of bad dependency management and common techniques for dealing with project-wide dependencies.

Read more »

SOLID design

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 »

Polymorphism

Programming #OOP #Polymorphism #Inheritance #Concept #Definition #PHP

Jun 23, 2011 - no comments

Classical Greek monomorph

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 »

Inheritance

Programming #Inheritance #OOP #Architecure #PHP

May 28, 2011 - no comments

Image: africa / FreeDigitalPhotos.net

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 »

$oop->consistency = false;

Programming #OOP #Consistency #Perfection #Encapsulation #PHP

May 18, 2011 - no comments

Image: Ambro / FreeDigitalPhotos.net

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 »

Differences between Abstract Classes and Interfaces

Programming #OOP #Concept #Definition #PHP

Apr 23, 2011 - 1 comments

Image: Nutdanai Apikhomboonwaroot / FreeDigitalPhotos.net

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 »

Intro Object Oriented Programming

Programming #OOP #Concept #Definition #PHP

Apr 16, 2011 - no comments

Image: Idea go / FreeDigitalPhotos.net

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 »