subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
msmyrk
fo6g1t0
<|sols|><|sot|>float int<|eot|><|sol|>https://i.redd.it/87ghtj5qu8u41.jpg<|eol|><|sor|>So, how does this work in reality? Is this just practice or does it go towards your grade? Can you dispute it? And how is this still happening? I've seen posts like this a thousand times over the years and it's sheer incompetence....
15
programminghorror
DaniilBSD
fo6aal4
<|sols|><|sot|>float int<|eot|><|sol|>https://i.redd.it/87ghtj5qu8u41.jpg<|eol|><|sor|>Classic ans.ToString() == input Instead of float.parse(input) == ans Edit: Better yet: Math.Round(Float.parse(input) * 100) == Math.Round(ans * 100)<|eor|><|eols|><|endoftext|>
14
programminghorror
TheMogician
fo6o4gu
<|sols|><|sot|>float int<|eot|><|sol|>https://i.redd.it/87ghtj5qu8u41.jpg<|eol|><|sor|>Depends on the question. If they specifically asked for 2 sigfigs, then the answer is indeed wrong. With one sigfig 6 can be anywhere from 5.5 to 6.4 while 6.0 is anywhere from 5.95 to 6.04.<|eor|><|sor|>Isn't 6 6 ?<|eor|><|sor|>Dep...
14
programminghorror
Netrilix
fo6c1ge
<|sols|><|sot|>float int<|eot|><|sol|>https://i.redd.it/87ghtj5qu8u41.jpg<|eol|><|sor|>So, how does this work in reality? Is this just practice or does it go towards your grade? Can you dispute it? And how is this still happening? I've seen posts like this a thousand times over the years and it's sheer incompetence....
14
programminghorror
SaltyEmotions
fo6fcjf
<|sols|><|sot|>float int<|eot|><|sol|>https://i.redd.it/87ghtj5qu8u41.jpg<|eol|><|sor|>Why are so many Devs so stupid. Government websites, school websites, etc. Oh wait maybe cause they won't pay for competent ones.<|eor|><|sor|>Could be a science where 6 means a different thing to 6.0. 2sf is a must in some subject...
11
programminghorror
John_Fx
fo6k4re
<|sols|><|sot|>float int<|eot|><|sol|>https://i.redd.it/87ghtj5qu8u41.jpg<|eol|><|sor|>Precision lives matter<|eor|><|eols|><|endoftext|>
9
programminghorror
timleg002
fo6hft4
<|sols|><|sot|>float int<|eot|><|sol|>https://i.redd.it/87ghtj5qu8u41.jpg<|eol|><|sor|>Depends on the question. If they specifically asked for 2 sigfigs, then the answer is indeed wrong. With one sigfig 6 can be anywhere from 5.5 to 6.4 while 6.0 is anywhere from 5.95 to 6.04.<|eor|><|sor|>Isn't 6 6 ?<|eor|><|eols|><|...
8
programminghorror
Evil-Toaster
fo6d5gs
<|sols|><|sot|>float int<|eot|><|sol|>https://i.redd.it/87ghtj5qu8u41.jpg<|eol|><|sor|>Is this my math lab? If so fuck them and their mothers and anyone who ever loves them.<|eor|><|eols|><|endoftext|>
7
programminghorror
Polantaris
fo6jq9c
<|sols|><|sot|>float int<|eot|><|sol|>https://i.redd.it/87ghtj5qu8u41.jpg<|eol|><|sor|>Is this some sort of physics class? If so, its likely significant figures are the reason your answer is incorrect, since 6 means something different than 6.0. If its not, then someone better fix that bug<|eor|><|sor|>> If its not, ...
5
programminghorror
wdciii
fo7ioo7
<|sols|><|sot|>float int<|eot|><|sol|>https://i.redd.it/87ghtj5qu8u41.jpg<|eol|><|sor|>Is this some sort of physics class? If so, its likely significant figures are the reason your answer is incorrect, since 6 means something different than 6.0. If its not, then someone better fix that bug<|eor|><|sor|>Not just physi...
5
programminghorror
DaRealNim
ql207v
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|eols|><|endoftext|>
1,517
programminghorror
niconicotrash
hj0ghe1
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>Those arent in quotes, so they are grabbing those from somewhere else<|eor|><|sor|>Meanwhile, in credentials.js: ``` // DO NOT CHANGE const admin = admin; const aGK57GJ3ax = aGK57GJ3ax; ```<|eor|><|eols|><|endoftext|>
528
programminghorror
Upset_Ball2495
hj096ue
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>Those arent in quotes, so they are grabbing those from somewhere else<|eor|><|eols|><|endoftext|>
325
programminghorror
the_monkey_of_lies
hj0k4vy
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>Those arent in quotes, so they are grabbing those from somewhere else<|eor|><|sor|>Meanwhile, in credentials.js: ``` // DO NOT CHANGE const admin = admin; const aGK57GJ3ax = aGK57GJ3ax; ```<|eor|><|sor|>You are giving them too much credit ...
242
programminghorror
barcased
hj0idkv
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>Don't know what's funny? It reads as let password = \*\*\*\*\*\*\*\*\*\*?<|eor|><|eols|><|endoftext|>
135
programminghorror
niconicotrash
hj0kra6
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>Those arent in quotes, so they are grabbing those from somewhere else<|eor|><|sor|>Meanwhile, in credentials.js: ``` // DO NOT CHANGE const admin = admin; const aGK57GJ3ax = aGK57GJ3ax; ```<|eor|><|sor|>You are giving them too much credit ...
89
programminghorror
DaRealNim
hj0ik73
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>Those arent in quotes, so they are grabbing those from somewhere else<|eor|><|soopr|>What tf kind of variable name is aGK57GJ3ax<|eoopr|><|eols|><|endoftext|>
68
programminghorror
root_27
hj13njy
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>Could be a fun honeypot. Somewhere else in the code alerts when someone tries to use the hard coded credentials. (Hard coded credentials that arnt actually credentials)<|eor|><|eols|><|endoftext|>
67
programminghorror
NUTTA_BUSTAH
hj13im2
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>Don't know what's funny? It reads as let password = \*\*\*\*\*\*\*\*\*\*?<|eor|><|sor|>Reddit censors passwords idiot<|eor|><|eols|><|endoftext|>
63
programminghorror
Deadly_chef
hj140wy
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>Don't know what's funny? It reads as let password = \*\*\*\*\*\*\*\*\*\*?<|eor|><|sor|>Reddit censors passwords idiot<|eor|><|sor|>myKnifeIsAMurderWeapon1234 &#x200B; Edit: It is not working for me, is it good on your end?<|eor|><|eols|>...
57
programminghorror
Maikell84
hj0p2t6
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>should probably be a \`const\`<|eor|><|eols|><|endoftext|>
43
programminghorror
2ndcomingofharambe
hj25utu
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>At a past job, the company had a separate team for website / landing page developers that didn't follow our typical standards or process, argument being they needed to move fast with publishing website updates. At one point they needed to...
41
programminghorror
posherspantspants
hj0q52y
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>One of those weirdos that puts the comments below the code...<|eor|><|eols|><|endoftext|>
41
programminghorror
AgitatingSkeleton
hj0iz4c
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>Those arent in quotes, so they are grabbing those from somewhere else<|eor|><|soopr|>What tf kind of variable name is aGK57GJ3ax<|eoopr|><|sor|>One that is hard to pronounce<|eor|><|eols|><|endoftext|>
41
programminghorror
Sharlinator
hj0t4z3
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>Those arent in quotes, so they are grabbing those from somewhere else<|eor|><|sor|>Meanwhile, in credentials.js: ``` // DO NOT CHANGE const admin = admin; const aGK57GJ3ax = aGK57GJ3ax; ```<|eor|><|sor|>ITYM // DO NOT CHANGE const...
36
programminghorror
guccidumbass
hj1yqf4
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>Those arent in quotes, so they are grabbing those from somewhere else<|eor|><|sor|>orrrrrrrrrrrr they're doing something like this: const bareStrings = new Proxy({}, { has(_, prop){ return window[prop] === undefined; ...
35
programminghorror
barcased
hj27466
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>Don't know what's funny? It reads as let password = \*\*\*\*\*\*\*\*\*\*?<|eor|><|sor|>let password = hunter2 FUCK<|eor|><|sor|>>let password = \*\*\*\*\*\*\* FUCK It's all good man. It shows as hunter2 only for you because it's y...
31
programminghorror
erinyesita
hj1h0un
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>Serious question: how would you handle credentials that you need during development, but don't want to input them 100 times?<|eor|><|sor|>Environmental variables.<|eor|><|eols|><|endoftext|>
30
programminghorror
MCWizardYT
hj17l2u
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>Don't know what's funny? It reads as let password = \*\*\*\*\*\*\*\*\*\*?<|eor|><|sor|>Reddit censors passwords idiot<|eor|><|sor|>myKnifeIsAMurderWeapon1234 &#x200B; Edit: It is not working for me, is it good on your end?<|eor|><|sor|>Y...
30
programminghorror
OmegaInc
hj1cdrt
<|sols|><|sot|>Huh<|eot|><|sol|>https://i.redd.it/bqqbzsey62x71.png<|eol|><|sor|>Those arent in quotes, so they are grabbing those from somewhere else<|eor|><|sor|>Meanwhile, in credentials.js: ``` // DO NOT CHANGE const admin = admin; const aGK57GJ3ax = aGK57GJ3ax; ```<|eor|><|sor|>You are giving them too much credit ...
28
programminghorror
DurablePeach
ng3gyz
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|eols|><|endoftext|>
1,509
programminghorror
DurablePeach
gyonw2s
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|soopr|>I'm glad to say I've come a long way since then. If I were to write this today, I would: \- Use a map or something to avoid writing such a stupid amount of repeat...
398
programminghorror
Lamez
gyp36ab
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|soopr|>I'm glad to say I've come a long way since then. If I were to write this today, I would: \- Use a map or something to avoid writing such a stupid amount of repeat...
160
programminghorror
Zirio
gyp2lc6
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|sor|>Any deeper and it'd have become self-aware!!<|eor|><|eols|><|endoftext|>
117
programminghorror
Tunderstruk
gyq359x
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|soopr|>I'm glad to say I've come a long way since then. If I were to write this today, I would: \- Use a map or something to avoid writing such a stupid amount of repeat...
53
programminghorror
ausdoug
gyoocln
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|sor|>That's awesome - I thought my 11 nested IF's were pushing it for a text analysis function<|eor|><|eols|><|endoftext|>
40
programminghorror
vkapadia
gyqto20
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|soopr|>I'm glad to say I've come a long way since then. If I were to write this today, I would: \- Use a map or something to avoid writing such a stupid amount of repeat...
40
programminghorror
CactusGrower
gyp4wju
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|sor|>That's awesome - I thought my 11 nested IF's were pushing it for a text analysis function<|eor|><|sor|>Nested though? :-O Your code's cyclomatic complexity must be t...
30
programminghorror
Wiremaster
gypq71c
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|sor|>To clean this up you would require deeper knowledge than what beginners have. I think you were probably an intern at the time of writing, the code looks functionally...
27
programminghorror
ssj4VB
gypjcnx
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|sor|>the horror of not naming your components while using winforms<|eor|><|eols|><|endoftext|>
24
programminghorror
DurablePeach
gypk680
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|sor|>the horror of not naming your components while using winforms<|eor|><|soopr|>`panel47.Visible = true;` `button24.Enabled = true;` Honestly idk how I was able to li...
24
programminghorror
krisnarocks
gypf657
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|sor|>Any deeper and it'd have become self-aware!!<|eor|><|sor|>[deleted]<|eor|><|sor|>Aggregated Ifs<|eor|><|sor|>Neural network is an automated if statements. Change my ...
24
programminghorror
Direwolf202
gyqr3ow
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|soopr|>I'm glad to say I've come a long way since then. If I were to write this today, I would: \- Use a map or something to avoid writing such a stupid amount of repeat...
21
programminghorror
Py-rrhus
gyp7eq6
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|sor|>[deleted]<|eor|><|sor|>Do you want the world to collapse?????<|eor|><|eols|><|endoftext|>
17
programminghorror
jay_resseg
gypebvm
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|sor|>Bro do you even switch?<|eor|><|eols|><|endoftext|>
16
programminghorror
LeCrushinator
gypk0sa
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|sor|>Everyone had to start somewhere. A lot of my early coding experiences were good exercises in learning and looking back there's still learning of "what not to do". My...
12
programminghorror
NUTTA_BUSTAH
gypcc00
<|sols|><|sot|>I wrote this 3 years ago. 114 if statements. I can't forgive myself either.<|eot|><|sol|>https://www.reddit.com/gallery/ng3gyz<|eol|><|sor|>What are the other option? The only programing language i know(python) has only if statements<|eor|><|sor|>You could for example create a map for the string values a...
12
programminghorror
Raw415
10uyfky
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|eols|><|endoftext|>
1,504
programminghorror
avast_ye_scoundrels
j7ejzpv
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>If theres a service accessed on localhost, this is not necessarily an issue. Is this in-browser or is this node?<|eor|><|eols|><|endoftext|>
270
programminghorror
Independent_Extent80
j7f3cuk
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>```//creating a function where I will be calling my API```<|eor|><|eols|><|endoftext|>
255
programminghorror
ZedTT
j7et2ks
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>If theres a service accessed on localhost, this is not necessarily an issue. Is this in-browser or is this node?<|eor|><|sor|>To be fair, this should be a variable somewhere in case the environment or even just the po...
138
programminghorror
GreggSalad
j7enm4l
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>If theres a service accessed on localhost, this is not necessarily an issue. Is this in-browser or is this node?<|eor|><|sor|>[deleted]<|eor|><|sor|>Do you know what a service is?<|eor|><|eols|><|endoftext|>
114
programminghorror
t3kner
j7fshiq
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>```//creating a function where I will be calling my API```<|eor|><|sor|>`//creating a variable I will use to add to another variable`<|eor|><|eols|><|endoftext|>
95
programminghorror
Viped
j7eqdo3
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>"works on my machine"<|eor|><|eols|><|endoftext|>
93
programminghorror
EIGRP_OH
j7ep52b
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>Whats wrong with this?<|eor|><|eols|><|endoftext|>
67
programminghorror
ZedTT
j7gcmf8
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>```//creating a function where I will be calling my API```<|eor|><|sor|>`//creating a variable I will use to add to another variable`<|eor|><|sor|>. /* * creating a const (constant) for the count and startin...
55
programminghorror
kristallnachte
j7fa7jz
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>I think This application contains front end and back end together, they are probably using back end as a proxy server<|eor|><|sor|>Its a common practice in react type application<|eor|><|sor|>It is not really. Certainl...
50
programminghorror
salgat
j7ev17z
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>Whats wrong with this?<|eor|><|sor|>There are cases where it's okay to do this, although hardcoding the port is not a good idea. At the very least make it a config with a fallback of 8000.<|eor|><|eols|><|endoftext|>
43
programminghorror
t3kner
j7gcvwk
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>```//creating a function where I will be calling my API```<|eor|><|sor|>`//creating a variable I will use to add to another variable`<|eor|><|sor|>. /* * creating a const (constant) for the count and startin...
40
programminghorror
Viped
j7exv3j
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>"works on my machine"<|eor|><|sor|>Do you just repeat the things you hear other people comment about code you dont understand?<|eor|><|sor|>I am by no means the most successful developer out there but as I work as senio...
36
programminghorror
Lightfire228
j7fw9tp
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>I think This application contains front end and back end together, they are probably using back end as a proxy server<|eor|><|sor|>Its a common practice in react type application<|eor|><|sor|>It is not really. Certainl...
34
programminghorror
-Krasaar-
j7eqj2e
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>Whats wrong with this?<|eor|><|sor|>It doesn't say happy cake day to you. Let me do a quick fix: Happy Cake Day!<|eor|><|eols|><|endoftext|>
27
programminghorror
Haunting-Traffic-203
j7gjsef
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>I think This application contains front end and back end together, they are probably using back end as a proxy server<|eor|><|sor|>Even if that is the case the url should be in an envar called by some config, not hardco...
26
programminghorror
KillerCodeMonky
j7fjw74
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>"works on my machine"<|eor|><|sor|>Do you just repeat the things you hear other people comment about code you dont understand?<|eor|><|sor|>There's a hardcored `localhost` reference, and you don't understand why a "work...
25
programminghorror
BimphyRedixler
j7et1o7
<|sols|><|sot|>this was a deployed app<|eot|><|sol|>https://i.redd.it/t4kkolw5njga1.jpg<|eol|><|sor|>Whats wrong with this?<|eor|><|sor|>What OP is referring to: API endpoint looks like it might still be from the dev environment.<|eor|><|sor|>hmm, I've also seen this where it's interacting with a local server that's al...
22
programminghorror
FyreXYZ
pippne
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|eols|><|endoftext|>
1,500
programminghorror
Roberto410
hbrieez
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>There is a lot going on here. I think my favourite is parsing the string into String() and then checking if the variable is type of string<|eor|><|eols|><|endoftext|>
784
programminghorror
Studnicky
hbrdd8x
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>Someone gets paid by lines of code, huh?<|eor|><|eols|><|endoftext|>
298
programminghorror
FyreXYZ
hbrk06z
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>There is a lot going on here. I think my favourite is parsing the string into String() and then checking if the variable is type of string<|eor|><|soopr|>I mean the casting can at least fai...
223
programminghorror
rogriloomanero
hbrngxp
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>I like the !Boolean(error), I'll be adding that to my arsenal thank you it's even worse when you realize that javascript can use any type as boolean already<|eor|><|eols|><|endoftext|>
172
programminghorror
Kinky-Iconoclast
hbrgu4c
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>**counter** AND **i**. Cause one variable wasnt enough.<|eor|><|eols|><|endoftext|>
155
programminghorror
caerphoto
hbsbomv
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>I like the !Boolean(error), I'll be adding that to my arsenal thank you it's even worse when you realize that javascript can use any type as boolean already<|eor|><|sor|>Its longhand for `...
109
programminghorror
Dionysusnu
hbrj4fm
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>There is a lot going on here. I think my favourite is parsing the string into String() and then checking if the variable is type of string<|eor|><|sor|>Remnant of a number/nan check? Still ...
104
programminghorror
gradual_alzheimers
hbrzz25
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>[deleted]<|eor|><|sor|>wow that's amazing. I had no idea all I needed was a little meth to get promoted.<|eor|><|eols|><|endoftext|>
104
programminghorror
Delta_Labs
hbrfh0e
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>I... I think I'm gay for the default VS code color theme. When looked at this code I immediately thought, "wow, it's so pretty " Then I realized why I like it so much... I looked over at ...
97
programminghorror
SingularCheese
hbrr7zm
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>Enterprise level (TM) defensive type checking only to do nothing about the case when it's not the right type.<|eor|><|eols|><|endoftext|>
96
programminghorror
Totengeist
hbrm0jj
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>**counter** AND **i**. Cause one variable wasnt enough.<|eor|><|sor|>StackOverflow-itis: When you mash two pieces of code together without fully understanding what either one does.<|eor|><|e...
82
programminghorror
Needleroozer
hbs1p4f
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>There is a lot going on here. I think my favourite is parsing the string into String() and then checking if the variable is type of string<|eor|><|soopr|>I mean the casting can at least fai...
82
programminghorror
nrith
hbrhe41
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>I... I think I'm gay for the default VS code color theme. When looked at this code I immediately thought, "wow, it's so pretty " Then I realized why I like it so much... I looked over at ...
77
programminghorror
Roberto410
hbrjb6s
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>There is a lot going on here. I think my favourite is parsing the string into String() and then checking if the variable is type of string<|eor|><|sor|>Remnant of a number/nan check? Still ...
74
programminghorror
AyrA_ch
hbs98jv
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>There is a lot going on here. I think my favourite is parsing the string into String() and then checking if the variable is type of string<|eor|><|soopr|>I mean the casting can at least fai...
66
programminghorror
farsightxr20
hbsduyo
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>There is a lot going on here. I think my favourite is parsing the string into String() and then checking if the variable is type of string<|eor|><|soopr|>I mean the casting can at least fai...
43
programminghorror
arousedboat
hbrgeij
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>Your friend is obviously just protecting against cosmic rays: https://www.reddit.com/r/programming/comments/pfodo0/a_single_bit_of_information_should_not_control_a/<|eor|><|eols|><|endoftext...
37
programminghorror
douglasg14b
hbrkgdo
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>You know this would make sense if he was trying to count actual characters since `string.length` only counts UTF-16 characters (meaning characters that aren't within that character space cou...
35
programminghorror
Needleroozer
hbs29uc
<|sols|><|sot|>Actual crimes, found in a code review for my friend.<|eot|><|sol|>https://i.redd.it/eiqm59xtdsl71.png<|eol|><|sor|>Enterprise level (TM) defensive type checking only to do nothing about the case when it's not the right type.<|eor|><|sor|>HR came through with a mandatory class on inclusiveness and now we'...
35
programminghorror
whizzythorne
ix70wh
<|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java.<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|eols|><|endoftext|>
1,503
programminghorror
inxaneninja
g6548ot
<|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java.<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Mixing Java, PHP, and any language with lowercase string as a type wow<|eor|><|eols|><|endoftext|>
426
programminghorror
Thaddaeus-Tentakel
g65a1bn
<|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java.<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Knowing JavaScript I'm sure you can make it valid JavaScript.<|eor|><|eols|><|endoftext|>
147
programminghorror
DominoNo-
g65bo4g
<|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java.<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Mixing Java, PHP, and any language with lowercase string as a type wow<|eor|><|sor|>The code could be valid C# if you create the "out" class with "println" functio...
122
programminghorror
AyrA_ch
g65699i
<|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java.<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Mixing Java, PHP, and any language with lowercase string as a type wow<|eor|><|sor|>The code could be valid C# if you create the "out" class with "println" functio...
118
programminghorror
Advorange
g657gj9
<|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java.<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Mixing Java, PHP, and any language with lowercase string as a type wow<|eor|><|sor|>The code could be valid C# if you create the "out" class with "println" functio...
57
programminghorror
glha
g65tept
<|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java.<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>You got it wrong, it is IN javascript console.log('string ldap = "(cn=" + $filename + ")";\nSystem.out.println(ldap);') That turns into string ldap = "(c...
45
programminghorror
JerkIzAllPro
g65msk0
<|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java.<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Knowing JavaScript I'm sure you can make it valid JavaScript.<|eor|><|sor|>Knowing JS this probably evaluates to true, false, and crashes some unrelated system at t...
43
programminghorror
Jay_Nitzel
g65ck2t
<|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java.<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Mixing Java, PHP, and any language with lowercase string as a type wow<|eor|><|sor|>The code could be valid C# if you create the "out" class with "println" functio...
43
programminghorror
BabylonDrifter
g65emvh
<|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java.<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Maybe if they pulled out ye olde &#x200B; public class string extends String{}<|eor|><|eols|><|endoftext|>
42
programminghorror
dark-panda
g65dt59
<|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java.<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Dont worry, its actually just a really specific set of Babel plugins and it transpiles to valid ES5.<|eor|><|eols|><|endoftext|>
40
programminghorror
carfniex
g65jcar
<|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java.<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Maybe if they pulled out ye olde &#x200B; public class string extends String{}<|eor|><|sor|>sadly string is final<|eor|><|eols|><|endoftext|>
31
programminghorror
Orichalcum448
g66vyat
<|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java.<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Mixing Java, PHP, and any language with lowercase string as a type wow<|eor|><|sor|>The code could be valid C# if you create the "out" class with "println" functio...
25
programminghorror
BecauseWeCan
g65phav
<|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java.<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Mixing Java, PHP, and any language with lowercase string as a type wow<|eor|><|sor|>The code could be valid C# if you create the "out" class with "println" functio...
25
programminghorror
sternold
g659l7b
<|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java.<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Mixing Java, PHP, and any language with lowercase string as a type wow<|eor|><|sor|>The code could be valid C# if you create the "out" class with "println" functio...
23