Theory

Higher order functions

Theory #Functional Programming #Elegance #PHP

Jul 11, 2011 - 2 comments

Higher order functions

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 »

Recursion

Theory #Concept #Definition #PHP

Jun 27, 2011 - no comments

Dog got tail!

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 »

I'll play nice if you tell me what that means

Theory #PHP #OOP #SOLID #Perfection #Judging

Jun 10, 2011 - no comments

Image: Salvatore Vuono / FreeDigitalPhotos.net

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 »

Language, Ideas and Software

Theory #Language

Apr 09, 2011 - no comments

Image: Salvatore Vuono / FreeDigitalPhotos.net

Software is written in programming languages, such as C, Visual Basic or PHP. In order to be a good programmer, you need to understand the language you are working with. If you can convert your solution into the proper commands, you have a working program.

Read more »