Pseudocode - Flowcharts

Status
Not open for further replies.

Keen

Ars Legatus Legionis
13,440
Subscriptor
j0k3r":1pak12s8 said:
philhanson":1pak12s8 said:
A program which generates a flowchart based on how your Pseudocode is written.

That's backwards. The correct way to do this is to design your software with flowcharts, then let a computer turn your flowcharts into compilable source code.

http://www.mathworks.com/products/stateflow/
Wow, that's fantastic.
 

fitten

Ars Legatus Legionis
55,637
Subscriptor++
Yes. OmniGraffle is one of the best at it. Basically if you're on OSX use OmniGraffle. If you're on Windows, use Visio. I actually talked to the folks at OmniGraffle many years ago asking if they'd make a Windows or Linux port but they said it was so tied deeply into OSX internals that it would be too much work to port. But that was a long time ago... they may could do it much easier today if they wanted.
 

topham

Ars Legatus Legionis
13,756
Subscriptor
fitten":3bp77vk2 said:
Yes. OmniGraffle is one of the best at it. Basically if you're on OSX use OmniGraffle. If you're on Windows, use Visio. I actually talked to the folks at OmniGraffle many years ago asking if they'd make a Windows or Linux port but they said it was so tied deeply into OSX internals that it would be too much work to port. But that was a long time ago... they may could do it much easier today if they wanted.

It wouldn't be any easier; Writing a basic version of something like OmniGraffle is childs play with the Cocoa framework. (Really, it damn near writes itself) Making it a full fledge product is a lot more work mind you.
 

DebtAngel

Ars Scholae Palatinae
1,027
One thing they may have not covered properly in class is what flowcharts, pseudocode, etc. are actually useful for.

There are basically two reasons I'll draw a flowchart in the "real world":
  • I'm not quite sure how I'm going to write a method/function. If there are a couple of ways to do something, I'll draw a quick chart for each one, and generally implement the one that "feels" better.
  • I'm troubleshooting and/or refactoring (rewriting) a method that is fairly complicated, and I need a handle on what it's actually doing. This is particularly important when the code only seems to work sometimes.
Occasionally, I may create one as an explanatory tool, but they very very rarely make their way into actual documentation. That largely fell out of favour before I even started my career.

Pseudocode is kind of the same way, but over time I've used it a lot less often - generally, if I feel the need to draw something out, it's because I haven't figured out how to express what I want to do in code yet.

You'll also almost never use both methods for the same bit of code. You're only doing that in class so you can make an informed decision on which method you prefer, and so you can learn when you would want to use one method over the other.
 

ChrisB

Ars Tribunus Militum
2,422
Subscriptor
Keen":17o7tclz said:
j0k3r":17o7tclz said:
philhanson":17o7tclz said:
A program which generates a flowchart based on how your Pseudocode is written.

That's backwards. The correct way to do this is to design your software with flowcharts, then let a computer turn your flowcharts into compilable source code.

http://www.mathworks.com/products/stateflow/
Wow, that's fantastic.


Oh god, it's labview (well close enough). Make It Stop!
 
Status
Not open for further replies.