Page 1 of 1

Little discussion on how ppl develop their code

Posted: Tue Apr 20, 2004 10:33 am
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?

:-)

Posted: Tue Apr 20, 2004 10:39 am
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

Posted: Tue Apr 20, 2004 10:47 am
by JayBird
This has been discussed before, have a look here - viewtopic.php?t=15730&highlight=develope+develop+paper

Mark