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

Pages: 1-4041-

favorite favourite

Name: Anonymous 2007-05-04 11:51 ID:yRcXa2gr

What's your favourite standard library function?

Mine is Matlab's squeeze. Every time I use it I can imagine my hyperdimensional manifestation pushing the matrix until all those useless dimensions become shiny drops of acid that are slowly absorbed into the surrounding space.

Name: Anonymous 2007-05-04 11:57 ID:cnyX7O40

My favourite function is haskell's Control.Arrow.loop. Every time I use it I can just imagine some fucking java expert programmer looking at my code and squirting in incomprehension at the higher-order magnificence.

Name: Anonymous 2007-05-04 11:59 ID:SCJtKwu6

SciPy's lena().

It generates a cropped Playboy image of dimensions 512x512.

Name: Anonymous 2007-05-04 12:15 ID:P0tpDvAt

>>2
What does the loop function do?  I don't get it :'(

Name: Anonymous 2007-05-04 12:27 ID:Heaven

>>4
Exactly that.

Name: Anonymous 2007-05-04 12:36 ID:P0tpDvAt

>>5
Oh, alright, I'll have to look it up.
loop f b = let (c,d) = f (b,d) in c
Hmm... invokes f on... no, I don't get it.  Stupid lazy evaluation.

Name: Anonymous 2007-05-04 12:55 ID:t5OjBZeo

my fave is call-with-current-continuation, everytime I use it I imagine wormholes through space and time in my code.

Name: Anonymous 2007-05-04 13:03 ID:Edgm9+y4

addPropertyChangeListener. Events are nice.

Name: Anonymous 2007-05-04 16:44 ID:NPSfy4LR

>>8
Shut up, Javafag.


My favorite of all time has to be cdr. Infinitely useful.

Name: Anonymous 2007-05-04 16:46 ID:Heaven

>>9
cdr (_:xs) = xs

Name: Anonymous 2007-05-04 17:45 ID:OAnCgMVU

arguments.callee

Name: Anonymous 2007-05-05 5:46 ID:S0zICuvx

>>10
cdr = tail

Name: Anonymous 2007-05-05 6:16 ID:tIlw6tqq

I love the 's' instruction from Funge-98.

Name: Anonymous 2007-05-05 6:22 ID:R08ewCPc

>>1
i love printk

Name: Anonymous 2007-05-05 6:26 ID:vdqBCVl0

map

Name: Anonymous 2007-05-05 8:12 ID:T9Sa2Gby

operator >> of the ostream class

Name: Anonymous 2007-05-05 8:32 ID:dUBwKnkb

>>16
Haha. Well, I guess that's as exciting as C++ gets.

Name: Anonymous 2007-05-05 8:43 ID:oRfBuPlI

FactoryFactory.createThingFactory(ThingFactory.createNewFactorifiedThing)

Name: Anonymous 2007-05-05 9:02 ID:sqU++aBp

>>16
wait wut?

Name: Anonymous 2007-05-05 9:25 ID:nlJpUqa3

wow, you managed to make a thread so gay even the "NO EXCEPTIONS" spammer won't reply to it! good job!

Name: Anonymous 2007-05-05 15:43 ID:9mPbF0bI

map

Name: Anonymous 2007-05-05 17:07 ID:Heaven

goto

Name: sage 2007-05-05 17:24 ID:Heaven

sage sage saged the sage

Name: Anonymous 2007-05-06 5:22 ID:SSzkub0h

Mine is Python's reduce. Every time I abuse it to perform iteration in a single expression, I can imagine the guy who'll have to maintain my code weeping at the horrible monstrosity I've created.

Name: Anonymous 2007-05-06 5:30 ID:1zNC+uAL

Data.Tree.unfoldTreeM :: forall b (m :: * -> *) a. (Monad m) => (b -> m (a, [b])) -> b -> m (Tree a)

Name: Anonymous 2007-05-06 5:33 ID:1zNC+uAL

also, I've recently come to like Data.Generics.Schemes.everywhere :: (forall a . Data a => a -> a) -> forall a . Data a => a -> a

which is like map, but works with any data structure whatsoever.

Name: Anonymous 2007-05-06 14:08 ID:NmUF1r52

JOptionPane. It's like cout and MsgBox but customizable. I always build a wrapper around it, name it "say()" and pass stuff to it that the user should know. You can even make a password input field if you inject a pane into one. Take that, DOS!

In java, it does annoy me that console I/O is convoluted. Fuckers couldn't put a cout and cin at the top of the namespace, and you have to cringe and dig deep into IO structure APIs and object passing when teaching the language to a prospective disciple who knows his easier C / C++ I/O. wtf

Name: Anonymous 2007-05-06 15:29 ID:Heaven

>>27
FAIL

Name: Anonymous 2007-05-06 18:55 ID:iNLDfsdd

>>24
Guess this'll give you an ulcer, but that sort of thing is common in Haskell-land. It's even in the standard prelude, no modules need be imported or anything. "foldl" is the name.

My favourite would be C's ungetc(). I mean, when's the last time you wanted to _un_-get precisely _ONE_ character? It's like a throwback to ancient times, when people wrote parsers that read data character by character using the C standard library, and failure recovery would be via un-getting characters already read...

Name: Anonymous 2007-05-06 19:59 ID:X9KUWwMp

SQL's COALESCE() function

Name: Anonymous 2007-05-06 20:02 ID:T67KtyMO

split() is universally useful when parsing anything text.

Name: Anonymous 2007-05-06 21:22 ID:dDIA3j0e

s

Name: Anonymous 2007-05-06 21:26 ID:Heaven

>>29
You don't need to import anything to use reduce(), either.

Name: Anonymous 2009-01-14 14:50

I HAS A BRAINCELL

Name: ​​​​​​​​​​ 2010-10-23 17:22

Name: Anonymous 2010-12-09 10:30

Name: Anonymous 2010-12-17 1:35

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:38

FOLLOW THE NEW GNAA TWITTER AT http://twitter.com/Gary_Niger

Name: Sgt.Kabuꪡkiman铢 2012-05-29 1:37

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
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
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
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
All work and no play makes Jack a dull boy

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