Posts Tagged ‘beginners’

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

Classes & Examples Sub-Category

December 6th, 2007

I’ve created a “Classes & Examples” sub category for PHP. This category will be different from actual Design Patterns in a way that these will be more practical examples which you can modify and use in your own code base (all I ask is that you leave my name somewhere in the credits).

The Posts I will be making in the “Classes & Examples” Sub-Category will be formatted in the following way:

» Read more: Classes & Examples Sub-Category

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

New Category: PHP Programming/Tips for beginners

May 14th, 2007

Now that I have a bit of time on my hands I thought I’d organise my categories a little better. I’ve added a new category called “Tips for beginners” which will consist of grass roots, entry level tips for those who have just embarked upon the journey of Web Development with PHP.

I’ve also created a new category for my “General Notes”. I’ve noticed that from time to time, I find myself thinking about subject matter that would be good to share, but is not a big enough subject to make a blog post about. So I created this category to serve as a repository for such ideas about small but important subject matter.

These new sub categories can be found under PHP Programming. As a final note, I’d like to add that I’ve moved the PHP Design Patterns category as a sub category to PHP Programming. Please update your feeds.

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