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

Pages: 1-4041-8081-

training frustrations

Name: Anonymous 2007-04-10 12:36 ID:aK12bTAD

I had to show my apprentice today how to use the modulus operator, as he just didn't get it.

But before that I had to explain how to divide integers leaving a quotient and remainder. He didn't get that either.

"Ok, so tell me the remainder of one divided by two..."
(several seconds pause)
"That's a bit hard."

I ended up drawing diagrams and using coins to explain how to do division. Just what are they teaching them these days??

Name: Anonymous 2007-04-10 12:38 ID:aK12bTAD

Also, he invented the "<=>" operator the other day, meaning less than or equal to or greater than. I lol'd.

Name: IS THE NEW OP 2007-04-10 12:54 ID:8vMvzXjR

LOL <=>

Can you please murder the fucker?
I mean, wow.

Name: Anonymous 2007-04-10 13:21 ID:UjJC74iE

>>2<=>

true brilliant!

Name: Anonymous 2007-04-10 14:03 ID:b8PDTfbn

Prelude> let a (<=>) b = True
Prelude> 1 <=> 2
True

Name: Anonymous 2007-04-10 14:46 ID:8vMvzXjR

i lold

Name: Anonymous 2007-04-10 15:02 ID:Ny6S9s2L

Actually Ruby has a <=> operator. It's pronounced spaceship. You implement it if you want your class to be comparable.

Name: Anonymous 2007-04-10 15:08 ID:mN1gD8SP

>>7

It's just a fancy strcmp

Name: Anonymous 2007-04-10 15:15 ID:+D6lpgY2

>>7
Its function is very different from the one explained. It does basically the same thing as the Haskell compare.

Name: Anonymous 2007-04-10 15:39 ID:Ny6S9s2L

>>8
>>9
I know that you tards.

Name: Anonymous 2007-04-10 16:57 ID://eckNvH

>>5
 
Fail at HASKELL
Prelude> let a (<=>) b = True
Prelude> 1 <=> 2

