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

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.

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