Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mgsarch

macrumors regular
Original poster
Jan 19, 2008
155
0
Is there a simple tool that will help diagram a program? Like, visual pseudo-coding kind of thing.

I really want a little program that visualizes the data set created by for loops. I've never seen anything like that and I know it's pretty simple to set up a little spreadsheet but it would be so handy to have a little calculator that did that.
 

mgsarch

macrumors regular
Original poster
Jan 19, 2008
155
0
you mean like a flow-chart?

no, not a chart at all. it would perform more like a spreadsheet.

eg.

FOR Calculator

Inputs: Starting Count Value, Test, Action

for (int i = 0; i < 100; i++) {
}


Output: value for i at t0,t1,t2,t3 ... etc.

This would be incredibly useful to me. I can easily output the numbers to the console of my IDE but it would be great to have a calculator that just did this and maybe saved to numbers/excel doc.

It would be helpful because then I don't risk stupid infinite loops or other mistakes I'm bound to make and it also is good for helping explain how loops work.
 

mgsarch

macrumors regular
Original poster
Jan 19, 2008
155
0
no, not a chart at all. it would perform more like a spreadsheet.

eg.

FOR Calculator

Inputs: Starting Count Value, Test, Action

for (int i = 0; i < 100; i++) {
}


Output: value for i at t0,t1,t2,t3 ... etc.

This would be incredibly useful to me. I can easily output the numbers to the console of my IDE but it would be great to have a calculator that just did this and maybe saved to numbers/excel doc.

It would be helpful because then I don't risk stupid infinite loops or other mistakes I'm bound to make and it also is good for helping explain how loops work.

It would be ridiculously easy to write this program, i guess i should just do it.
 

Eraserhead

macrumors G4
Nov 3, 2005
10,434
12,250
UK
I'd have thought this would be something a debugger could do, though I haven't used debuggers much at all.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.