<interactive>:1:2: Not in scope: `<=>'

Name: Anonymous 2007-04-10 20:03 ID:lcL6LL+i

>>1
Teach him haskell

Name: Anonymous 2007-04-10 21:09 ID:tLd1IE5u

Oh lawd I loled. Please, tell us more stories!

Name: Anonymous 2007-04-10 21:45 ID:e2jKOVGO

<=><=><=><=><=><=><=><=><=><=>
<=><=><=><=><=><=><=><=><=><=>
<=><=><=><=><=><=><=><=><=><=>
<=><=><=><=><=><=><=><=><=><=>
<=><=><=><=><=><=><=><=><=><=>
<=><=><=><=><=><=><=><=><=><=>

Name: Anonymous 2007-04-10 23:34 ID:8wTri8nM

>>1
Oh dear Jesus. Fire him or kill him and hide the body. We do not need him in the gene pool.

Name: Anonymous 2007-04-11 1:44 ID:gHqHhGKm

>>14
That reminds me of an old space invaders DOS game I usto play.

Name: Anonymous 2007-04-11 4:58 ID:4R7R8Bom

Needs more SICP

Name: Anonymous 2007-04-11 6:36 ID:ZaZVvH5N

>>17
Is that even relevant to the topic, or is it just your way of saying "Ive read SICP"?

Name: Anonymous 2007-04-11 7:11 ID:hDWG6Jle

>>11
Ah, the parentheses were not needed.

Name: Anonymous 2007-07-11 11:46 ID:k0h1rO/x

Wow, that was a quick three months. And still a lulzer.

Name: Anonymous 2007-07-11 13:06 ID:e2aWcZ7h

>>15
murk loar

Name: Anonymous 2007-07-14 14:08 ID:k7d/NPkF

He obviously has hidden genius, <=> is a winner. You should apologise for laughing at him.

Name: Anonymous 2007-07-15 6:00 ID:Heaven

wut

Name: Anonymous 2007-07-15 6:01 ID:Heaven

wut

Name: Anonymous 2007-07-16 6:29 ID:XtmdaJF1

<=> sounds like the type of operation PHP would support to add to the existing empty, isset, is_null, ==, ===, etc. insanity.

Name: Anonymous 2007-07-16 6:32 ID:klpS6Xej

The only insane one is empty(), because it's retarded.

Name: Anonymous 2007-07-16 6:33 ID:XtmdaJF1

>>25
and let's not forget (bool), == 1, == "" and array_key_exists.

Name: Anonymous 2007-07-16 8:11 ID:rkT3TZXd

===? wtf is that?

Name: Anonymous 2007-07-16 8:15 ID:VTHNj9jp

Type-strict comparison

Name: Anonymous 2007-07-16 8:34 ID:Heaven


sort { $a <=> $b } @list

Name: Anonymous 2007-07-16 10:56 ID:XtmdaJF1

>>30
Effective way of moving not-numbers to the beginning of the list

Name: Anonymous 2007-07-16 11:04 ID:Heaven

[ <=> ] sort
Sorts a sequence of objects in natural order using the <=> word.

the <=> word:

Compares two objects using an intrinsic partial order, for example, the natural order for real numbers and lexicographic order for strings.
...
The default implementation treats the two objects as sequences, and recursively compares their elements. So no extra work is required to compare sequences lexicographically.

Name: Anonymous 2008-01-30 8:57

Someone should submit <=> as a PEP for Python 3000

Name: Anonymous 2008-01-30 9:14

Name: Anonymous 2008-01-30 9:21

Name: Anonymous 2008-01-30 18:40


 _____
( O O )
 \   /
( ⇔ )

Name: Anonymous 2008-02-01 20:39

test
test
test
test

Name: Anonymous 2008-02-01 20:43

[sub][sub][sub][sub]
LISP
IS
SUPER
PENIS
[/sub][/sub][/sub][/sub]

Name: Anonymous 2008-02-01 20:43


LISP
IS
SUPER
PENIS

Name: Anonymous 2008-03-13 12:59

OP here. Today, I lol'd a little inside as he described a printer font as being Sans Sheriff. Twice.

Name: Anonymous 2008-03-13 14:03

>>1
Obvious troll.

Name: Anonymous 2008-03-13 14:05

Today, I lol'd

Name: Anonymous 2008-03-13 15:51

>>41
Obvious toll.

Name: Anonymous 2008-03-14 4:30

>>3
i loled really really fucking hard

Name: Anonymous 2008-03-14 4:48

>>43
FAILED ATTEMPT baka neko >;(

Name: Anonymous 2008-03-14 5:12

>>2
Successful attempt at making <=> a meme.

Name: Anonymous 2008-03-14 5:15

Please stop bamping old thrwads.

Name: Anonymous 2008-03-14 6:39

Bampu pantsu!

Name: Anonymous 2008-03-14 8:11

>>46
And I wasn't even trying.

Name: Anonymous 2008-03-14 8:16

>>49
That's how the best memes are made.

Name: Anonymous 2008-03-14 8:18

>>50
Like beet troll, beet toll, Simon Peyote-Joints, suave lisp space toad and artist-mode. I would know, because I invented all of these.

Name: Anonymous 2008-03-14 8:24

>>51
Enjoy your forced memes.  Of course, no memes fail in /prog/, so they are still used.

Name: Anonymous 2008-03-14 19:09

>>1
stop blaming your student when it's you that can't teach.

Name: Anonymous 2008-03-14 19:16

>>16
<=><=><=><=><=><=><=><=><=><=>
<=><=><=><=><=><=><=><=><=><=>
<=><=><=><=><=><=><=><=><=><=>
<=><=><=><=><=><=><=><=><=><=>
.:..:..:..:..:..:..:..:..:..:.


Here. Space Invaders.

Name: Haskell Curry 2008-03-14 19:46

>>5
>>11
Try: let (<=>) :: (Num a) => a -> a -> Bool; _ <=> _ = True.
Firstly, you need a type signature to restrict the arguments to numeric types (it doesn't make sense to <=> strings!).
Secondly, if you declare it infix, don't use the prefix notation (<=>).
Good luck learning Haskell!

Name: Anonymous 2008-03-14 20:15

Main> (0/0) <=> (0/0)
True
Main> (\ x y -> (x == y) || (x > y) || (x < y)) (0/0) (0/0)
False

Name: Anonymous 2008-03-14 21:42

>>56
Sorry.
prop_edgeCase_nan = let nan = 0 / 0 in (nan <=> nan) == False
prop_lessThanOrEqualToOrGreaterThan x y = (x <=> y) == ((x == y) || (x > y) || (x < y))

Name: Anonymous 2008-03-15 7:19

And so >>57 imitates Simon Peyote Joints

Name: Anonymous 2008-03-15 7:30

>>58
Enjoying that meme you just blatently used without my express permission?

Name: Anonymous 2008-03-15 7:46

>>59
Please stop stealing my memes. Thank you.

Name: Anonymous 2008-03-15 7:47

Microsoft Visual Haskell.NET Express.

Name: Anonymous 2008-03-15 14:15

OP is British?

Name: Anonymous 2008-03-15 15:02

http://img162.imageshack.us/img162/467/sbrevbar6ja.gif

I rage when I see people misuse lambda.

Name: Anonymous 2008-03-15 19:44

>>63
That's what she said.

Name: Anonymous 2008-03-15 19:45

>>63
STELM.

Name: Anonymous 2008-03-15 19:49

>>65
STElM.

Name: Anonymous 2008-03-16 1:21

>>63
M-BUSTER

Name: Anonymous 2008-03-16 5:55

>>67
That looks like an EMACS joke. Is that an EMACS joke? Please tell me, I am a vimmer myself.

Name: Anonymous 2008-03-16 9:06

>>62
Yes

Name: Anonymous 2008-03-16 9:37

>>68
Yes

Name: Anonymous 2012-03-25 10:17

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

Name: Anonymous 2012-05-12 21:53

OP here. Inventor of "<=>" was eventually fired for hacking into the company owner's emails. Actually that's not quite true. He was fired for then complaining to the owner after he found a bunch of emails in there quite rightly discussing how terminally stupid at everything he is.

Name: Anonymous 2012-05-12 22:39

>>72
Seems like a perfect way for it to end.
Also kudos on getting us updated four years later.

Name: Anonymous 2012-05-12 22:43

OP delivers!

Name: Anonymous 2012-05-13 2:50

<=> is false if any of the operands is NaN!

Name: Anonymous 2012-05-13 2:59

>>1
try teaching him how to make a radix 4 division unit in hardware. As a bonus, extend it to support decimal64 floating point numbers

Name: Anonymous 2012-05-13 14:58

d d d d dubs

Name: Anonymous 2012-05-13 15:10

>>40
Sans Sheriff fonts are the favorite of outlaws in the Wild West.

Name: Anonymous 2012-05-19 15:45

>>75
True, but one would use an isNaN() function for that, not a spaceshop.

Name: Anonymous 2012-05-21 16:04

bump

Name: Anonymous 2013-01-09 21:17

43 0f b0 be e0 e9 26 87 79 93 32 58 e9 ce ab 56

Name: Anonymous 2013-01-09 21:21

Yes, he reinvented isNan() in the most fundamentally concise and beautiful manner. Very clever, lateral thinking -- I hope you didn't fire him he sounds like a genius.

Name: Anonymous 2013-01-09 21:30

I hope you did this to him: http://i.imgur.com/aGLDG.jpg

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