Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Pseudocode

Name: Anonymous 2010-09-05 3:44

How much pseudocode do you write before you begin programming /prog/

Name: Anonymous 2010-09-05 4:08

I write the entire program in pseudocode, then implement a dsl to run it as written.

Name: Anonymous 2010-09-05 4:42

>>2
Cable modems are better.

Name: Anonymous 2010-09-05 5:14

I do all my work abstractly in pseudocode. From then, it's just a matter of translating the code into the programming language's practices.

Name: Anonymous 2010-09-05 7:23

The only pseudocode I write is in comment form in place of the lowest-level code. As the real code is written, these comments are deleted.
This isn't even necessary for most functions; usually the best way is to write the function as I'd like it to be, then write the bodies for functions that I had to pretend existed.

Name: Anonymous 2010-09-05 7:29

I write the entire code at once then debug it.
It works 20% of the time.

Name: Anonymous 2010-09-05 7:30

Only the important/fundamental bits, sometimes taking the same route as >>2

Name: Anonymous 2010-09-05 7:36

>>6
I tend to write a few functions then I test them, if I'm using Lisp, since testing is easy there. If I'm using C, I tend to write the entire module at once, or just test some of the functions. There have been enough cases where I've been pleasantly surprised to have a bug-free program on my first try, on other cases, there are sometimes some obvious bugs which are easily fixed, and in very rare cases, there are bugs which can be hard to find.

Name: Anonymous 2010-09-05 8:38

>>6 like a man

Name: Anonymous 2010-09-05 8:43

I always scribble something on my whiteboard, be it pseudocode, flowcharts, or particular formulas for my program.

Name: Anonymous 2010-09-05 9:50

Sometimes I doodle things like arrays and pointers if im doing some particular ugly multi-derefencing array hacking or something, but not normally. mostly its all visualized in my head

Name: Anonymous 2010-09-05 10:35

I usually write out the whole program as broad descriptions of what it should do, and then progressively replace each part with a more specific and detailed description. I keep doing this until the description are basically equivalent to what the code would be, and then I just translate them.
Works a lot better than what most people understand when you say ``pseudocode''.

Name: Anonymous 2010-09-05 11:03

>>12
U MENA STEPWISE REFINEMENT

Name: Anonymous 2010-09-05 11:30

What're you talking about, all programming is pseudocode.

I'm a lisp pseudocoder.

Name: Anonymous 2010-09-05 11:34

>>1
It really depends on the situation.  If I'm adding a new feature to an existing product, by the time I get through the design phase, I have enough artifacts (class diagrams, sequence diagrams, etc.) to go straight to code.  I start by stubbing out all of my classes, so that's a bit like pseudocode.
If I'm starting a new product, however, I like to code up a quick "proof of concept" in python.  It's a quick and easy way to get a prototype in front of the customer to make sure we're all on the same page.  I can then work from the python instead of just from pseudocode.

Name: Anonymous 2010-09-05 11:36

I usually wear a long white eyelet dress put on a floppy white hat and carry a walking stick.

Name: Anonymous 2010-09-05 12:04

>>16
We're doing Youtube memes now?

Name: Anonymous 2010-09-05 12:10

>>1
Mostly writing flowcharts and then man up and starts coding.

Name: Anonymous 2010-09-05 12:12

I just write pseudocode all the way then M-x indent-region at the end. It's python.

Name: Anonymous 2010-09-05 12:51

I just write pseudocode all the way then unsafePerformIO at the end. It's Haskell.

Name: Anonymous 2010-09-05 13:03

I just write pseudocode all the way then opera at the end. It's HTML.

Name: Anonymous 2010-09-05 13:09

>>19
>>20
>>21
I just write samefag all the way then ugay at the end. PPC

Name: Anonymous 2010-09-05 13:10

>>22

As the author of >>19 I take offence at your statement, but quickly realize this is the internet.

Name: Anonymous 2010-09-05 13:29

>>14
What about the program that interprets your program?

Name: Anonymous 2010-09-05 13:44

>>22-23,22,22,23,23-22
Speaking as a mother and as >>21, I take offence to your statements but actually we're all Anonymous anyway.

Name: Anonymous 2010-09-05 14:43

>>25
Mr. Anonymous doesn't live here. Did you mean ``anonymous''?

Name: Anönymous 2010-09-05 14:45

>>26
[...] Name: Anonymous : 2010-09-05 [...]
Nope.

Name: Anonymous 2010-09-05 14:54

There is an interesting interview of Bruce Powell Douglas on SE-Radio who uses executable UML to design real time embedded systems
http://www.se-radio.net/2007/10/episode-73-real-time-systems-with-bruce-powel-douglass/

Name: Anonymous 2010-09-05 17:26

>>24
It's turtles all the way down.

Name: Anonymous 2010-09-05 23:24

>>15
get a prototype in front of the customer
the customer
customer
lol'd

Name: Anonymous 2010-09-06 0:47

>>30
i don't get it

Name: Anonymous 2010-09-06 12:16

>>31
Neither does he. That's the joke.

Name: ​​​​​​​​​​ 2010-10-24 1:58

Name: Anonymous 2011-02-04 12:33

Don't change these.
Name: Email:
Entire Thread Thread List