View Single Post
Old Nov 9th, 2006, 4:54 PM   #7
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,261
Rep Power: 5 grumpy will become famous soon enough
2Roll4Life7 and Polyphemus_, if you want to play with getting it "neater"

1) Define what you mean by "neatness", and provide some measure by which you determine how neat some code is;

2) Try different approaches.

In keeping on topic with this thread, one measure might be related to the amount of repetitive code ......

In practice, I don't tend to like nesting switch/case blocks in if/else blocks (or vice versa) because it takes more time/effort to read and understand, which means it takes more time/effort to maintain.
grumpy is offline   Reply With Quote