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

python

Name: Anonymous 2007-01-25 10:08

To my surprise, I was just struck by the power of Python

Name: Anonymous 2007-01-28 18:47

>>39
If you are doing all your debugging at the assembly level, you are doing it wrong.

Name: Anonymous 2007-01-29 12:21

>>36
Truth, in an ideal world. Problem is, you don't live alone in the world, and it is full of morons, so by mere statistics, more often than not, you'll be reading idiots' code, not smart people's code. (Plus, idiots' code needs more fixing and maintenance.)

Name: Anonymous 2007-01-29 12:42

>>42
That's why we have Haskell, where only smart people are able to write code.

Name: Anonymous 2007-01-29 15:31

>>43
Please post a working example of how to generate random numbers in Haskell. It's hilarious.

(When we did it we were forced to pass around that fucking random seed to each and every function)

Name: Anonymous 2007-01-30 7:09

>>44

rollDice :: IO Int
rollDice = getStdRandom (randomR (1,6))

Name: Anonymous 2007-01-30 8:20

>>45
JAJAJAJAJAJAJAJAJA I LOLED THATS HILARIOUS!!1

Name: Anonymous 2007-01-30 8:22

>>45
How comes you can do it without using a RandomGen g?

Name: Anonymous 2007-01-30 8:37

>>47

I use the global random number generator

Name: Anonymous 2007-01-30 14:22

>>48
OIC
Would you also mind showing how to open a file, write a line of text to it, and then close it?

For good measure I'll do it in Python:
file = open("file", "w")
file.write("text")
file.close()

Name: Anonymous 2007-01-30 15:09

When we did it we were forced to pass around that fucking random seed to each and every function

Someone doesn't know about monads!

Name: Anonymous 2007-01-30 15:42

>>50
Exactly! Now would you please give the open/write/close file example, because I happen to believe it involves monads too!

Name: Anonymous 2007-01-30 18:05

>>49
You could have simply done:

open('file', 'w').write('text')

Name: Anonymous 2007-01-30 18:15


import System.IO

main = writeFile "file" "text"

Name: Anonymous 2010-12-17 1:30

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Name: Anonymous 2010-12-17 1:40

This post brought to you by the Gay Nigger Association of America

Name: Sgt.Kabu貝沑kiman扆厭 2012-05-28 22:05

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

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