subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
lancepioch
jap8ie6
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>What the fuck is for-else<|eor|><|sor|>The wrong answer<|eor|><|eols|><|endoftext|>
27
programminghorror
bspymaster
avrbt1
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|eols|><|endoftext|>
738
programminghorror
roughstylez
ehh4dav
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>Public class CustomerAndCustomerValidatorAndWebconnectionAndWebConnectionFactoryAndAddressAndAddressValidatorAndStringHelperAndAddressFormatterAndAd...
297
programminghorror
bspymaster
ehh8dtl
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>Public class CustomerAndCustomerValidatorAndWebconnectionAndWebConnectionFactoryAndAddressAndAddressValidatorAndStringHelperAndAddressFormatterAndAd...
132
programminghorror
snerp
ehi4rhx
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>I've seen a lot of this in C# for some gamedevs with JRPGs. They can have one class named "Battle" and one thats "World" and EVERYTHING related is i...
78
programminghorror
caviyacht
ehha0p0
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>And it's not the only class in the file...<|eor|><|eols|><|endoftext|>
67
programminghorror
Zarkdion
ehh6j17
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>Why tho. No one class should have all that power. <|eor|><|eols|><|endoftext|>
66
programminghorror
bspymaster
ehi4k8c
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>Why tho. No one class should have all that power. <|eor|><|soopr|>This is a really, *really* old class in our architecture that many different teams...
48
programminghorror
AyrA_ch
ehhbfid
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>Public class CustomerAndCustomerValidatorAndWebconnectionAndWebConnectionFactoryAndAddressAndAddressValidatorAndStringHelperAndAddressFormatterAndAd...
43
programminghorror
bspymaster
ehhc2zu
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>And it's not the only class in the file...<|eor|><|soopr|>Nope. There's a couple other supporting classes, as well as 2 enums and an interface.<|eoo...
41
programminghorror
bspymaster
ehh86iu
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>Why tho. No one class should have all that power. <|eor|><|soopr|>This is a really, *really* old class in our architecture that many different teams...
40
programminghorror
snerp
ehi3irb
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>Public class CustomerAndCustomerValidatorAndWebconnectionAndWebConnectionFactoryAndAddressAndAddressValidatorAndStringHelperAndAddressFormatterAndAd...
37
programminghorror
rook2004
ehi58lp
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>What language capitalizes those keywords? Oh god, is this Visual Basic? O_O<|eor|><|soopr|>VB<|eoopr|><|sor|>25,000 line VB file is nightmare fuel....
33
programminghorror
___u___u___
ehhnovs
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>I'm calling the police <|eor|><|eols|><|endoftext|>
30
programminghorror
bspymaster
ehhcdvl
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>Public class CustomerAndCustomerValidatorAndWebconnectionAndWebConnectionFactoryAndAddressAndAddressValidatorAndStringHelperAndAddressFormatterAndAd...
28
programminghorror
rook2004
ehhjj59
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>What language capitalizes those keywords? Oh god, is this Visual Basic? O_O<|eor|><|eols|><|endoftext|>
27
programminghorror
HandshakeOfCO
ehhl7t3
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>Public class CustomerAndCustomerValidatorAndWebconnectionAndWebConnectionFactoryAndAddressAndAddressValidatorAndStringHelperAndAddressFormatterAndAd...
25
programminghorror
Ascomae
ehhbz4a
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>As far as I know you can't set a breakpoint behind line 60k something. <|eor|><|eols|><|endoftext|>
24
programminghorror
bspymaster
ehi4pul
<|sols|><|sot|>I see your 7478 line class, and raise you my 25,196 line behemoth (approximately 1250 methods)<|eot|><|sol|>https://i.redd.it/oeezpcradbj21.png<|eol|><|sor|>Why tho. No one class should have all that power. <|eor|><|soopr|>This is a really, *really* old class in our architecture that many different teams...
24
programminghorror
TriLinder
12n230w
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|eols|><|endoftext|>
735
programminghorror
Omario
jgdareb
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|sor|>Please stop putting crap like this on the internet Think of all the baby AIs that might be watching!<|eor|><|eols|><|endoftext|>
255
programminghorror
R717159631668645
jgcw97o
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|sor|>I am choosing the believe this code was proceduraly generated by trying all the possible options.<|eor|><|eols|><|endoftext|>
186
programminghorror
Nanocephalic
jgd4c25
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|sor|>It isnt hard! You start with blank. Then X goes? So thats a total of 362,881 board states. Keep typing!<|eor|><|eols|><|endoftext|>
116
programminghorror
Nanocephalic
jgdrt3i
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|sor|>Please stop putting crap like this on the internet Think of all the baby AIs that might be watching!<|eor|><|sor|>Hmm. New drinking game unlocked: Make AI build the worst possible code for solving the simpl...
89
programminghorror
Sanchez_2_z
jgcv5gu
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|sor|>jesus christ... reminds me of the C++ prime number calculator, 40mil+ lines, lol nice code :)<|eor|><|eols|><|endoftext|>
62
programminghorror
CronenburghMorty95
jgd3u8z
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|soopr|>The full source code: https://github.com/TriLinder/TicTacNo<|eoopr|><|sor|>Holy shit your main.py is 91 MB haha<|eor|><|eols|><|endoftext|>
47
programminghorror
BLubez
jgdpq8x
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|sor|>It isnt hard! You start with blank. Then X goes? So thats a total of 362,881 board states. Keep typing!<|eor|><|sor|>How many of those are win states you'd early exit from? Should be somewhat less than that b...
36
programminghorror
TriLinder
jgcuun4
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|soopr|>The full source code: https://github.com/TriLinder/TicTacNo<|eoopr|><|eols|><|endoftext|>
35
programminghorror
Logical_Put_5867
jgd9f1h
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|sor|>Huge and messyI realize that its Python and so I could be all wrong about this, but have you tried conceptualizing the board as a 3x3 grid? This would allow you to bust out a 2 dimensional array of 3x3. I thin...
28
programminghorror
FoxmanWasserman
jgd528b
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|sor|>Huge and messyI realize that its Python and so I could be all wrong about this, but have you tried conceptualizing the board as a 3x3 grid? This would allow you to bust out a 2 dimensional array of 3x3. I thin...
25
programminghorror
Nanocephalic
jgdrlwe
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|sor|>It isnt hard! You start with blank. Then X goes? So thats a total of 362,881 board states. Keep typing!<|eor|><|sor|>How many of those are win states you'd early exit from? Should be somewhat less than that b...
22
programminghorror
TriLinder
jgdtt4z
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|sor|>Huge and messyI realize that its Python and so I could be all wrong about this, but have you tried conceptualizing the board as a 3x3 grid? This would allow you to bust out a 2 dimensional array of 3x3. I thin...
18
programminghorror
TriLinder
jgen1lu
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|soopr|>The full source code: https://github.com/TriLinder/TicTacNo<|eoopr|><|sor|>Holy shit your main.py is 91 MB haha<|eor|><|soopr|>Just shy of the GitHub 100 MB limit<|eoopr|><|eols|><|endoftext|>
17
programminghorror
HobblingCobbler
jgdkdzb
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|sor|> I'd like to assume this is someone's first attempt at a game with a new language, maybe.<|eor|><|eols|><|endoftext|>
16
programminghorror
Sparrow1300
jgdoj34
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|soopr|>The full source code: https://github.com/TriLinder/TicTacNo<|eoopr|><|sor|>I'm guessing you generated the code with a program of its own?<|eor|><|sor|>I used the code to generate the code .(Thanos)<|eor|><|e...
16
programminghorror
_oSiv
jgg4wri
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|sor|>Please stop putting crap like this on the internet Think of all the baby AIs that might be watching!<|eor|><|sor|>Hmm. New drinking game unlocked: Make AI build the worst possible code for solving the simpl...
13
programminghorror
BLubez
jge0hrl
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|sor|>It isnt hard! You start with blank. Then X goes? So thats a total of 362,881 board states. Keep typing!<|eor|><|sor|>How many of those are win states you'd early exit from? Should be somewhat less than that b...
13
programminghorror
dendrocalamidicus
jgdb07o
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|soopr|>The full source code: https://github.com/TriLinder/TicTacNo<|eoopr|><|sor|>I'm guessing you generated the code with a program of its own?<|eor|><|eols|><|endoftext|>
12
programminghorror
mikewirkijowski
jgdqbpw
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|sor|> I'd like to assume this is someone's first attempt at a game with a new language, maybe.<|eor|><|sor|>Look at the line number<|eor|><|eols|><|endoftext|>
11
programminghorror
Tasgall
jgfzfyn
<|sols|><|sot|>why is coding tic-tac-toe so hard<|eot|><|sol|>https://i.redd.it/72hbkuw0t1ua1.png<|eol|><|sor|>jesus christ... reminds me of the C++ prime number calculator, 40mil+ lines, lol nice code :)<|eor|><|sor|>Dare I ask why it was so long?<|eor|><|sor|>I'm guessing it would just be a large file containing ev...
9
programminghorror
l0_0l-
12qp2o6
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|eols|><|endoftext|>
730
programminghorror
NoxiousPluK
jgr66kk
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>Ah the GTA 5 Online loader<|eor|><|eols|><|endoftext|>
252
programminghorror
latkde
jgruvvn
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>Ah the GTA 5 Online loader<|eor|><|sor|>what is it?<|eor|><|sor|>On startup, GTA Online would parse a 10MB JSON configuration file, in the silliest way possible. Because someone hand-rolled it instead of using some JSON library,...
221
programminghorror
joshuakb2
jgr1bzr
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>God forbid they have to create 2 variables<|eor|><|eols|><|endoftext|>
149
programminghorror
Buttleston
jgr9551
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>God forbid they have to create 2 variables<|eor|><|sor|>They don't even have to, this also works `let selectedProperty = someThing() || null` instead of `someThing() ? someThing() : null`<|eor|><|eols|><|endoftext|>
111
programminghorror
pigeon768
jgt23gb
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>Ah the GTA 5 Online loader<|eor|><|sor|>what is it?<|eor|><|sor|>On startup, GTA Online would parse a 10MB JSON configuration file, in the silliest way possible. Because someone hand-rolled it instead of using some JSON library,...
89
programminghorror
v_maria
jgr6syt
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>Looks like they think it would throw an error if the property doesnt exist- but the way they handled it, it reads the file twice?<|eor|><|sor|>twice the IO twice the power<|eor|><|eols|><|endoftext|>
86
programminghorror
MorningPants
jgr24vy
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>Looks like they think it would throw an error if the property doesnt exist- but the way they handled it, it reads the file twice?<|eor|><|eols|><|endoftext|>
82
programminghorror
Buttleston
jgrv47r
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>God forbid they have to create 2 variables<|eor|><|sor|>They don't even have to, this also works `let selectedProperty = someThing() || null` instead of `someThing() ? someThing() : null`<|eor|><|sor|>Where are your manners, do...
54
programminghorror
MiZrakk
jgu21lm
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>Ah the GTA 5 Online loader<|eor|><|sor|>what is it?<|eor|><|sor|>On startup, GTA Online would parse a 10MB JSON configuration file, in the silliest way possible. Because someone hand-rolled it instead of using some JSON library,...
44
programminghorror
reallynormalone
jgrq4dw
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>Ah the GTA 5 Online loader<|eor|><|sor|>what is it?<|eor|><|eols|><|endoftext|>
36
programminghorror
serg06
jgr6r0f
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>Could've just done let selectedProperty = JSON.parse(readFileSync(file, "utf8"))[property] || null;<|eor|><|eols|><|endoftext|>
27
programminghorror
kristallnachte
jgr6u0x
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>Looks like they think it would throw an error if the property doesnt exist- but the way they handled it, it reads the file twice?<|eor|><|sor|>Well, it might throw an error, but the ternary doesn't handle an error anyway.<|eor|>...
27
programminghorror
xroalx
jgru111
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>God forbid they have to create 2 variables<|eor|><|sor|>They don't even have to, this also works `let selectedProperty = someThing() || null` instead of `someThing() ? someThing() : null`<|eor|><|sor|>Where are your manners, do...
27
programminghorror
Romejanic
jguenik
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>Ah the GTA 5 Online loader<|eor|><|sor|>what is it?<|eor|><|sor|>On startup, GTA Online would parse a 10MB JSON configuration file, in the silliest way possible. Because someone hand-rolled it instead of using some JSON library,...
19
programminghorror
JustinWendell
jgtfsp1
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>Ah the GTA 5 Online loader<|eor|><|sor|>what is it?<|eor|><|sor|>On startup, GTA Online would parse a 10MB JSON configuration file, in the silliest way possible. Because someone hand-rolled it instead of using some JSON library,...
18
programminghorror
mr_hard_name
jgumk8b
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>Ah the GTA 5 Online loader<|eor|><|sor|>what is it?<|eor|><|sor|>On startup, GTA Online would parse a 10MB JSON configuration file, in the silliest way possible. Because someone hand-rolled it instead of using some JSON library,...
18
programminghorror
TequilaHustler
jguwm9z
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>Ah the GTA 5 Online loader<|eor|><|sor|>what is it?<|eor|><|sor|>On startup, GTA Online would parse a 10MB JSON configuration file, in the silliest way possible. Because someone hand-rolled it instead of using some JSON library,...
17
programminghorror
siliconwolf13
jgsy5gz
<|sols|><|sot|>Found this gem<|eot|><|sol|>https://i.redd.it/6ccd7nyxlnua1.png<|eol|><|sor|>God forbid they have to create 2 variables<|eor|><|sor|>Two variables? God I hope you are trolling.<|eor|><|sor|>/r/programminghorror commenters on their way to laugh at the post and then present the most CS 201 solution ever<...
13
programminghorror
KK4016
msu89h
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|eos...
731
programminghorror
LankySeat
guwab6d
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
145
programminghorror
nuclearslug
guw8xho
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
124
programminghorror
ayunami2000
guwuuwr
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
106
programminghorror
KK4016
guwsip1
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
93
programminghorror
Atem-boi
guvjp8z
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
61
programminghorror
link23
guw3xc1
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
56
programminghorror
tux_unit
gux7l51
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
45
programminghorror
XPost3000
guwsof2
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
41
programminghorror
link23
guwh03y
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
40
programminghorror
ayunami2000
guwv0z1
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
38
programminghorror
ubercorb77
guwqzau
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
32
programminghorror
link23
guwlurr
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
30
programminghorror
arousedboat
guwk2l3
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
28
programminghorror
tux_unit
gux7ozd
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
24
programminghorror
i47
guwjsk8
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
21
programminghorror
ThedutchMan101
guwumrn
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
16
programminghorror
RimuDelph
guwsbdq
<|soss|><|sot|>When you want to create a tic-tac-toe game, but you don't really know how to check whether there are 3 'X's or 'O's in a row.<|eot|><|sost|>"board" is a char\[\]\[\] https://preview.redd.it/26cr51g2jrt61.png?width=494&format=png&auto=webp&v=enabled&s=18cf8a64c92931af6ba8db62b0cf5c9cfefdb6ca<|eost|><|sor...
15
programminghorror
bendikjohansen
g79dls
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|eols|><|endoftext|>
738
programminghorror
Sethasaur
fofo143
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>This helped my imposter syndrome, thank you.<|eor|><|eols|><|endoftext|>
305
programminghorror
finally-anna
fofoy67
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>This happens in enterprise systems as you move from MS SQL to PostgreSQL. As someone who has helped move an enterprise application from .NET on Windows to .NET Core on Linux, we have had to do ...
144
programminghorror
NeoKabuto
foftzkr
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>Wait I have no idea what's wrong<|eor|><|sor|>It prints out the connection string, which includes the password. And it's kind of a hacky way to parse it when there appears to be existing functio...
102
programminghorror
gnutrino
fofq8oe
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>This happens in enterprise systems as you move from MS SQL to PostgreSQL. As someone who has helped move an enterprise application from .NET on Windows to .NET Core on Linux, we have had to do ...
95
programminghorror
Thecrawsome
fofspa9
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>This happens in enterprise systems as you move from MS SQL to PostgreSQL. As someone who has helped move an enterprise application from .NET on Windows to .NET Core on Linux, we have had to do ...
46
programminghorror
PK2999
fofpa26
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>Wait I have no idea what's wrong<|eor|><|eols|><|endoftext|>
41
programminghorror
finally-anna
fofsv2i
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>This happens in enterprise systems as you move from MS SQL to PostgreSQL. As someone who has helped move an enterprise application from .NET on Windows to .NET Core on Linux, we have had to do ...
38
programminghorror
cheesy7773
fog0lyv
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>Wait I have no idea what's wrong<|eor|><|sor|>It prints out the connection string, which includes the password. And it's kind of a hacky way to parse it when there appears to be existing functio...
38
programminghorror
bendikjohansen
fofqd4p
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>This happens in enterprise systems as you move from MS SQL to PostgreSQL. As someone who has helped move an enterprise application from .NET on Windows to .NET Core on Linux, we have had to do ...
36
programminghorror
donsta3000
fofxwco
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>Wait I have no idea what's wrong<|eor|><|sor|>It prints out the connection string, which includes the password. And it's kind of a hacky way to parse it when there appears to be existing functio...
27
programminghorror
cheesy7773
fog3wai
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>Wait I have no idea what's wrong<|eor|><|sor|>It prints out the connection string, which includes the password. And it's kind of a hacky way to parse it when there appears to be existing functio...
27
programminghorror
Anozir
fofpk03
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>This happens in enterprise systems as you move from MS SQL to PostgreSQL. As someone who has helped move an enterprise application from .NET on Windows to .NET Core on Linux, we have had to do ...
21
programminghorror
Famous_Profile
foftg6q
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>So the user and password are in an environment variable? This is worse than using eval() over an user input in PHP. Edit: typos.<|eor|><|sor|>Why? Genuine question. In my experience it is commo...
18
programminghorror
mybadmc
fofojkj
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>I hope this is someone's home practice code.<|eor|><|eols|><|endoftext|>
17
programminghorror
americk0
fog2xpz
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>This must be really fun to debug when the input string doesn't perfectly match up with what's expected. I also love the printing of the connection string in plain text which contains a password s...
15
programminghorror
bendikjohansen
fofq5cz
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>I hope this is someone's home practice code.<|eor|><|soopr|>Close! It's a school assignment. Luckily, the code won't be evaluated :-)<|eoopr|><|eols|><|endoftext|>
14
programminghorror
FM-96
fofx81c
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>So the user and password are in an environment variable? This is worse than using eval() over an user input in PHP. Edit: typos.<|eor|><|sor|>Storing credentials in environment variables is per...
14
programminghorror
Vlyn
foj7b3a
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>This happens in enterprise systems as you move from MS SQL to PostgreSQL. As someone who has helped move an enterprise application from .NET on Windows to .NET Core on Linux, we have had to do ...
14
programminghorror
bytedbyted
fogdvfv
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>Wait I have no idea what's wrong<|eor|><|sor|>It prints out the connection string, which includes the password. And it's kind of a hacky way to parse it when there appears to be existing functio...
14
programminghorror
donsta3000
fog1l85
<|sols|><|sot|>13 lines to avoid when connecting to a database<|eot|><|sol|>https://i.redd.it/pwqlzze80su41.png<|eol|><|sor|>Wait I have no idea what's wrong<|eor|><|sor|>It prints out the connection string, which includes the password. And it's kind of a hacky way to parse it when there appears to be existing functio...
12
programminghorror
timmyhawkins3
cuh4ap
<|sols|><|sot|>Reviewing the code of one of the interns at work when suddenly...<|eot|><|sol|>https://i.redd.it/jk3snf00i8i31.jpg<|eol|><|eols|><|endoftext|>
728
programminghorror
timmyhawkins3
exutyhw
<|sols|><|sot|>Reviewing the code of one of the interns at work when suddenly...<|eot|><|sol|>https://i.redd.it/jk3snf00i8i31.jpg<|eol|><|sor|>When you want to be extra sure that a number is equal to 1, you really gotta check it from both sides.<|eor|><|soopr|>Just in case<|eoopr|><|eols|><|endoftext|>
106