Coding practices

Nov 07, 2005 18:47

Chime in...I am interested on your thoughts...

Which coding method do you prefer? Put every little logical routine into a sub function (example a), or write code into the main (example b)

Examples )

coding

Leave a comment

Comments 13

perminisconious November 7 2005, 19:21:54 UTC
I think A is the proper way to do it, but in practice, I do a bit more of B.

Reply


sugarmama13 November 7 2005, 19:26:32 UTC
I personally like color coding :-D It's prettier.

Reply

clayemore November 7 2005, 20:00:59 UTC
yeah...well...I apologized for the indentations!!!!

Reply

arichi November 8 2005, 09:53:46 UTC
Ironically, my current research is on color coding and how it relates to programming.

Reply


firetie November 7 2005, 19:37:16 UTC
In practice I prefer A. That way I can start from a high abstraction and work my way down to the nitty gritty stuff at the end.

Reply


fallorn November 7 2005, 20:42:10 UTC
Should, and often do A, but not really enough. So i guess sorta a weird hyrbid of both.

Reply


skywalker404 November 7 2005, 21:20:39 UTC
A. Easier to debug, easier to read, easier to understand, and easier to alter. Better seperation of concerns, esp in relation to reusing variables. BTW, you could have wrapped that in PRE tags to get indenting.

Reply


Leave a comment

Up