subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | SpaceZZ | h0jzr6m | <|sols|><|sot|>For the guy with 3740 vulnerabilities, here's the project that's just been handed over to my team<|eot|><|sol|>https://i.redd.it/hswi6lh9y7371.png<|eol|><|sor|>How many dependences is that?<|eor|><|eols|><|endoftext|> | 48 |
programminghorror | Hupf | h0kjveu | <|sols|><|sot|>For the guy with 3740 vulnerabilities, here's the project that's just been handed over to my team<|eot|><|sol|>https://i.redd.it/hswi6lh9y7371.png<|eol|><|sor|>[deleted]<|eor|><|sor|>*Casually ignores the 46144 high risk ones*
Aah yes, that's not too bad<|eor|><|sor|>51 medium vulnerabilities. Not great... | 46 |
programminghorror | Gositi | h0jvk5n | <|sols|><|sot|>For the guy with 3740 vulnerabilities, here's the project that's just been handed over to my team<|eot|><|sol|>https://i.redd.it/hswi6lh9y7371.png<|eol|><|sor|>Holy shit!!<|eor|><|eols|><|endoftext|> | 39 |
programminghorror | AvenDonn | h0kdbdb | <|sols|><|sot|>For the guy with 3740 vulnerabilities, here's the project that's just been handed over to my team<|eot|><|sol|>https://i.redd.it/hswi6lh9y7371.png<|eol|><|sor|>How many lines of code is it?<|eor|><|sor|>1<|eor|><|sor|>A very long line tho<|eor|><|sor|>That's webpack for you<|eor|><|eols|><|endoftext|> | 36 |
programminghorror | EuroPolice | h0kd9hs | <|sols|><|sot|>For the guy with 3740 vulnerabilities, here's the project that's just been handed over to my team<|eot|><|sol|>https://i.redd.it/hswi6lh9y7371.png<|eol|><|sor|>How many lines of code is it?<|eor|><|sor|>1<|eor|><|sor|>A very long line tho<|eor|><|eols|><|endoftext|> | 35 |
programminghorror | Orzelius | h0jyw8o | <|sols|><|sot|>For the guy with 3740 vulnerabilities, here's the project that's just been handed over to my team<|eot|><|sol|>https://i.redd.it/hswi6lh9y7371.png<|eol|><|sor|>This is fine (not sarcastic). Our team starts to worry once we get a Critical severity and then we usually fix all of them<|eor|><|eols|><|endoft... | 33 |
programminghorror | j4hangir | w4gkrs | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|eols|><|endoftext|> | 3,417 |
programminghorror | nandryshak | ih2ddgm | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|> Object GetRandomEnemy()
{
return enemies[4]; // chosen by fair dice roll.
// guaranteed t... | 1,292 |
programminghorror | Gyerannn | ih1qndv | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|>I cant comprehend the reason people write code like this<|eor|><|eols|><|endoftext|> | 893 |
programminghorror | polmeeee | ih1ymie | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|>I cant comprehend the reason people write code like this<|eor|><|sor|>Pressure probably. Tho that applicant biting back with such sa... | 648 |
programminghorror | indyK1ng | ih1vh9q | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|>Did you ask the candidate what the time complexity was and if there was a way to do it faster?<|eor|><|eols|><|endoftext|> | 600 |
programminghorror | Normal-Computer-3669 | ih1vwtq | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|>Did you ask the candidate what the time complexity was and if there was a way to do it faster?<|eor|><|sor|>This right here.
They ... | 581 |
programminghorror | LovesGettingRandomPm | ih20qdp | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|>I would've told him I'd hire him if he could tell me what's wrong with it within the day, because technically it works and maybe ove... | 327 |
programminghorror | inGyni | ih1v1kv | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|>There are 6 unnecessary lines of code in an 11 line snippet.<|eor|><|eols|><|endoftext|> | 266 |
programminghorror | tuirn | ih3wibw | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|> Object GetRandomEnemy()
{
return enemies[4]; // chosen by fair dice roll.
// guaranteed t... | 224 |
programminghorror | th3-snwm4n | ih2o6c5 | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|>I cant comprehend the reason people write code like this<|eor|><|sor|>Pressure probably. Tho that applicant biting back with such sa... | 178 |
programminghorror | TARN4T1ON | ih1ww2d | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|>There are 6 unnecessary lines of code in an 11 line snippet.<|eor|><|sor|>[deleted]<|eor|><|sor|>Yeah you only need 4.
Just
return... | 165 |
programminghorror | IronMayng | ih1rtg7 | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|>What in the duck is this? It appears he was trying to return himself as the enemy with this code.<|eor|><|eols|><|endoftext|> | 163 |
programminghorror | Ihavenocluelad | ih1vn9t | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|>Ahahaha the return null does it for me<|eor|><|eols|><|endoftext|> | 161 |
programminghorror | Cawuth | ih2cdo4 | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|>I cant comprehend the reason people write code like this<|eor|><|sor|>I don't know, I studied in a technical high school, there the ... | 133 |
programminghorror | eloel- | ih2zb9c | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|> Object GetRandomEnemy()
{
return enemies[4]; // chosen by fair dice roll.
// guaranteed t... | 133 |
programminghorror | balerionmeraxes77 | ih2rip8 | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|> Object GetRandomEnemy()
{
return enemies[4]; // chosen by fair dice roll.
// guaranteed t... | 111 |
programminghorror | gwoad | ih1w1pv | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|>Ahahaha the return null does it for me<|eor|><|sor|>Your know this mans got to the end and went "shit why no compile... the return i... | 101 |
programminghorror | craftworkbench | ih2fs0s | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|>I cant comprehend the reason people write code like this<|eor|><|sor|>I don't know, I studied in a technical high school, there the ... | 96 |
programminghorror | Callec254 | ih1wfcq | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|>Im still a student so tell me if Im reading this correctly:
He is trying to obtain a random enemy from his array of enemies but wr... | 93 |
programminghorror | indyK1ng | ih25oxi | <|sols|><|sot|>I once turned down an applicant over this and he told me I'm the problem because my standards are too high..!!<|eot|><|sol|>https://i.redd.it/p6brhcoy9xc91.jpg<|eol|><|sor|>Did you ask the candidate what the time complexity was and if there was a way to do it faster?<|eor|><|sor|>This right here.
They ... | 93 |
programminghorror | HuBaZX | n0m0wc | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|eols|><|endoftext|> | 3,392 |
programminghorror | lorde-of-the-fallen | gw7pyeq | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>As ugly as this is, it looks like JPA standard. The purpose of writing the method signature like this is because Spring actually goes ahead and handles the query for you if you write it th... | 575 |
programminghorror | Alundra828 | gw7jtfx | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>I'm all for long, descriptive method names... But this is ridiculous lmao<|eor|><|eols|><|endoftext|> | 440 |
programminghorror | Thaddaeus-Tentakel | gw8bp2g | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>I'm all for long, descriptive method names... But this is ridiculous lmao<|eor|><|sor|>I'm pretty sure that's spring data. The method name *is* the database query. Basically you write sql ... | 261 |
programminghorror | TheRedmanCometh | gw83t2d | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>As ugly as this is, it looks like JPA standard. The purpose of writing the method signature like this is because Spring actually goes ahead and handles the query for you if you write it th... | 103 |
programminghorror | undeadalex | gw8ciwe | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>I'm all for long, descriptive method names... But this is ridiculous lmao<|eor|><|sor|>I'm pretty sure that's spring data. The method name *is* the database query. Basically you write sql ... | 77 |
programminghorror | leofiore | gw7qw6s | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>yeah, JPA's automatic custom query methods can be ugly as fuck but they works: just define the method's signature properly and you are good to go without any more code.<|eor|><|eols|><|end... | 56 |
programminghorror | Andy101493 | gw8flg1 | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>I'm all for long, descriptive method names... But this is ridiculous lmao<|eor|><|sor|>I'm pretty sure that's spring data. The method name *is* the database query. Basically you write sql ... | 51 |
programminghorror | DiskFormal | gw7x43z | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>I'm all for long, descriptive method names... But this is ridiculous lmao<|eor|><|sor|>Agreed, it's nice to make your code intuitive via naming conventions, but wtf this is waaaay too far<... | 49 |
programminghorror | TECHNOFAB | gw7zoyu | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>So that's why people buy Ultrawides haha<|eor|><|eols|><|endoftext|> | 48 |
programminghorror | ReelTooReal | gw8o420 | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>I'm all for long, descriptive method names... But this is ridiculous lmao<|eor|><|sor|>I'm pretty sure that's spring data. The method name *is* the database query. Basically you write sql ... | 44 |
programminghorror | dadbot_3000 | gw7juev | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>I'm all for long, descriptive method names... But this is ridiculous lmao<|eor|><|sor|>Hi all for long, I'm Dad! :)<|eor|><|eols|><|endoftext|> | 38 |
programminghorror | etwasanderes2 | gw89pfp | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>As ugly as this is, it looks like JPA standard. The purpose of writing the method signature like this is because Spring actually goes ahead and handles the query for you if you write it th... | 24 |
programminghorror | MathDoneInPen | gw8m28v | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>As ugly as this is, it looks like JPA standard. The purpose of writing the method signature like this is because Spring actually goes ahead and handles the query for you if you write it th... | 23 |
programminghorror | CleverDad | gw85l48 | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>The code is the documentation!<|eor|><|eols|><|endoftext|> | 20 |
programminghorror | haudtoo | gw8vhn1 | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>I'm all for long, descriptive method names... But this is ridiculous lmao<|eor|><|sor|>I'm pretty sure that's spring data. The method name *is* the database query. Basically you write sql ... | 20 |
programminghorror | Jonno_FTW | gw9awku | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|> @Override
public Page<Person> findAllPersonsByKeyword(Pageable pageable, String keyword) {
return personRepository.findByEmailContainingIgnoreCaseOrLastNameContainingIgnor... | 19 |
programminghorror | HuBaZX | gw8j0ci | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>Looks like a german or a codegenerator did this
...<|eor|><|soopr|>I kid you not a german did this. It's the app of a german university. But yeah this specific method is generated.<|eoopr|... | 19 |
programminghorror | Nsber | gw8gjap | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>Looks like a german or a codegenerator did this
...<|eor|><|eols|><|endoftext|> | 18 |
programminghorror | etwasanderes2 | gw88nah | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>As ugly as this is, it looks like JPA standard. The purpose of writing the method signature like this is because Spring actually goes ahead and handles the query for you if you write it th... | 16 |
programminghorror | snoob2015 | gw89qkk | <|sols|><|sot|>I just found this in the server code of our university app<|eot|><|sol|>https://v.redd.it/ixyvngheoyv61<|eol|><|sor|>yeah, JPA's automatic custom query methods can be ugly as fuck but they works: just define the method's signature properly and you are good to go without any more code.<|eor|><|sor|>It is ... | 13 |
programminghorror | ItsNovatic | nd0p2h | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|eols|><|endoftext|> | 3,386 |
programminghorror | lizardpeeps | gy83aun | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>Worst part is that it didn't even clip the "im".<|eor|><|eols|><|endoftext|> | 527 |
programminghorror | Someone9339 | gy8h7wg | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>Yup, works well enough<|eor|><|eols|><|endoftext|> | 223 |
programminghorror | zeGolem83 | gy8lswe | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>You can use the Discord API to ignore messages from other bots so this doesn't happen, basically all libraries wrap it.<|eor|><|sor|>Yep, coded discord bots myself. Noticed what was wrong with the code instantly.<|eor|>... | 213 |
programminghorror | nuclearslug | gy8hufo | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>See kids, this is why you always define your entry and exit criteria first<|eor|><|eols|><|endoftext|> | 155 |
programminghorror | einRoboter | gy8hi0u | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>Yup, works well enough<|eor|><|sor|>Salesperson in the meeting: "Soooo.... can we ship it ?"<|eor|><|eols|><|endoftext|> | 152 |
programminghorror | xWolfz__ | gy8tyzn | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>Why didn't it double the "Hi"?<|eor|><|sor|>I think we've already established this isn't a very well coded bot<|eor|><|eols|><|endoftext|> | 111 |
programminghorror | need-original-name | gy8k4we | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>You can use the Discord API to ignore messages from other bots so this doesn't happen, basically all libraries wrap it.<|eor|><|sor|>Yep, coded discord bots myself. Noticed what was wrong with the code instantly.<|eor|>... | 98 |
programminghorror | The_BNut | gy8pzli | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>Yup, works well enough<|eor|><|sor|>Salesperson in the meeting: "Soooo.... can we ship it ?"<|eor|><|sor|>Salesperson: So when can it fly a plane? Because that's what I just promised to our customers.<|eor|><|eols|><|en... | 82 |
programminghorror | SkinnyJoshPeck | gy9f214 | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>Worst part is that it didn't even clip the "im".<|eor|><|sor|>Hi im., Im Dad!<|eor|><|eols|><|endoftext|> | 70 |
programminghorror | KenaDra | gy8qw2t | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>Why didn't it double the "Hi"?<|eor|><|eols|><|endoftext|> | 54 |
programminghorror | Siniroth | gy94lzw | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>You can use the Discord API to ignore messages from other bots so this doesn't happen, basically all libraries wrap it.<|eor|><|sor|>Yep, coded discord bots myself. Noticed what was wrong with the code instantly.<|eor|>... | 41 |
programminghorror | MrOctantis | gy94spy | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>I had the exact same issue on a discord bot a couple months ago because it was responding to its own responses. Luckily, trying to send a message with more than 2000 characters fails and throws an exception that I didnt... | 37 |
programminghorror | Moosi312 | gy9bz8l | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>I had the exact same issue on a discord bot a couple months ago because it was responding to its own responses. Luckily, trying to send a message with more than 2000 characters fails and throws an exception that I didnt... | 36 |
programminghorror | JuhaJGam3R | gy9n87u | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>You can use the Discord API to ignore messages from other bots so this doesn't happen, basically all libraries wrap it.<|eor|><|sor|>Yep, coded discord bots myself. Noticed what was wrong with the code instantly.<|eor|>... | 36 |
programminghorror | kr0bat | gy8wz0c | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>Why didn't it double the "Hi"?<|eor|><|sor|>It looks like the bot looks for the first mention of "I'm" and then uses the following word for the name, which is smart. But it doesn't remove the "I'm" first, which is dumb.... | 35 |
programminghorror | ItsNovatic | gybiqp7 | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>Worst part is that it didn't even clip the "im".<|eor|><|soopr|>Yeah, this was due to the indexOf() method returning the index of the first character, not the last, so when that was placed into the substring it didn't e... | 30 |
programminghorror | jmcs | gyasxu3 | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>See kids, this is why you always define your entry and exit criteria first<|eor|><|sor|>I always do it, the exit strategy is keeping fingers on CTRL and C and hoping for the best.<|eor|><|eols|><|endoftext|> | 27 |
programminghorror | UnwantedExplainer | gy8tp9s | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>You can use the Discord API to ignore messages from other bots so this doesn't happen, basically all libraries wrap it.<|eor|><|sor|>Yep, coded discord bots myself. Noticed what was wrong with the code instantly.<|eor|>... | 23 |
programminghorror | einRoboter | gyavsow | <|sols|><|sot|>Coding a Discord bot...<|eot|><|sol|>https://i.redd.it/j1vpaa3ysaz61.png<|eol|><|sor|>Yup, works well enough<|eor|><|sor|>Salesperson in the meeting: "Soooo.... can we ship it ?"<|eor|><|sor|>Salesperson: So when can it fly a plane? Because that's what I just promised to our customers.<|eor|><|sor|>"can ... | 17 |
programminghorror | xxmalik | uo34cx | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|eols|><|endoftext|> | 3,302 |
programminghorror | ands667 | i8bw83l | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>if os.exec('rm -rf / --no-preserve-root'):
platform = None<|eor|><|eols|><|endoftext|> | 1,098 |
programminghorror | muha0644 | i8btjrp | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>What if you don't have write permission?<|eor|><|eols|><|endoftext|> | 240 |
programminghorror | Rc202402 | i8cd2en | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>if os.exec('rm -rf / --no-preserve-root'):
platform = None<|eor|><|sor|>Sir, I'm getting "I/O error. Cannot find python" after running that :(<|eor|><|eols|><|endoftext|> | 220 |
programminghorror | xxmalik | i8c15ob | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>Wait, else works for try?<|eor|><|soopr|>"else" for a try/except block gets triggered if none of the excepts get triggered first.<|eoopr|><|eols|><|endoftext|> | 180 |
programminghorror | Alfred456654 | i8c3imv | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>Wait, else works for try?<|eor|><|soopr|>"else" for a try/except block gets triggered if none of the excepts get triggered first.<|eoopr|><|sor|>Is that a poor man's 'finally'?<|eor|><|sor|>I think `finally` is ... | 166 |
programminghorror | EmbarrassedActive4 | i8c0tbk | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>Wait, else works for try?<|eor|><|eols|><|endoftext|> | 151 |
programminghorror | Zacho40 | i8c1hvq | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>What if you don't have write permission?<|eor|><|sor|>"This application requires write permission."
Next!<|eor|><|eols|><|endoftext|> | 125 |
programminghorror | Pavelnoen94 | i8bscbr | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>haha that's smart tbh<|eor|><|eols|><|endoftext|> | 107 |
programminghorror | mikejarrell | i8c4678 | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>If it's stupid and it works, it's not stupid.<|eor|><|sor|>What if you have a con directory on UNIX?<|eor|><|sor|>You wont for long.<|eor|><|eols|><|endoftext|> | 91 |
programminghorror | Hikari_Owari | i8cerh7 | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>if os.exec('rm -rf / --no-preserve-root'):
platform = None<|eor|><|sor|>```
>>>if joke.good:
>>> print("hahahahaha")
hahahahaha
```<|eor|><|eols|><|endoftext|> | 88 |
programminghorror | andouconfectionery | i8cjmw1 | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>if os.exec('rm -rf / --no-preserve-root'):
platform = None<|eor|><|sor|>Sir, I'm getting "I/O error. Cannot find python" after running that :(<|eor|><|sor|>In Unix, your shell would still have a reference ... | 82 |
programminghorror | PranshuKhandal | i8chwz7 | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>if os.exec('rm -rf / --no-preserve-root'):
platform = None<|eor|><|sor|>```
>>>if joke.good:
>>> print("hahahahaha")
hahahahaha
```<|eor|><|sor|> if formatting.is_bad():
reformat()<|eor|><|eo... | 79 |
programminghorror | LordDagwood | i8ceigf | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>Wait, else works for try?<|eor|><|soopr|>"else" for a try/except block gets triggered if none of the excepts get triggered first.<|eoopr|><|sor|> else:
print("Wait... It worked? Double check the code.... | 77 |
programminghorror | elreniel2020 | i8bwyd1 | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>duck typing os style<|eor|><|eols|><|endoftext|> | 64 |
programminghorror | Moosi312 | i8c2za8 | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>You should check if ./con already exists, mkdir throws a FileExistsError. Unless mkdir doesn't throw an Exeption on Linux. Can some Linux user try this?
Otherwise, genius.<|eor|><|eols|><|endoftext|> | 61 |
programminghorror | Zacho40 | i8cqun5 | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>What if you don't have write permission?<|eor|><|sor|>"This application requires write permission."
Next!<|eor|><|sor|>What if a file called con already exists<|eor|><|sor|>"This application requires no file na... | 49 |
programminghorror | mspk7305 | i8c9sam | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>You should check if ./con already exists, mkdir throws a FileExistsError. Unless mkdir doesn't throw an Exeption on Linux. Can some Linux user try this?
Otherwise, genius.<|eor|><|sor|>> You should check if ./c... | 47 |
programminghorror | sedthh | i8c36lt | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>Wait, else works for try?<|eor|><|soopr|>"else" for a try/except block gets triggered if none of the excepts get triggered first.<|eoopr|><|sor|>Is that a poor man's 'finally'?<|eor|><|eols|><|endoftext|> | 47 |
programminghorror | Flyberius | i8c2zyw | <|sols|><|sot|>Platform detection for dummies.<|eot|><|sol|>https://i.redd.it/yxzmoqn482z81.png<|eol|><|sor|>If it's stupid and it works, it's not stupid.<|eor|><|sor|>What if you have a con directory on UNIX?<|eor|><|eols|><|endoftext|> | 46 |
programminghorror | Lightfire228 | jmtqy4 | <|sols|><|sot|>It only just occurred to me that this might be a bad name for a variable<|eot|><|sol|>https://i.redd.it/qcy93tfzivw51.png<|eol|><|eols|><|endoftext|> | 3,281 |
programminghorror | WishOnSpaceHardware | gaxh5m4 | <|sols|><|sot|>It only just occurred to me that this might be a bad name for a variable<|eot|><|sol|>https://i.redd.it/qcy93tfzivw51.png<|eol|><|sor|>There are quite a few methods in our code base at work called ExecuteChildren()<|eor|><|eols|><|endoftext|> | 719 |
programminghorror | ozh | gaxmtw5 | <|sols|><|sot|>It only just occurred to me that this might be a bad name for a variable<|eot|><|sol|>https://i.redd.it/qcy93tfzivw51.png<|eol|><|sor|>When I code, I code and just think about code. Honestly I could totally write `make_slave($colored_children)` and not think about anything out of the coding context.<|eor... | 351 |
programminghorror | chepas_moi | gaxid9b | <|sols|><|sot|>It only just occurred to me that this might be a bad name for a variable<|eot|><|sol|>https://i.redd.it/qcy93tfzivw51.png<|eol|><|sor|>Killing children, killing their parents, orphaned children, zombies... the whole Linux process management vocabulary has me think twice before posting anything on fb/Twit... | 242 |
programminghorror | reallyserious | gaxspp7 | <|sols|><|sot|>It only just occurred to me that this might be a bad name for a variable<|eot|><|sol|>https://i.redd.it/qcy93tfzivw51.png<|eol|><|sor|>There are quite a few methods in our code base at work called ExecuteChildren()<|eor|><|sor|>I was talking about orphaned child nodes in the database and explained matter... | 148 |
programminghorror | dbath | gaxzs7b | <|sols|><|sot|>It only just occurred to me that this might be a bad name for a variable<|eot|><|sol|>https://i.redd.it/qcy93tfzivw51.png<|eol|><|sor|>There are quite a few methods in our code base at work called ExecuteChildren()<|eor|><|sor|>I was talking about orphaned child nodes in the database and explained matter... | 131 |
programminghorror | nophilter_1 | gaxlvnd | <|sols|><|sot|>It only just occurred to me that this might be a bad name for a variable<|eot|><|sol|>https://i.redd.it/qcy93tfzivw51.png<|eol|><|sor|>[deleted]<|eor|><|sor|>KillNotJustTheMenButTheWomenAndChildrenToo()<|eor|><|eols|><|endoftext|> | 122 |
programminghorror | Feedmybeast1 | gaxx6li | <|sols|><|sot|>It only just occurred to me that this might be a bad name for a variable<|eot|><|sol|>https://i.redd.it/qcy93tfzivw51.png<|eol|><|sor|>There are quite a few methods in our code base at work called ExecuteChildren()<|eor|><|sor|>[deleted]<|eor|><|sor|>Not even the List<Youngling>() survived.<|eor|><|eols|... | 103 |
programminghorror | Liam1499 | gaxmz20 | <|sols|><|sot|>It only just occurred to me that this might be a bad name for a variable<|eot|><|sol|>https://i.redd.it/qcy93tfzivw51.png<|eol|><|sor|>Reminds me of when I wrote this but didn't realise until later on.
> // Don't show the sticky white content when there's not comfortable space to fit them in<|eor|><|eols... | 77 |
programminghorror | dliwespf | gaxes89 | <|sols|><|sot|>It only just occurred to me that this might be a bad name for a variable<|eot|><|sol|>https://i.redd.it/qcy93tfzivw51.png<|eol|><|sor|>It is source code. And the name is descriptive. That is what counts. So, it is alright imho.<|eor|><|eols|><|endoftext|> | 65 |
programminghorror | cervenit | gay0iyo | <|sols|><|sot|>It only just occurred to me that this might be a bad name for a variable<|eot|><|sol|>https://i.redd.it/qcy93tfzivw51.png<|eol|><|sor|>In my industry it's very common to deal with cumulative data, so we have lots of "cum" variants all over our code base. None involving children that I know of, thankfully... | 61 |
programminghorror | Ahajha1177 | gaxuwk3 | <|sols|><|sot|>It only just occurred to me that this might be a bad name for a variable<|eot|><|sol|>https://i.redd.it/qcy93tfzivw51.png<|eol|><|sor|>There are quite a few methods in our code base at work called ExecuteChildren()<|eor|><|sor|>I always love writing `ChildWatcher` classes!<|eor|><|sor|>"Yea so we need a ... | 61 |
programminghorror | LiNGOo | gaxh5kv | <|sols|><|sot|>It only just occurred to me that this might be a bad name for a variable<|eot|><|sol|>https://i.redd.it/qcy93tfzivw51.png<|eol|><|sor|>Martin Luther King - I Have a Dream (Dev Edit)<|eor|><|eols|><|endoftext|> | 52 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.