Lost Password?


Go Back   CodeCall Programming Forum > Software Development > General Programming

General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-25-2006, 06:24 PM
Void's Avatar   
Void Void is offline
Programming Expert
 
Join Date: Jun 2006
Posts: 411
Rep Power: 11
Void is on a distinguished road
Default Flowcharts

Do you create flowcharts for your software before you create it? In school we were taught to make these before we ever did any actual work. Now, I never create flowcharts and my programs seem just fine. I understand what they are for and how they can help I just usually don't know how I'm going to work any of the code before I code.

If you do do flowcharts:
Do you do the entire program in one flowchart or do you do each class?
Are they worth doing?
Do you update them when you make changes?
__________________
Void
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 06-26-2006, 06:47 PM
smith smith is offline
Programmer
 
Join Date: Jun 2006
Posts: 108
Rep Power: 9
smith is on a distinguished road
Default

Yup, I do create flowcharts before each program.

Yes, entire program first
Yes, they help you spot where you can use OOP
No, lol - I often do not.

Here is you some software to do it automatically. Not sure how well that would work though:

http://www.softplatz.com/Soft/Develo...Flowchart.html
__________________
Code:
for (int i;;) {
   cout << "Smith";
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-29-2006, 04:54 PM
Void's Avatar   
Void Void is offline
Programming Expert
 
Join Date: Jun 2006
Posts: 411
Rep Power: 11
Void is on a distinguished road
Default

I don't think an auto-flow charter would work to well

Anyone else?
__________________
Void
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-03-2006, 08:14 PM
Kaabi's Avatar   
Kaabi Kaabi is offline
Programming God
 
Join Date: Jul 2006
Posts: 884
Rep Power: 14
Kaabi is on a distinguished road
Default

An auto-flow charter? I don't see any way that would be able to work. I've never made a flow chart before, but that's because I've never made a long program.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-06-2006, 05:45 PM
koolkid koolkid is offline
Newbie
 
Join Date: Jul 2006
Posts: 17
Rep Power: 9
koolkid is on a distinguished road
Default

I agree, they seem like a waste of time for most projects unless it is very big and complicated
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 07-07-2006, 07:55 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,278
Last Blog:
wxWidgets is NOT code ...
Rep Power: 36
WingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to all
Default

Quote:
Originally Posted by Void
Do you create flowcharts for your software before you create it? In school we were taught to make these before we ever did any actual work. Now, I never create flowcharts and my programs seem just fine. I understand what they are for and how they can help I just usually don't know how I'm going to work any of the code before I code.

If you do do flowcharts:
Do you do the entire program in one flowchart or do you do each class?
Are they worth doing?
Do you update them when you make changes?
I used to feel the same way you do, back in '89 and '90 when I was programming in Pascal. I took a look at a couple games I wrote recently and was horrified at the mess my code was in, along with the unnecessary work I did adding parameters to function calls as I added features.

Yes, Yes, and Yes.

For the best flowcharting program I've ever found, go to http://www.dynamicdraw.com/index.html it has a bit of a learning curve to it but allows you to do version tracking on your flowcharts.

As a practical example of why flowchart:
For a text game like Yahtzee, it's easy to see that you have a loop in which you roll the dice, then decide a few times about rerolling, then score your roll. Drawing this stuff out is easy, and the function calls are pretty straight-forward.

Now, consider playing chess (or go, which is what I'm working on now). Suddenly you have to deal with flags for whether a pawn can be captured en-passant this turn, whether the king can castle with a particular rook, storing how each piece moves, etc, etc, etc. Flow charting allows you to organize the mass of information before you start worrying about pesky things like coding details. It also lets you check the logic.

Most classroom projects don't really need a flowchart until you're so badly weaned off them that you crash hard when you DO need one.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-10-2006, 10:50 AM
Chan Chan is offline
Programming Professional
 
Join Date: Jun 2006
Posts: 205
Rep Power: 10
Chan is on a distinguished road
Default

I'm still new to programming, what are flowcharts?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 07-10-2006, 02:07 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,278
Last Blog:
wxWidgets is NOT code ...
Rep Power: 36
WingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to all
Default

Flowcharts are diagrams that are used to represent the sequence of processing in a program. The idea is to use them to get the program mapped out in an informal way before you worry about the actual coding, with all the syntax issues that came come up there. Another planning tool is pseudocode, where you sketch out the commands in something similar to English, but with the idea that you'll be able to translate it into code easily.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 07-18-2006, 10:50 PM
forumnewbie forumnewbie is offline
Newbie
 
Join Date: Jul 2006
Posts: 7
Rep Power: 0
forumnewbie is on a distinguished road
Default

taking flowcharts a bit further, if you are working on a big project, something like UML (especially for OOP languages) can be really beneficial.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 07-23-2006, 06:11 PM
kromagnon kromagnon is offline
Learning Programmer
 
Join Date: Jun 2006
Posts: 53
Rep Power: 9
kromagnon is on a distinguished road
Default

I know this sounds horrible, but I don't do ANYTHING. I just sit down and start coding before I do anything else. Let the flaming begin.
__________________
<!-- comment comment comment --></
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -5. The time now is 07:06 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads