Archive for the ‘Tips for beginners’ category

Create meaningful class attributes, not ambiguous arrays, in PHP

December 29th, 2007

Happy holidays guys, it’s been a while since the last update, but I’ve been busy tweaking our framework at devproducts and wrappin’ presents that I’ve not had the time to actually make any valid posts aside from the odd I shopped here and there post, so I thought it would have been best to keep quiet until I had something meaningful to say.

A couple of years ago, when I had come across some code I had coded when I had first started learning OOP. I came across an object coined “DataSpace” from frameworks like WACT which used this uber-cool pattern.

Going through some of my old code, I’ve noticed some serious flaws. This “DataSpace” been applied wayyyy too liberally throughout almost all my applications.

» Read more: Create meaningful class attributes, not ambiguous arrays, in PHP

Follow Coding Standards

May 17th, 2007

Being a self-taught beginner at one stage, I understand that code formatting and other concerns NOT regarding syntax is taken for granted, I mean, when you pick up your first programming language, the one thing you want is for your application to work, heck, when some beginners first started programming PHP, they have no idea what a “coding standard” is let alone it’s existence and haphazardly hack away line for line at their scripts without regard.

» Read more: Follow Coding Standards

Format your PHP Code

May 14th, 2007

After fixing my wireless issues with Kubuntu Feisty, I went on a little break. I was sick of looking at my dual monitors and eye-candy rotating desktop cube *rotates cube* – well ok… maybe not the cube, but now that I’m back, I’d like to bring your attention to formatting your PHP code.
» Read more: Format your PHP Code