views:

111

answers:

2

I had to do a overview for a customer meeting, and they requested flow charts. It had never occurred to me that there was no switch symbol in any of the flow charting I've seen. I know functionally they are similar, but documentation should represent the code you've written or are planning too. Maybe I'm just being picky, but it seems like a common enough construct that it would have "representation."

Pete

+2  A: 
chaos
That's what appears to be the most common case, I've found. Perhaps this is do the notion that flowcharts were more prevalent BC. (Before C or I suppose Pascal but you get the idea.) It feels wrong when I look at though I see if statements.
NoMoreZealots
A: 

The difference between a series of if's and a switch is irrelevant at the flow chart level. Both are a series of conditionals. If you want to document your code down to the if/switch level, just print out the code.

Ned Batchelder