do you really use pseudo-code?

This is a discussion on do you really use pseudo-code? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; ? i read about people using it all the time, but i just skip right over and start coding. am ...

  1. #1
    Registered User blight2c's Avatar
    Join Date
    Mar 2002
    Posts
    266

    do you really use pseudo-code?

    ? i read about people using it all the time, but i just skip right over and start coding. am i in for problems down the line?

  2. #2
    Señor Member
    Join Date
    Jan 2002
    Posts
    561
    On big projects you get screwed up the butthole if you don't use it beforehand. I'm experiencing that right now. You really should use it, but it's sorta like documenting. You have to do it sometimes even though you hate to, but you are glad you did it a week later. My psuedocode is pretty much a tentative structure of my program. It seems to help when I actually do it.

  3. #3
    Peace
    Join Date
    Aug 2001
    Posts
    1,510
    I psuedocode particularly nasty parts of my app to make sure i have the logic down right before i start tearing things apart to implement something i may have to tear back out again because it doesnt work. It can save time and it can waste time. IMO you can spend too much time on pre-code stuff. Its really a judgement call... you'll rapidly gain the know-how.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  4. #4
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    I'm a firm believer in having a good design document before you write your first line of code (notice I didn't say "complete" design document, not sure there is such a thing ).

    I don't pseudo code generic simple algorithms but anything that's going to take some time to code is worth going through it with a pen/paper first. I find it saves me tons of headaches when I plan it all out first.

  5. #5
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >am i in for problems down the line
    Yes, without a well documented structure the coding process will be longer and harder because you have to solve problems on the fly, problems that should have been taken care of in pseudocode or flowcharts. The only problems you should be dealing with when actually writing the program are syntactic and semantic errors of the language ( which start to go away with time and experience ), not algorithms and structure. You want to know exactly how the program should flow before you even type one character.

    -Prelude
    My best code is written with the delete key.

  6. #6
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    I've never used pseudo-code. When designing algorithms I'll use a visual design language or, only when really necessary, the language of mathematical logic (quantors etc.).

  7. #7
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    What exactly IS pseudocode?

  8. #8
    Registered User
    Join Date
    Feb 2002
    Posts
    591
    Nah pseudo code is over rated. Me and most "real" programmers I know make a flow chart writing in what should be passed inbtween functions and classes. My opinion is that the method they teach in scool is much to involved to be efficient. The requirments for a comercial apps usally change 2-n times before the first RC.

  9. #9
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    >The requirments for a comercial apps usally change 2-n times
    >before the first RC.

    Yep, I recognise that. One of our clients decided to do some changes to the user requirements at almost the end of the project.

  10. #10
    Meow Pendragon's Avatar
    Join Date
    Sep 2001
    Location
    Swindon, UK
    Posts
    724
    Pseudo-code is just a way of mapping out what you're going to do before you do it. A plan of the program in effect.

    I use for larger programs but I tend to generalise it.

  11. #11
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    If you're using an abstract level of your program, there is no need for pseudo code (your code IS kind of a pseudo code then ).
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  12. #12
    Peace
    Join Date
    Aug 2001
    Posts
    1,510
    >>Nah pseudo code is over rated.

    Seconded. There is a stage in your programming life where its good to plan all this stuff out but i find when things get *really* involved i just dig in and wing it. When there's 100,000 different classes that all interact with one-another and you need to add another feature you're never going to be able to psuedocode every possability. Its just a waste of time. Just start typing and it all becomes apparent. Take it as it comes.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  13. #13
    Registered User blight2c's Avatar
    Join Date
    Mar 2002
    Posts
    266
    (your code IS kind of a pseudo code then ).
    that's kinda the thing i'm taking about: when i force myself to write pseudo i find that i'm working from the code in my head back to english.

    what about on the job? say you have to write a functin or class, does your boss/client want to see the pseudo/chart before you code?

  14. #14
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    if the problem requires a nice in depth algorithm that i have to put into code...

    pseudocode here i come...
    My Website

    "Circular logic is good because it is."

  15. #15
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    Originally posted by blight2c
    what about on the job? say you have to write a functin or class, does your boss/client want to see the pseudo/chart before you code?
    My boss is the person who got me of pseudo-coding, etc. I'll admit we don't pseudo-code as much as we map out the logic flow with charts. His biggest thing is having a good design doc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Proposal: Code colouring
    By Perspective in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 05-14-2007, 08:23 AM
  2. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 11:20 AM
  3. Explain this C code in english
    By soadlink in forum C Programming
    Replies: 16
    Last Post: 08-31-2006, 01:48 AM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 06:06 PM
  5. Replies: 0
    Last Post: 02-21-2002, 06:05 PM

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