Mark’s Site

Pensieve for coding and golf :-)

Archives for the ‘Coding’ Category

Performance Friendly PHP

By admin • Jun 12th, 2008 • Category: 1.3. Good Practice Coding

As you grow into programming, you can pick up some poor habits along the way. These habits produce the same output, but when used in large projects could end up causing some performance headaches in the long run, causing you to get mentally spanked for not paying attention when reading this article!
So to save your [...]



CSV Data Generator

By admin • Jun 4th, 2008 • Category: 2.4. Testing

I’m in the process of creating a csv import application for employee data among other things, so I needed good quality test data. Instead of writing a few lines of test data myself, I thought I’d check if any free applications existed to do the work for me. I’m into free applications that I don’t [...]



The Importance of Coding Preparation

By admin • Jun 4th, 2008 • Category: 2.1.1. Planning

Some call it coding preparation, others will call it planning and design, but we’re talking about the same thing. The more I code, the more I see professional programmers who just want to code. They don’t care if the design is complete. After all, they have enough info to get started right? They have the [...]



Singleton Pattern

By admin • May 17th, 2008 • Category: 2.3.1. Creational Patterns

This is important, listen up! The singleton design pattern is used to ensure a class has only one instance, and that global access to that instance is available. In other words, it restricts instantiation of a class to one object.



Design Patterns Defined

By admin • May 17th, 2008 • Category: 2.3. Design Patterns

What are design patterns and why do I want to know about them?



Decorator Pattern

By admin • May 17th, 2008 • Category: 2.3.2. Structural Patterns

A useful example that I thought I should share



Downgrade Gracefully

By admin • May 7th, 2008 • Category: 2.1.4. User Interface Design

Stuff you need to know about downgrading



Screen Design

By admin • May 4th, 2008 • Category: 2.1.4. User Interface Design

When I first started web development, one thing I was always torn on was how to design my screens. I had loads of information that I needed to display in some meaningful, easy to search format. After many years of trial and error, I’ve now got my ‘template’ screens that I use for all my content management screens.



All About Commenting

By admin • May 2nd, 2008 • Category: 1.2. Code Basics

It can be confusing when you start developing in a new language to know about the rules for commenting.



Staging Environments

By admin • May 1st, 2008 • Category: 1.3. Good Practice Coding

It’s so important to have a separate staging environment, so you can make changes (major or minor) and test the results BEFORE releasing to your live server.