subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
hiten98
gtswve3
<|sols|><|sot|>The python way to check if a number is even<|eot|><|sol|>https://i.redd.it/ph0rb67r9xr61.png<|eol|><|sor|>I cant even understand what this does. What's wrong with simply testing the remainder to determine whether odd or even?!<|eor|><|sor|>My thoughts exactly! I've seen so many different isOdd()/isEven()...
21
programminghorror
Sarke1
gtucnnk
<|sols|><|sot|>The python way to check if a number is even<|eot|><|sol|>https://i.redd.it/ph0rb67r9xr61.png<|eol|><|sor|>N%2==0 Is that so hard.<|eor|><|sor|>Wow, you must have a doctorate in computer science or something.<|eor|><|eols|><|endoftext|>
19
programminghorror
volivav
gtsq5z4
<|sols|><|sot|>The python way to check if a number is even<|eot|><|sol|>https://i.redd.it/ph0rb67r9xr61.png<|eol|><|sor|>I dont even understand<|eor|><|sor|>Let's see. `range` returns an integer sequence from 0 to n-1; `//2` is division that floors the result to an int; and in the resulting list they add the first and ...
18
programminghorror
mad_edge
lou6h5
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|eols|><|endoftext|>
1,588
programminghorror
cyranix
go7r2r4
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|sor|>This is the guy who tells you his programs NEVER crash...<|eor|><|eols|><|endoftext|>
569
programminghorror
Stonkerer
go7y9ej
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|sor|>This is the guy who tells you his programs NEVER crash...<|eor|><|sor|>At least not in his machine<|eor|><|eols|><|endoftext|>
193
programminghorror
nosoupforyou
go8cqqd
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|sor|>Gods. At one place, the boss had wrapped a loop with a try/catch because he didn't understand that deleting an item from an array requires going backwards. He'd also never figured out why the func...
163
programminghorror
nosoupforyou
go8dibm
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|sor|>Gods. At one place, the boss had wrapped a loop with a try/catch because he didn't understand that deleting an item from an array requires going backwards. He'd also never figured out why the func...
103
programminghorror
blue_wyoming
go80jb8
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|sor|>There's probably a library for that. It should definitely be done recursively.<|eor|><|eols|><|endoftext|>
67
programminghorror
jackk445
go7yqo9
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|soopr|>...but here I am parsing this deeply nested json, which can end at any level and each level can he either dict or list...<|eoopr|><|sor|>Is it just me or this begs to be made recursive?<|eor|><|eo...
66
programminghorror
mad_edge
go8cwor
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|sor|>Gods. At one place, the boss had wrapped a loop with a try/catch because he didn't understand that deleting an item from an array requires going backwards. He'd also never figured out why the func...
63
programminghorror
mad_edge
go7qgtt
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|soopr|>...but here I am parsing this deeply nested json, which can end at any level and each level can he either dict or list...<|eoopr|><|eols|><|endoftext|>
54
programminghorror
Solonotix
go838xy
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|soopr|>...but here I am parsing this deeply nested json, which can end at any level and each level can he either dict or list...<|eoopr|><|sor|>Is it just me or this begs to be made recursive?<|eor|><|so...
49
programminghorror
nosoupforyou
go8eefs
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|sor|>Gods. At one place, the boss had wrapped a loop with a try/catch because he didn't understand that deleting an item from an array requires going backwards. He'd also never figured out why the func...
42
programminghorror
AgentRG
go96e5o
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|sor|>This is the guy who tells you his programs NEVER crash...<|eor|><|sor|>At least not in his machine<|eor|><|sor|>`--keep-going`<|eor|><|sor|>[deleted]<|eor|><|sor|>Can't read the warnings if you can'...
41
programminghorror
irracjonalny
go7wmov
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|soopr|>What do I do with this?<|eoopr|><|sor|>Delete it with fire<|eor|><|eols|><|endoftext|>
39
programminghorror
esquilax
go926b3
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|sor|>Using try catch to catch bad errors and log them Using try catch as flow control <|eor|><|sor|>"Why is my program spending 75% of my CPU unwinding the stack"<|eor|><|eols|><|endoftext|>
30
programminghorror
mad_edge
go85b0g
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|sor|>Using try catch to catch bad errors and log them Using try catch as flow control <|eor|><|soopr|>I've done that too many times <|eoopr|><|eols|><|endoftext|>
30
programminghorror
VisibleSignificance
go95lku
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|sor|>Gods. At one place, the boss had wrapped a loop with a try/catch because he didn't understand that deleting an item from an array requires going backwards. He'd also never figured out why the func...
27
programminghorror
nightcracker
go89350
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|sor|>What is even the point of all the separate try / catches if they all just continue anyway?<|eor|><|soopr|>This dict ends on different levels and I just want to get the very bottom values<|eoopr|><|s...
26
programminghorror
mad_edge
go8dr0l
<|sols|><|sot|>I never ever thought I will be doing that...<|eot|><|sol|>https://i.redd.it/8harz9iy2ti61.png<|eol|><|sor|>Gods. At one place, the boss had wrapped a loop with a try/catch because he didn't understand that deleting an item from an array requires going backwards. He'd also never figured out why the func...
26
programminghorror
rUqeRT
ses8j7
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|eols|><|endoftext|>
1,582
programminghorror
singleFourever
hul5sxo
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>I mean, it is a way<|eor|><|eols|><|endoftext|>
378
programminghorror
apotentiallytempacc
hulykl0
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>Why not just use this API? https://isevenapi.xyz/<|eor|><|eols|><|endoftext|>
370
programminghorror
RedditSchnitzel
hum2289
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>Why not just use this API? https://isevenapi.xyz/<|eor|><|sor|>I want to meet the gigachad who buys the enterprise version of this.<|eor|><|eols|><|endoftext|>
200
programminghorror
bob-mauer
hulfm3j
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>(i & 1) != 1 is also cool<|eor|><|eols|><|endoftext|>
153
programminghorror
elzaidir
hum9q1t
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>Why not just use this API? https://isevenapi.xyz/<|eor|><|sor|>I want to meet the gigachad who buys the enterprise version of this.<|eor|><|sor|>If you click "buy" it redirects you to the Internet Archiver donation pag...
133
programminghorror
DoGeneral1
hultd0o
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>So does // just return the integer portion?<|eor|><|sor|>// is just the Python operator for Euclidian divisions, while / is the basic one. So the first one will be seen as an integer value while the second will be seen...
128
programminghorror
JoyJoy_
hum76px
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>Why not just use this API? https://isevenapi.xyz/<|eor|><|sor|>The best thing about that api is the ads. "Scarecrow wanted for field in Saskatchewan. Must not be afraid of birds. Email buddybilly <at> qotmail <dot> co...
99
programminghorror
RizzoTheSmall
hum4pjb
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>(i & 1) != 1 is also cool<|eor|><|sor|>!(i & 1)<|eor|><|eols|><|endoftext|>
77
programminghorror
AstronautInTheLotion
hulcx92
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>I mean, it is a way<|eor|><|sor|>why didn't I ever think about this?<|eor|><|eols|><|endoftext|>
75
programminghorror
GreatBarrier86
hulqggo
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>So does // just return the integer portion?<|eor|><|eols|><|endoftext|>
66
programminghorror
stu123456789
hunk1gj
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>Why not just use this API? https://isevenapi.xyz/<|eor|><|sor|>The best thing about that api is the ads. "Scarecrow wanted for field in Saskatchewan. Must not be afraid of birds. Email buddybilly <at> qotmail <dot> co...
41
programminghorror
zeaga2
humk0zr
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>(i & 1) != 1 is also cool<|eor|><|sor|>This doesn't work with negative numbers right? Don't downvote me if I'm wrong pls I'm not by a machine to check Edit: It does with Python! See u/zeaga2's comments below<|eor|><|s...
40
programminghorror
welcome_cumin
humjhuq
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>(i & 1) != 1 is also cool<|eor|><|sor|>This doesn't work with negative numbers right? Don't downvote me if I'm wrong pls I'm not by a machine to check Edit: It does with Python! See u/zeaga2's comments below<|eor|><|e...
32
programminghorror
Rainbow-Dev
humilhb
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>(i & 1) != 1 is also cool<|eor|><|sor|>!(i & 1)<|eor|><|sor|>(i&1)\^1<|eor|><|eols|><|endoftext|>
29
programminghorror
null_reference_user
hulrrg7
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>He forgor <|eor|><|eols|><|endoftext|>
25
programminghorror
integralWorker
hum20g1
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>This would work in most interviews (esp entry level) because it shows originality<|eor|><|eols|><|endoftext|>
22
programminghorror
Prymu
hup4i1k
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>Why not just use this API? https://isevenapi.xyz/<|eor|><|sor|>Full code for the api ``` const Express = require('express'); const app = Express(); app.get('/:num', (req, res) => { const num = req.params.num; t...
21
programminghorror
jazzmester
hultm5z
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|> print("{} even".format("not" if i&1 else "is"))<|eor|><|eols|><|endoftext|>
19
programminghorror
ChickenNuggetSmth
humx6xs
<|sols|><|sot|>I forgot what modulo was<|eot|><|sol|>https://i.redd.it/pfkdootuwfe81.png<|eol|><|sor|>So does // just return the integer portion?<|eor|><|sor|>// is just the Python operator for Euclidian divisions, while / is the basic one. So the first one will be seen as an integer value while the second will be seen...
13
programminghorror
graden_dissent
vr3rnv
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|eols|><|endoftext|>
1,579
programminghorror
malsomnus
iesw6zy
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|sor|>I also inherited something like this once, except it was a total of 3400-ish lines of nested switches and instead of numbers it assigned image files that all had ran...
325
programminghorror
graden_dissent
iesudm9
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|soopr|>I am not violating any NDAs because almost all of his code was thrown out / re-purposed. I spent 1 week alternating between laughing and crying and another week re...
275
programminghorror
AyrA_ch
iet0jyi
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|soopr|>I am not violating any NDAs because almost all of his code was thrown out / re-purposed. I spent 1 week alternating between laughing and crying and another week re...
167
programminghorror
RichCorinthian
iet4qk3
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|soopr|>I am not violating any NDAs because almost all of his code was thrown out / re-purposed. I spent 1 week alternating between laughing and crying and another week re...
145
programminghorror
malsomnus
iet0y08
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|sor|>I also inherited something like this once, except it was a total of 3400-ish lines of nested switches and instead of numbers it assigned image files that all had ran...
142
programminghorror
all3f0r1
iet0ef5
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|sor|>If coding is seen through the metric of the LOC written, he's good. "startEndIndex" gives me a headache though.<|eor|><|eols|><|endoftext|>
141
programminghorror
graden_dissent
ieszlwd
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|sor|>I also inherited something like this once, except it was a total of 3400-ish lines of nested switches and instead of numbers it assigned image files that all had ran...
137
programminghorror
nosoupforyou
iet4mlp
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|sor|>My sister worked with a woman who spent a year or so just writing one big block of code before they figured out what she was doing and fired her. It was checking th...
114
programminghorror
graden_dissent
iet8wnq
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|sor|>If coding is seen through the metric of the LOC written, he's good. "startEndIndex" gives me a headache though.<|eor|><|soopr|>His code had variables like "hisotry...
104
programminghorror
the_other_Scaevitas
iet162u
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|sor|>How has he lived this long and not know how to divide by 2<|eor|><|eols|><|endoftext|>
85
programminghorror
the_other_Scaevitas
iet6rf0
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|sor|>My sister worked with a woman who spent a year or so just writing one big block of code before they figured out what she was doing and fired her. It was checking th...
81
programminghorror
graden_dissent
iet84z2
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|sor|>I also inherited something like this once, except it was a total of 3400-ish lines of nested switches and instead of numbers it assigned image files that all had ran...
61
programminghorror
graden_dissent
ieszw1r
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|sor|>Was "bad programmer" code for firing them because they were actually a baboon at a typewriter?<|eor|><|soopr|>The guy had 3 years "experience" building Angular apps ...
60
programminghorror
nosoupforyou
iethcuy
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|sor|>My sister worked with a woman who spent a year or so just writing one big block of code before they figured out what she was doing and fired her. It was checking th...
54
programminghorror
RichCorinthian
iet9gvj
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|soopr|>I am not violating any NDAs because almost all of his code was thrown out / re-purposed. I spent 1 week alternating between laughing and crying and another week re...
47
programminghorror
drearyplane8
iesy6c0
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|sor|>Was "bad programmer" code for firing them because they were actually a baboon at a typewriter?<|eor|><|eols|><|endoftext|>
41
programminghorror
AgentME
iet3yag
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|soopr|>I am not violating any NDAs because almost all of his code was thrown out / re-purposed. I spent 1 week alternating between laughing and crying and another week re...
39
programminghorror
svick
ietebnj
<|sols|><|sot|>When you inherit the code of someone who was fired for being a bad programmer<|eot|><|sol|>https://i.redd.it/ljv4lwr9wi991.png<|eol|><|sor|>My sister worked with a woman who spent a year or so just writing one big block of code before they figured out what she was doing and fired her. It was checking th...
38
programminghorror
bejamel
kl7ctg
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|eols|><|endoftext|>
1,578
programminghorror
maxmage006
gh7edxy
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>Ah the compiler will fix it for him ;)<|eor|><|eols|><|endoftext|>
429
programminghorror
Hackinet
gh85nc7
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>Well, as explained by OP, the student didn't know about `while(1)` or `for(;;)` which is *bad* for a 3rd...
378
programminghorror
glieseg
gh7ewzm
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>What happened to this loop? No need to make things more complicated than it has to be. while ('0' =...
159
programminghorror
onthefence928
gh8mlet
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>Ah the compiler will fix it for him ;)<|eor|><|sor|>How so? Not familiar with compiler optimizations.<|e...
156
programminghorror
GonzoAndJohn
gh8wich
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>Ah the compiler will fix it for him ;)<|eor|><|sor|>How so? Not familiar with compiler optimizations.<|e...
132
programminghorror
IZEDx
gh940e4
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>Ah the compiler will fix it for him ;)<|eor|><|sor|>How so? Not familiar with compiler optimizations.<|e...
101
programminghorror
PM_ME_YOUR_POLYGONS
gh7w4sm
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>He likes to live life on the edge<|eor|><|eols|><|endoftext|>
99
programminghorror
joemckie
gh88s32
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>Well, as explained by OP, the student didn't know about `while(1)` or `for(;;)` which is *bad* for a 3rd...
96
programminghorror
benjamin051000
gh8lzj8
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>Ah the compiler will fix it for him ;)<|eor|><|sor|>How so? Not familiar with compiler optimizations.<|e...
70
programminghorror
seelsojo
gh7yxrk
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>I honestly dont see the problem, it is a valid infinite loop if that is what he was asked to do. Was he...
69
programminghorror
familyturtle
gh89s4x
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>What happened to this loop? No need to make things more complicated than it has to be. while ('0' =...
64
programminghorror
bentheone
gh846ps
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>I honestly dont see the problem, it is a valid infinite loop if that is what he was asked to do. Was he...
61
programminghorror
onuralpbicer
gh85fuv
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>I honestly dont see the problem, it is a valid infinite loop if that is what he was asked to do. Was he...
59
programminghorror
SageHunter
gh954ho
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>Well, as explained by OP, the student didn't know about `while(1)` or `for(;;)` which is *bad* for a 3rd...
58
programminghorror
bejamel
gh7zggy
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>I honestly dont see the problem, it is a valid infinite loop if that is what he was asked to do. Was he...
57
programminghorror
Mornar
gh865t6
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>I honestly dont see the problem, it is a valid infinite loop if that is what he was asked to do. Was he...
52
programminghorror
koikatsu_party
gh8aneh
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>What happened to this loop? No need to make things more complicated than it has to be. while ('0' =...
46
programminghorror
btwiusearch
gh9lq6i
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>Well, as explained by OP, the student didn't know about `while(1)` or `for(;;)` which is *bad* for a 3rd...
42
programminghorror
greenpepperpasta
gh8cp86
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>Not to nitpick, but If I'm not mistaken something like: for(;;) {} Is better for some languages (p...
39
programminghorror
Squidy7
gh8rpa1
<|sols|><|sot|>How a student in year 3 (secondary technical school, electronics) wrote an infinite loop. I didn't know whether to laugh or cry, honestly.<|eot|><|sol|>https://i.redd.it/3l27sxt7kr761.jpg<|eol|><|sor|>Ah the compiler will fix it for him ;)<|eor|><|sor|>How so? Not familiar with compiler optimizations.<|e...
34
programminghorror
sfrast
hiugul
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|eols|><|endoftext|>
1,570
programminghorror
Jafit
fwj3kxl
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>This reminds me of a job site from a while ago, I can't remember which one. A friend of mine sent me a link to a job listing I might be interested in... I applied as my friend. Turns out the website was passing around the us...
376
programminghorror
SadnessGalore
fwifz3v
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>Don't worry. When you type your password it looks like to me. Go ahead. Try it out!<|eor|><|eols|><|endoftext|>
230
programminghorror
Human102581162937
fwijgqw
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>Don't worry. When you type your password it looks like to me. Go ahead. Try it out!<|eor|><|sor|>That's so cool, let me try! L0wK3yMy51stersAr3K1ndaH0t Edit: I can see it. Does it only hide it for other people?<|eor|><|eols...
213
programminghorror
K4r4kara
fwjrl71
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>This reminds me of a job site from a while ago, I can't remember which one. A friend of mine sent me a link to a job listing I might be interested in... I applied as my friend. Turns out the website was passing around the us...
157
programminghorror
TheLordOfFriendZone
fwk9e9k
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>This reminds me of a job site from a while ago, I can't remember which one. A friend of mine sent me a link to a job listing I might be interested in... I applied as my friend. Turns out the website was passing around the us...
127
programminghorror
PrecariousLettuce
fwjc8vz
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>Given it's served over http, putting the password in the url isn't actually making things any worse.<|eor|><|sor|>Well, it makes it a little worse. Someone looking over your shoulder can see it now<|eor|><|eols|><|endoftext|>
89
programminghorror
magneticman245
fwj14x3
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>Don't worry. When you type your password it looks like to me. Go ahead. Try it out!<|eor|><|sor|>hunter2<|eor|><|eols|><|endoftext|>
78
programminghorror
Impergator
fwk224s
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>I have also seen websites, where they put the id of the logged in user in the url. If you then changed the id you would be logged in with another user.<|eor|><|eols|><|endoftext|>
77
programminghorror
SadnessGalore
fwik9ng
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>Don't worry. When you type your password it looks like to me. Go ahead. Try it out!<|eor|><|sor|>That's so cool, let me try! L0wK3yMy51stersAr3K1ndaH0t Edit: I can see it. Does it only hide it for other people?<|eor|><|sor|...
72
programminghorror
epicchad29
fwj0tdk
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>Given it's served over http, putting the password in the url isn't actually making things any worse.<|eor|><|eols|><|endoftext|>
67
programminghorror
prx24
fwiwzor
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>Apart from the browser history and that it's not even https I believe this will also show up in the server logs?<|eor|><|eols|><|endoftext|>
51
programminghorror
diamondjim
fwjxvbf
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>This reminds me of a job site from a while ago, I can't remember which one. A friend of mine sent me a link to a job listing I might be interested in... I applied as my friend. Turns out the website was passing around the us...
50
programminghorror
Mr_Redstoner
fwk4ih1
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>Don't worry. When you type your password it looks like to me. Go ahead. Try it out!<|eor|><|sor|>hunter2<|eor|><|sor|>Why are you posting nothing but asterisks?<|eor|><|eols|><|endoftext|>
48
programminghorror
sfrast
fwk4692
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>I have also seen websites, where they put the id of the logged in user in the url. If you then changed the id you would be logged in with another user.<|eor|><|soopr|>this is some next level authentication hahah<|eoopr|><|eol...
43
programminghorror
pqowie313
fwjtb0m
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>Given it's served over http, putting the password in the url isn't actually making things any worse.<|eor|><|sor|>Well, it makes it a little worse. Someone looking over your shoulder can see it now<|eor|><|sor|>Cant anybody w...
41
programminghorror
Jarzaaa
fwk789z
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>Don't worry. When you type your password it looks like to me. Go ahead. Try it out!<|eor|><|sor|>Works with credit cards too! CVV2: ^/s<|eor|><|eols|><|endoftext|>
38
programminghorror
Matti-Koopa
fwkgtgy
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>This reminds me of a job site from a while ago, I can't remember which one. A friend of mine sent me a link to a job listing I might be interested in... I applied as my friend. Turns out the website was passing around the us...
36
programminghorror
MrSlyde
fwjofm1
<|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>Don't worry. When you type your password it looks like to me. Go ahead. Try it out!<|eor|><|sor|>That's so cool, let me try! L0wK3yMy51stersAr3K1ndaH0t Edit: I can see it. Does it only hide it for other people?<|eor|><|sor|...
32