View Poll Results: How often do people use pseudocode before programming ?

Voters
28. You may not vote on this poll
  • Every time

    7 25.00%
  • Sometimes (depends...)

    15 53.57%
  • Never

    6 21.43%

Poll: Is pseudocode really needed ?

This is a discussion on Poll: Is pseudocode really needed ? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Poll: Is pseudocode really needed? How often do people use pseudocode before writing their programs?...

  1. #1
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020

    Poll: Is pseudocode really needed ?

    Poll: Is pseudocode really needed? How often do people use
    pseudocode before writing their programs?

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    It depends. I do at times, but not every time. Often though. It's helpful as a quick outline to just throw together so you know what you want the program to do:
    Code:
        initialize port
        bind port
        listen on port
        while ! shutdown
            listen for new connection
                accept new connection
            call select
            for each connection
                read input
                parse input
                execute command
                send output
    And now you have the pseudo code for a small telnet server...

    Quzah.
    Last edited by quzah; 01-07-2002 at 08:46 PM.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User zahid's Avatar
    Join Date
    Aug 2001
    Posts
    532

    It should be ideal.

    Practicing it is much better for being a good programmer as I have learned.

    Even I do not do it everytime but trying to make is a habit. It saves time from possibility of wasting it.
    Last edited by zahid; 01-08-2002 at 02:33 AM.
    [ Never code before desk work ]
    -------------------------------------:-->
    A man who fears Nothing is the man who Loves Nothing
    If you Love Nothing, what joy is there in your life.
    =------------------------------------------------------= - I may be wrong.

  4. #4
    Registered User zahid's Avatar
    Join Date
    Aug 2001
    Posts
    532
    Originally posted by quzah

    And now you have the pseudo code for a small telnet server...
    Yeah.. Birds eye view.

    Which is must
    to never be lost.
    [ Never code before desk work ]
    -------------------------------------:-->
    A man who fears Nothing is the man who Loves Nothing
    If you Love Nothing, what joy is there in your life.
    =------------------------------------------------------= - I may be wrong.

  5. #5
    Registered User
    Join Date
    Sep 2001
    Posts
    752
    Unless I already know how to code what I am going to be coding, then yes... definately yes. How much I get into the pseudocode really depends on how big whatever I'm doing is, although generally it just amounts to C code, with incorrect syntax. I've had the best experience with this sort of pseudocode since it's rigorous enough to be correct, translating it into real code is pretty simple, and it keeps my functions small.

    Basically, pseudocode stops you from coding monolithic programs.
    Callou collei we'll code the way
    Of prime numbers and pings!

  6. #6
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    Moved because I think it's more appropriate here...

    Oh, and I use pseudocode whenever I write any program longer than a few lines.

  7. #7
    A Banana Yoshi's Avatar
    Join Date
    Oct 2001
    Posts
    857
    Pseudocode is needed b4 you program.
    Yoshi

  8. #8
    Registered User
    Join Date
    Oct 2001
    Posts
    375
    Well, I'll break the mold and mention that there are a lot of other ways to design your program, and many of them work better in my opinion. I think pseudo code is a pretty worthless way to design an object oriented project, for instance..

    Design before coding is a must, however.
    Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/

  9. #9
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    I have used pseudocode for many years almost everytime i code and will continue to do so for many more years.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  10. #10
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    I never use pseudo code. In my opinion there are much better ways to design software. Mostly I use flow charts, or for larger designs UML. They give a much better overview of the software to be developed.

  11. #11
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    For designing algorithms use psudocode, for programs it's too time consuming.

  12. #12
    Peace
    Join Date
    Aug 2001
    Posts
    1,510
    I use pseodocode on occasion. Usually when i'm away from home and inpiration strikes me and i have to write out the genius solution to something-or-other. Unfortunatly sometimes it comes on such a basic level that it tends to look something like this (slightly exaggerated, maybe... a little...):
    Code:
    startgame();
    setupgameparameters();
    while (still_playgame)
    {
       check_player();
       do_actions();
       show_map();
    }
    Which is the real drawback of pseodocode... Its not code. It doesnt encompass all the issues you're going to get into. A lot of times something looks simple in pseodocode but then you realize that its not going to work out that way in real code. Its still handy for getting your thoughts straight though. I tend to plan stuff out in my head while i eat lunch or something. Or wander around the house looking like a crazy-man as i hold a one man conference out loud to myself.

    One things for sure though. You cant go wrong with planning things out. But if my masses of paper recycling is any indication then i should never run into an unforseen catch... hya! right!
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  13. #13
    Still A Registered User DISGUISED's Avatar
    Join Date
    Aug 2001
    Posts
    499
    We are required to submit flowcharts and pseudocode for every project at my college. I think it's good to plan out your logic. Just because your syntax is correct doesn't mean your program is doing what it is intended to do and good planning can help you to avoid this.

    Many people at school never do the flowcharting/pseudocode before coding the program. They stuggle to complete the program and then create the flowcharts/psuedocode from their completed source for submission. I find this funny because this is the exact opposite of what we are taught.

  14. #14
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    for the most part, i think that it shouldn't need to be used since it's my practice to minimize a function's scope. however if organizing a project's functions does not hint at the program's overall functionality, pseudocode is helpful indeed!

    also for describing a program, we should all use pseudocode! also, if you are describing something to a newbie, use pseudocode! it'll give them the answer, but force them to think. talk in generals
    hasafraggin shizigishin oppashigger...

  15. #15
    31173 h4x0r gnu-ehacks's Avatar
    Join Date
    Nov 2001
    Posts
    556
    I try to, but every time I do a project, I'm always too lazy.
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Best way to poll sockets?
    By 39ster in forum Networking/Device Communication
    Replies: 3
    Last Post: 07-22-2008, 01:43 PM
  2. Poll - Terrorism & Torture
    By Kybo_Ren in forum A Brief History of Cprogramming.com
    Replies: 38
    Last Post: 12-04-2006, 01:08 PM
  3. Today on Cprogramming....When Polls go bad?
    By incognito in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 01-25-2002, 12:41 PM
  4. Poll this Poll that
    By ski6ski in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 09-28-2001, 04:19 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21