Little discussion on how ppl develop their code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Little discussion on how ppl develop their code

Post by Chris Corbyn »

Hi,

Just thought I'd start a discussion that's not to taxing while your sifting your way through all these posts to find what you're after.

Just wondered how other people are going about developing their code from start to finish.

Personally when I come up with an idea for something I'd like to do on my website I get a piece of blank paper and brainstorm all my ideas.

Then I make flow charts, taking various routes (representing if/else statements etc).

Before I jump into writing the code into my current script I just make a little test.php page and then write the code for the simplest case possible and keep increasing it's complexity and restesting it until I eventually have go the code that I will use in my script.

It often takes a little while every time I add something new to the code to get it working but I'm sure that's just co I'm fairly new to PHP. I'm guessing that when you've been working with PHP for a while you don't even need to test it and can just write it directly to your current script from scratch (though of course, that would not be a good thing to do unless it's a really simple code).

Finally I test the code very thoroughly considering every possible option and making sure there are no holes in the code.

Is this pretty much a standard procedure to follow when developing new code?

:-)
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

i never brainstorm, never write anything down, the only thing i ever write down is database infrastructure

i find i code alot better this way, on the fly

however i do have a large whiteboard next to a pc where i write down what all of the $vars are for as i often get 50+ $vars within a script
Last edited by malcolmboston on Tue Apr 20, 2004 10:50 am, edited 1 time in total.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

This has been discussed before, have a look here - viewtopic.php?t=15730&highlight=develope+develop+paper

Mark
Post Reply