training frustrations
1
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??
2
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.
3
Name:
IS THE NEW OP
2007-04-10 12:54
ID:8vMvzXjR
LOL <=>
Can you please murder the fucker?
I mean, wow.
4
Name:
Anonymous
2007-04-10 13:21
ID:UjJC74iE
5
Name:
Anonymous
2007-04-10 14:03
ID:b8PDTfbn
Prelude> let a (<=>) b = True
Prelude> 1 <=> 2
True
6
Name:
Anonymous
2007-04-10 14:46
ID:8vMvzXjR
i lold
7
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.
8
Name:
Anonymous
2007-04-10 15:08
ID:mN1gD8SP
>>7
It's just a fancy
strcmp
9
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.
10
Name:
Anonymous
2007-04-10 15:39
ID:Ny6S9s2L
>>8
>>9
I know that you tards.
11
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: `<=>'
12
Name:
Anonymous
2007-04-10 20:03
ID:lcL6LL+i
13
Name:
Anonymous
2007-04-10 21:09
ID:tLd1IE5u
Oh lawd I loled. Please, tell us more stories!
14
Name:
Anonymous
2007-04-10 21:45
ID:e2jKOVGO
<=> <=> <=> <=> <=> <=> <=> <=> <=> <=>
<=> <=> <=> <=> <=> <=> <=> <=> <=> <=>
<=> <=> <=> <=> <=> <=> <=> <=> <=> <=>
<=> <=> <=> <=> <=> <=> <=> <=> <=> <=>
<=> <=> <=> <=> <=> <=> <=> <=> <=> <=>
<=> <=> <=> <=> <=> <=> <=> <=> <=> <=>
15
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.
16
Name:
Anonymous
2007-04-11 1:44
ID:gHqHhGKm
>>14
That reminds me of an old space invaders DOS game I usto play.
17
Name:
Anonymous
2007-04-11 4:58
ID:4R7R8Bom
Needs more SICP
18
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"?
19
Name:
Anonymous
2007-04-11 7:11
ID:hDWG6Jle
>>11
Ah, the parentheses were not needed.
20
Name:
Anonymous
2007-07-11 11:46
ID:k0h1rO/x
Wow, that was a quick three months. And still a lulzer.
21
Name:
Anonymous
2007-07-11 13:06
ID:e2aWcZ7h
22
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.
23
Name:
Anonymous
2007-07-15 6:00
ID:Heaven
wut
24
Name:
Anonymous
2007-07-15 6:01
ID:Heaven
wut
25
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.
26
Name:
Anonymous
2007-07-16 6:32
ID:klpS6Xej
The only insane one is empty(), because it's retarded.
27
Name:
Anonymous
2007-07-16 6:33
ID:XtmdaJF1
>>25
and let's not forget (bool), == 1, == "" and array_key_exists.
28
Name:
Anonymous
2007-07-16 8:11
ID:rkT3TZXd
===? wtf is that?
29
Name:
Anonymous
2007-07-16 8:15
ID:VTHNj9jp
Type-strict comparison
30
Name:
Anonymous
2007-07-16 8:34
ID:Heaven
sort { $a <=> $b } @list
31
Name:
Anonymous
2007-07-16 10:56
ID:XtmdaJF1
>>30
Effective way of moving not-numbers to the beginning of the list
32
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.
33
Name:
Anonymous
2008-01-30 8:57
Someone should submit <=> as a PEP for Python 3000
34
Name:
Anonymous
2008-01-30 9:14
⇔
35
Name:
Anonymous
2008-01-30 9:21
36
Name:
Anonymous
2008-01-30 18:40
_____
( O O )
\ /( ⇔ )
37
Name:
Anonymous
2008-02-01 20:39
test
test
test
test
38
Name:
Anonymous
2008-02-01 20:43
[sub] [sub] [sub] [sub]
LISP
IS
SUPER
PENIS[/sub] [/sub] [/sub] [/sub]
39
Name:
Anonymous
2008-02-01 20:43
LISP
IS
SUPER
PENIS
40
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