• Monthly Archives
  • July 2013
  • 22 Posts

Implementing dynamic, read-only object properties in PHP

I was recently working on a PHP project where i needed (or would of liked) an object to have publicly available properties which were read-only. Unfortunately PHP doesn’t support this and the usual way of implementing something similar was to have private properties and standard getter methods. The trouble with getter methods is that sometimes they seem a little like overkill, especially if you’re only accessing a name or an age, etc. Do you really need a method call to return a simple string or number that is always the same? Plus, in my opinion, they are harder to read than properties, although it could be argued only slightly.

Why you should use revision control

Revision control is a little like insurance. You never see the value of it until you actually need it. Some programmers never touch it, while others swear by it. Revision control does contribute huge benefits while also introducing a small overhead on project management. I personally feel every project ever developed should always be placed under such a management system and here’s why.

Does typing speed matter for programmers?

A few months ago Jeff Atwood blogged again about the need for programmers to be good typists. In fact he has espoused sheer disdain over the years for all programmers if they were anything less than certified touch-typists. In November 2008 he wrote

We are typists first, and programmers second. It’s very difficult for me to take another programmer seriously when I see them using the hunt and peck typing techniques.

Does branding matter for software?

Steve Yegge presents his keynote: How to Ignore Marketing and Become Irrelevant in Two Easy Steps. From O’Reilly Media’s Open Source Convention, July 26, 2007.

This is one of the best software talks i’ve seen which deals with the problem of software branding. Give it a watch and then ask yourself, does your software project need to worry about branding?

Sir, I don't know where your ship learned to communicate, but it has the most peculiar dialect.

Objective-C, A language from another galaxy

Over the last few weeks i’ve been learning Objective-CApple’s flagship programming language, preferred for all Mac OS and iOS development. Wanting to create my own iPhone and iPad apps, i wanted to learn Objective-C and of course after doing a great deal of programming using C type languages I thought it would be quite easy to learn and program using it, …how wrong i was!