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.
41
Name:
Anonymous
2008-03-13 14:03
42
Name:
Anonymous
2008-03-13 14:05
Today, I lol'd
43
Name:
Anonymous
2008-03-13 15:51
44
Name:
Anonymous
2008-03-14 4:30
>>3
i loled really really fucking hard
45
Name:
Anonymous
2008-03-14 4:48
>>43
FAILED ATTEMPT baka neko >;(
46
Name:
Anonymous
2008-03-14 5:12
>>2
Successful attempt at making <=> a meme.
47
Name:
Anonymous
2008-03-14 5:15
Please stop bamping old thrwads.
48
Name:
Anonymous
2008-03-14 6:39
Bampu pantsu!
49
Name:
Anonymous
2008-03-14 8:11
>>46
And I wasn't even trying.
50
Name:
Anonymous
2008-03-14 8:16
>>49
That's how the best memes are made.
51
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.
52
Name:
Anonymous
2008-03-14 8:24
>>51
Enjoy your forced memes. Of course, no memes fail in /prog/, so they are still used.
53
Name:
Anonymous
2008-03-14 19:09
>>1
stop blaming your student when it's you that can't teach.
54
Name:
Anonymous
2008-03-14 19:16
>>16
<=> <=> <=> <=> <=> <=> <=> <=> <=> <=>
<=> <=> <=> <=> <=> <=> <=> <=> <=> <=>
<=> <=> <=> <=> <=> <=> <=> <=> <=> <=>
<=> <=> <=> <=> <=> <=> <=> <=> <=> <=>
.:. .:. .:. .:. .:. .:. .:. .:. .:. .:.
Here. Space Invaders.
55
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!
56
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
57
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))
58
Name:
Anonymous
2008-03-15 7:19
And so >>57 imitates Simon Peyote Joints
59
Name:
Anonymous
2008-03-15 7:30
>>58
Enjoying that meme you just blatently used without my express permission?
60
Name:
Anonymous
2008-03-15 7:46
>>59
Please stop stealing my memes. Thank you.
61
Name:
Anonymous
2008-03-15 7:47
Microsoft Visual Haskell.NET Express.
62
Name:
Anonymous
2008-03-15 14:15
OP is British?
63
Name:
Anonymous
2008-03-15 15:02
64
Name:
Anonymous
2008-03-15 19:44
>>63
That's what she said.
65
Name:
Anonymous
2008-03-15 19:45
66
Name:
Anonymous
2008-03-15 19:49
67
Name:
Anonymous
2008-03-16 1:21
68
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.
69
Name:
Anonymous
2008-03-16 9:06
70
Name:
Anonymous
2008-03-16 9:37
71
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
72
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.
73
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.
74
Name:
Anonymous
2012-05-12 22:43
OP delivers!
75
Name:
Anonymous
2012-05-13 2:50
<=> is false if any of the operands is NaN!
76
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
77
Name:
Anonymous
2012-05-13 14:58
d d d d dubs
78
Name:
Anonymous
2012-05-13 15:10
>>40
Sans Sheriff fonts are the favorite of outlaws in the Wild West.
79
Name:
Anonymous
2012-05-19 15:45
>>75
True, but one would use an
isNaN() function for that, not a spaceshop.
80
Name:
Anonymous
2012-05-21 16:04
bump
81
Name:
Anonymous
2013-01-09 21:17
43 0f b0 be e0 e9 26 87 79 93 32 58 e9 ce ab 56
82
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.
83
Name:
Anonymous
2013-01-09 21:30
I hope you did this to him:
http://i.imgur.com/aGLDG.jpg