subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | _dudz | eukhj63 | <|sols|><|sot|>My first task as an intern is to review and fix the code of the main application used by my company. Here's a piece of code I came across by reading all this mess...<|eot|><|sol|>https://i.imgur.com/qxCbpng.jpg<|eol|><|sor|>Youre surprised by this from a company that hires an intern to review and fix the... | 25 |
programminghorror | Totenlicht | eum68u3 | <|sols|><|sot|>My first task as an intern is to review and fix the code of the main application used by my company. Here's a piece of code I came across by reading all this mess...<|eot|><|sol|>https://i.imgur.com/qxCbpng.jpg<|eol|><|sor|>Youre surprised by this from a company that hires an intern to review and fix the... | 23 |
programminghorror | carfniex | euly32y | <|sols|><|sot|>My first task as an intern is to review and fix the code of the main application used by my company. Here's a piece of code I came across by reading all this mess...<|eot|><|sol|>https://i.imgur.com/qxCbpng.jpg<|eol|><|sor|>Youre surprised by this from a company that hires an intern to review and fix the... | 21 |
programminghorror | MidgetAbilities | eulm43d | <|sols|><|sot|>My first task as an intern is to review and fix the code of the main application used by my company. Here's a piece of code I came across by reading all this mess...<|eot|><|sol|>https://i.imgur.com/qxCbpng.jpg<|eol|><|sor|>Youre surprised by this from a company that hires an intern to review and fix the... | 20 |
programminghorror | SaintNewts | euknpo0 | <|sols|><|sot|>My first task as an intern is to review and fix the code of the main application used by my company. Here's a piece of code I came across by reading all this mess...<|eot|><|sol|>https://i.imgur.com/qxCbpng.jpg<|eol|><|sor|>Don't miss the opportunity to refactor it to having one function that takes a par... | 20 |
programminghorror | blitzkrieg987 | uqul5u | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|eols|><|endoftext|> | 1,154 |
programminghorror | Sharlinator | i8tdo4p | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>Yeah, there is, Ctrl-C Ctrl-V!<|eor|><|eols|><|endoftext|> | 377 |
programminghorror | Jaxcie | i8te7kv | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>Must save precious clock cycles!<|eor|><|eols|><|endoftext|> | 173 |
programminghorror | rigal01 | i8thmwe | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>Yeah, there is, Ctrl-C Ctrl-V!<|eor|><|sor|>It's even better when you make it exponentional. First you copy 1 line, then 2, then 4... In no time you can be repeating 1... | 168 |
programminghorror | Infomania-Declivity | i8tg242 | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>If the compiler is going to unroll the loops for you, you may as well save the compiler some time and do it manually! /s<|eor|><|eols|><|endoftext|> | 155 |
programminghorror | RFC793 | i8tkeoa | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>And in addition, this is a bit of a stretch but hear me out, there could be some data structure that models a sequence of characters so we dont have to work with indiv... | 115 |
programminghorror | BluudLust | i8tpwzu | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>Must save precious clock cycles!<|eor|><|sor|>Embedded programming is a weird beast.<|eor|><|eols|><|endoftext|> | 86 |
programminghorror | rschwa6308 | i8tlkmy | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>Why waste memory on a loop index when youve already got a perfectly good instruction pointer!<|eor|><|eols|><|endoftext|> | 65 |
programminghorror | _ncko | i8u2106 | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>Yeah, there is, Ctrl-C Ctrl-V!<|eor|><|sor|>Ugh, that is inefficient. A real programmer uses vim: yy p p p p p<|eor|><|eols|><|endoftext|> | 54 |
programminghorror | LaLiLuLeLo_0 | i8tv0a1 | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>Honestly, looks about standard for the code I've seen from Electrical Engineers. They tend to care less about quality code than they do about getting the thing running... | 50 |
programminghorror | Sharlinator | i8ubuy2 | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>Yeah, there is, Ctrl-C Ctrl-V!<|eor|><|sor|>Ugh, that is inefficient. A real programmer uses vim: yy p p p p p<|eor|><|sor|>A true vim user would say `yy 5p` though :D... | 47 |
programminghorror | Vindkraft | i8twmra | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>Must save precious clock cycles!<|eor|><|sor|>Embedded programming is a weird beast.<|eor|><|sor|>nop();<|eor|><|eols|><|endoftext|> | 38 |
programminghorror | BluudLust | i8ts6hv | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>And in addition, this is a bit of a stretch but hear me out, there could be some data structure that models a sequence of characters so we dont have to work with indiv... | 37 |
programminghorror | RespectableLurker555 | i8ulv2z | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>Yeah, there is, Ctrl-C Ctrl-V!<|eor|><|sor|>Ugh, that is inefficient. A real programmer uses vim: yy p p p p p<|eor|><|sor|>A true vim user would say `yy 5p` though :D... | 37 |
programminghorror | LBGW_experiment | i8ttayu | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>And in addition, this is a bit of a stretch but hear me out, there could be some data structure that models a sequence of characters so we dont have to work with indiv... | 28 |
programminghorror | elzaidir | i8tzbfn | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>If the compiler is going to unroll the loops for you, you may as well save the compiler some time and do it manually! /s<|eor|><|sor|>Honestly some uC compiler are rea... | 25 |
programminghorror | elzaidir | i8tz66e | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>Honestly, looks about standard for the code I've seen from Electrical Engineers. They tend to care less about quality code than they do about getting the thing running... | 25 |
programminghorror | RFC793 | i8tu7n8 | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>And in addition, this is a bit of a stretch but hear me out, there could be some data structure that models a sequence of characters so we dont have to work with indiv... | 22 |
programminghorror | emelrad12 | i8uewlo | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>Yeah, there is, Ctrl-C Ctrl-V!<|eor|><|sor|>Ugh, that is inefficient. A real programmer uses vim: yy p p p p p<|eor|><|sor|>A true vim user would say `yy 5p` though :D... | 20 |
programminghorror | Hupf | i8wu0y8 | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>Must save precious clock cycles!<|eor|><|sor|> -O5 -funroll-all-loops<|eor|><|eols|><|endoftext|> | 13 |
programminghorror | Eiim | i8vzra0 | <|sols|><|sot|>If only there was something to repeat instructions without retyping them...<|eot|><|sol|>https://i.redd.it/wkgbkpi7ytz81.jpg<|eol|><|sor|>If the compiler is going to unroll the loops for you, you may as well save the compiler some time and do it manually! /s<|eor|><|sor|>Honestly some uC compiler are rea... | 12 |
programminghorror | TheTechRobo | oqcwca | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|eols|><|endoftext|> | 1,149 |
programminghorror | healplease | h6azila | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>git commit -m "some fixes"<|eor|><|eols|><|endoftext|> | 178 |
programminghorror | DaviAMSilva | h6b4z0d | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>git commit -m "some fixes"<|eor|><|sor|>"581 changes"<|eor|><|eols|><|endoftext|> | 115 |
programminghorror | pcuser42 | h6bbnc4 | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>I have a colleague at work who commits with just the message "update" or "fix".
He's been told several times to improve but still does it.<|eor|><|eols|><|endoftext|> | 93 |
programminghorror | -BlueAce- | h6b4074 | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>I love how this can be interpreted as humour and horror at the same time.
The duality of programmers<|eor|><|eols|><|endoftext|> | 78 |
programminghorror | snf | h6bdyys | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>I have a colleague at work who commits with just the message "update" or "fix".
He's been told several times to improve but still does it.<|eor|><|sor|>Infuriating. I would fail that every single time in code review.... | 63 |
programminghorror | AKTarafder | h6bvae1 | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>git commit -m "some fixes"<|eor|><|sor|>"581 changes"<|eor|><|sor|>git add . && git commit -m "minor changes"<|eor|><|eols|><|endoftext|> | 59 |
programminghorror | pcuser42 | h6be3xp | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>I have a colleague at work who commits with just the message "update" or "fix".
He's been told several times to improve but still does it.<|eor|><|sor|>Infuriating. I would fail that every single time in code review.... | 31 |
programminghorror | NotMyGiraffeWatcher | h6bj64n | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>The longer I work and more frustrated I get has a direct relationship with how terrible my commit messages get<|eor|><|eols|><|endoftext|> | 29 |
programminghorror | PhnxDarkDirk | h6bx7kq | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>https://xkcd.com/1296/<|eor|><|eols|><|endoftext|> | 21 |
programminghorror | UnluckyLuke | h6cju45 | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>git commit -m "some fixes"<|eor|><|sor|>"581 changes"<|eor|><|sor|>git add . && git commit -m "minor changes"<|eor|><|sor|>git commit -am <|eor|><|eols|><|endoftext|> | 18 |
programminghorror | zheil9152 | h6bttdl | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>New guy was tasked with some code changes for a PR hes finishing for someone else that left. All of his commit messages are just code changes<|eor|><|eols|><|endoftext|> | 13 |
programminghorror | ChronosSk | h6c9vyb | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>I love how this can be interpreted as humour and horror at the same time.
The duality of programmers<|eor|><|sor|>Some things you can either laugh about them or cry about them. Or both, if you're the one who has to c... | 13 |
programminghorror | Terrain2 | h6d98dz | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>git commit -m "some fixes"<|eor|><|sor|>"581 changes"<|eor|><|sor|>git add . && git commit -m "minor changes"<|eor|><|sor|>[did some coding off-camera](https://imgur.com/a/qz6hxF8)<|eor|><|eols|><|endoftext|> | 13 |
programminghorror | theguy2108 | h6cnf1o | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>I have a colleague at work who commits with just the message "update" or "fix".
He's been told several times to improve but still does it.<|eor|><|sor|>I knew a guy who wrote a literal . as commit messages. Multiple ... | 12 |
programminghorror | dontcomeback82 | h6cvse5 | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>git commit -m "some fixes"<|eor|><|sor|>"581 changes"<|eor|><|sor|>got commit -m ch ch ch changes<|eor|><|eols|><|endoftext|> | 12 |
programminghorror | webdevverman | h6cu4c2 | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>I have a colleague at work who commits with just the message "update" or "fix".
He's been told several times to improve but still does it.<|eor|><|sor|>Infuriating. I would fail that every single time in code review.... | 12 |
programminghorror | slantview | h6baw7n | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>When I get lazy and dont wanna lose ability to rebase easily, I usually commit with checkin. (Works|Broken)<|eor|><|eols|><|endoftext|> | 11 |
programminghorror | hammer-jon | h6cyqk2 | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>I have a colleague at work who commits with just the message "update" or "fix".
He's been told several times to improve but still does it.<|eor|><|sor|>I knew a guy who wrote a literal . as commit messages. Multiple ... | 11 |
programminghorror | Yindoom | h6d1wsr | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>git commit -m "some fixes"<|eor|><|sor|>"581 changes"<|eor|><|sor|>got commit -m ch ch ch changes<|eor|><|sor|>Fairly certain I've made this exact commit during my time studying<|eor|><|eols|><|endoftext|> | 8 |
programminghorror | soniq__ | h6d1aue | <|sols|><|sot|>Really narrows it down...<|eot|><|sol|>https://i.redd.it/fwjnycq8e1d71.png<|eol|><|sor|>http://whatthecommit.com/<|eor|><|eols|><|endoftext|> | 7 |
programminghorror | SO3H-SBF5 | og860g | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|eols|><|endoftext|> | 1,150 |
programminghorror | Mc_UsernameTaken | h4h8m1l | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>I've seen the `if 1 == 2` before. But this.. this is a first.<|eor|><|eols|><|endoftext|> | 245 |
programminghorror | guillem_bcn | h4hc2m0 | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>The best part is that the HTML printed on the 3 "conditions" is commented, so it will not be visible on browser.<|eor|><|eols|><|endoftext|> | 135 |
programminghorror | stouffers3 | h4h9r3f | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>The more you look at it, the worse it gets<|eor|><|eols|><|endoftext|> | 105 |
programminghorror | Dornith | h4hbj3o | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>details_view.old.php<|eor|><|sor|>What's worse is we're looking at `details_view.php` which implies this is the version that's been cleaned up.<|eor|><|eols|><|endoftext|> | 83 |
programminghorror | Ok_Explanation7693 | h4hb2dv | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>details_view.old.php<|eor|><|eols|><|endoftext|> | 74 |
programminghorror | LaSchmu | h4hwsd5 | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>I've seen the `if 1 == 2` before. But this.. this is a first.<|eor|><|sor|>I use it sometimes when I need to rework on Spaghetti Code to obviously note which if's I deactivated... Especially when you have a piece of code running sinc... | 74 |
programminghorror | SO3H-SBF5 | h4i2moo | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>The more you look at it, the worse it gets<|eor|><|sor|>So wrong in so many ways. Gotta be fake, no one could do this<|eor|><|soopr|>I am sorry but this is real. This company, where I am doing my internship doesnt have a git for exa... | 55 |
programminghorror | heyf00L | h4ilf87 | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>I've seen the `if 1 == 2` before. But this.. this is a first.<|eor|><|sor|>Best spin I can give it is someone removed a check that's no longer needed and did a big find-replace from foo() to true.
Also if you have to mix PHP and HTM... | 44 |
programminghorror | SO3H-SBF5 | h4i2yod | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>details_view.old.php<|eor|><|sor|>What's worse is we're looking at `details_view.php` which implies this is the version that's been cleaned up.<|eor|><|soopr|>We are cleaning it, the file is horrible and have like 5k lines of shit li... | 38 |
programminghorror | SO3H-SBF5 | h4i3ohp | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>The more you look at it, the worse it gets<|eor|><|sor|>So wrong in so many ways. Gotta be fake, no one could do this<|eor|><|soopr|>I am sorry but this is real. This company, where I am doing my internship doesnt have a git for exa... | 38 |
programminghorror | Sea_Formal_9336 | h4hec6s | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>How do you write if (true) without questioning what youre doing lmao<|eor|><|eols|><|endoftext|> | 37 |
programminghorror | vannrith | h4i348i | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>The more you look at it, the worse it gets<|eor|><|sor|>So wrong in so many ways. Gotta be fake, no one could do this<|eor|><|soopr|>I am sorry but this is real. This company, where I am doing my internship doesnt have a git for exa... | 34 |
programminghorror | earthbound2eric | h4hh6lm | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>The best part is that the HTML printed on the 3 "conditions" is commented, so it will not be visible on browser.<|eor|><|sor|>I noticed that too so... What does this even do?<|eor|><|eols|><|endoftext|> | 31 |
programminghorror | TwoAndHalfRetard | h4hieos | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>details_view.old.php<|eor|><|sor|>Who needs version control when you can just add ".old" to every file?<|eor|><|eols|><|endoftext|> | 29 |
programminghorror | rushlink1 | h4hr8kv | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>The best part is that the HTML printed on the 3 "conditions" is commented, so it will not be visible on browser.<|eor|><|sor|>I noticed that too so... What does this even do?<|eor|><|sor|>As far as the user is concerned, it will show... | 28 |
programminghorror | justingolden21 | h4hht2t | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>Probably had some if conditions or plans on adding them in the future, but for now using true as placeholder rather than deleting the structure.
As for the comments, probably decided against icons, may add them back later.
Not the ... | 25 |
programminghorror | SO3H-SBF5 | h4i31u0 | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>details_view.old.php<|eor|><|sor|>Who needs version control when you can just add ".old" to every file?<|eor|><|soopr|>The compagny does not use git, we (the trainees) have to add .old to the files to save them...<|eoopr|><|eols|><|e... | 23 |
programminghorror | jabeith | h4hmhw4 | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>The best part is that the HTML printed on the 3 "conditions" is commented, so it will not be visible on browser.<|eor|><|sor|>It will be visible to the browser just not the end user, no?<|eor|><|sor|>~~Making it a comment means its o... | 23 |
programminghorror | 1NSAN3CL0WN | h4iixmp | <|sols|><|sot|>Priceless<|eot|><|sol|>https://i.redd.it/0o6ofqtszz971.jpg<|eol|><|sor|>The more you look at it, the worse it gets<|eor|><|sor|>So wrong in so many ways. Gotta be fake, no one could do this<|eor|><|soopr|>I am sorry but this is real. This company, where I am doing my internship doesnt have a git for exa... | 23 |
programminghorror | shiobi | bhuerj | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|eols|><|endoftext|> | 1,150 |
programminghorror | nordrasir | elw2gh3 | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>Ive done datamining for a bunch of games and youd be surprised how many (AAA games) use fixed value tables with no calculable formula<|eor|><|eols|><|endoftext|> | 418 |
programminghorror | sim642 | elw74ua | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>Ive done datamining for a bunch of games and youd be surprised how many (AAA games) use fixed value tables with no calculable formula<|eor|><|sor|>The correct way would be to have th... | 312 |
programminghorror | scottydoge | elw0rqs | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>Lol that minimap<|eor|><|eols|><|endoftext|> | 230 |
programminghorror | mmirate | elw3be4 | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>What mathematical function was he actually trying to represent? I'm genuinely interested for my own work :)
Most effort-driven games use some kind of Concave-up equation that scales... | 157 |
programminghorror | Thecrawsome | elw1fs6 | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>What mathematical function was he actually trying to represent? I'm genuinely interested for my own work :)
Most effort-driven games use some kind of Concave-up equation that scales... | 100 |
programminghorror | beached | elw9g8w | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>Ive done datamining for a bunch of games and youd be surprised how many (AAA games) use fixed value tables with no calculable formula<|eor|><|sor|>C++ has a nice solution for this wh... | 86 |
programminghorror | sergiu997 | elwt0qk | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>Ive done datamining for a bunch of games and youd be surprised how many (AAA games) use fixed value tables with no calculable formula<|eor|><|sor|>The correct way would be to have th... | 78 |
programminghorror | Cacho_Tognax | elwe63e | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>Ive done datamining for a bunch of games and youd be surprised how many (AAA games) use fixed value tables with no calculable formula<|eor|><|sor|>The correct way would be to have th... | 67 |
programminghorror | nordrasir | elw77za | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>Ive done datamining for a bunch of games and youd be surprised how many (AAA games) use fixed value tables with no calculable formula<|eor|><|sor|>The correct way would be to have th... | 63 |
programminghorror | COLAMAroro | elw1f2z | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>For real, it's ugly, but table lookup can have his use<|eor|><|eols|><|endoftext|> | 57 |
programminghorror | Asl687 | elw64lg | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>Depends how many times per frame this is used.. A lookup table is very very quick , using a formula is slow.. BUT!! you would normally just pre calc the table on game start..<|eor|>... | 51 |
programminghorror | PleasantAdvertising | elwfk7d | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>Ive done datamining for a bunch of games and youd be surprised how many (AAA games) use fixed value tables with no calculable formula<|eor|><|sor|>C++ has a nice solution for this wh... | 49 |
programminghorror | zigs | elw6wdj | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>What mathematical function was he actually trying to represent? I'm genuinely interested for my own work :)
Most effort-driven games use some kind of Concave-up equation that scales... | 37 |
programminghorror | cyrusol | elw8uvs | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>Depends how many times per frame this is used.. A lookup table is very very quick , using a formula is slow.. BUT!! you would normally just pre calc the table on game start..<|eor|>... | 35 |
programminghorror | PC__LOAD__LETTER | elw6ykc | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>why. what could this possibly be good for.<|eor|><|sor|>Pre-computing expensive calculations and storing them in a table because a memory lookup can be cheaper than whatever the calc... | 31 |
programminghorror | Bassie_c | elwknm4 | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>What mathematical function was he actually trying to represent? I'm genuinely interested for my own work :)
Most effort-driven games use some kind of Concave-up equation that scales... | 31 |
programminghorror | Darksonn | elx2ekl | <|sols|><|sot|>This is part of the code that a developer did for my game :(<|eot|><|sol|>https://i.redd.it/if0n8p85tpu21.png<|eol|><|sor|>Ive done datamining for a bunch of games and youd be surprised how many (AAA games) use fixed value tables with no calculable formula<|eor|><|sor|>What do you mean by "no calculable ... | 28 |
programminghorror | taqotta | v7pyc8 | <|sols|><|sot|>From now on this is how i will use arrays<|eot|><|sol|>https://i.redd.it/c0zh1hlgie491.jpg<|eol|><|eols|><|endoftext|> | 1,149 |
programminghorror | barzamsr | ibm1i77 | <|sols|><|sot|>From now on this is how i will use arrays<|eot|><|sol|>https://i.redd.it/c0zh1hlgie491.jpg<|eol|><|sor|>[nice!](https://stackoverflow.com/questions/27459455/in-c-why-does-this-backwards-indexing-work)
Edit: it's pointers all the way down, folks<|eor|><|eols|><|endoftext|> | 420 |
programminghorror | Rich-Yesterday-1529 | ibm8uzd | <|sols|><|sot|>From now on this is how i will use arrays<|eot|><|sol|>https://i.redd.it/c0zh1hlgie491.jpg<|eol|><|sor|>Why not *(1+a) to make it really fun?<|eor|><|eols|><|endoftext|> | 154 |
programminghorror | ike_the_strangetamer | ibnfdlw | <|sols|><|sot|>From now on this is how i will use arrays<|eot|><|sol|>https://i.redd.it/c0zh1hlgie491.jpg<|eol|><|sor|>I love that if someone made a post just like this but instead it showed that in JavaScript that you can do `1[a]` and that `1[a] == a[1]` then people would meme and blog about it as another incredible ... | 96 |
programminghorror | taqotta | ibmgvh9 | <|sols|><|sot|>From now on this is how i will use arrays<|eot|><|sol|>https://i.redd.it/c0zh1hlgie491.jpg<|eol|><|sor|>Why not *(1+a) to make it really fun?<|eor|><|soopr|>I think this is better. The first time I saw it it confused the hell out of me haha<|eoopr|><|eols|><|endoftext|> | 96 |
programminghorror | bran_redd | ibnn5mx | <|sols|><|sot|>From now on this is how i will use arrays<|eot|><|sol|>https://i.redd.it/c0zh1hlgie491.jpg<|eol|><|sor|>[nice!](https://stackoverflow.com/questions/27459455/in-c-why-does-this-backwards-indexing-work)
Edit: it's pointers all the way down, folks<|eor|><|sor|>TIL..thats actually pretty sweet.<|eor|><|eols... | 79 |
programminghorror | HanzoFactory | ibnwv1b | <|sols|><|sot|>From now on this is how i will use arrays<|eot|><|sol|>https://i.redd.it/c0zh1hlgie491.jpg<|eol|><|sor|>I love that if someone made a post just like this but instead it showed that in JavaScript that you can do `1[a]` and that `1[a] == a[1]` then people would meme and blog about it as another incredible ... | 75 |
programminghorror | taqotta | ibmgqcs | <|sols|><|sot|>From now on this is how i will use arrays<|eot|><|sol|>https://i.redd.it/c0zh1hlgie491.jpg<|eol|><|sor|>Does that even compile?<|eor|><|soopr|>Yes indeed it will, the c compiler just adds the two values so a normal array compiles to
a[1] - > *(a + 1)
And
1[a] - > *(1 + a)
It is just a convention for ... | 70 |
programminghorror | 0x126 | ibmpm6z | <|sols|><|sot|>From now on this is how i will use arrays<|eot|><|sol|>https://i.redd.it/c0zh1hlgie491.jpg<|eol|><|sor|>Why not *(1+a) to make it really fun?<|eor|><|sor|>That would be too obvious.<|eor|><|eols|><|endoftext|> | 57 |
programminghorror | leftcoastbeard | ibmc3dg | <|sols|><|sot|>From now on this is how i will use arrays<|eot|><|sol|>https://i.redd.it/c0zh1hlgie491.jpg<|eol|><|sor|>[nice!](https://stackoverflow.com/questions/27459455/in-c-why-does-this-backwards-indexing-work)
Edit: it's pointers all the way down, folks<|eor|><|sor|>TIL...<|eor|><|eols|><|endoftext|> | 56 |
programminghorror | sleurk | ibnbyr7 | <|sols|><|sot|>From now on this is how i will use arrays<|eot|><|sol|>https://i.redd.it/c0zh1hlgie491.jpg<|eol|><|sor|>Does that even compile?<|eor|><|soopr|>Yes indeed it will, the c compiler just adds the two values so a normal array compiles to
a[1] - > *(a + 1)
And
1[a] - > *(1 + a)
It is just a convention for ... | 52 |
programminghorror | 0x126 | ibmpsne | <|sols|><|sot|>From now on this is how i will use arrays<|eot|><|sol|>https://i.redd.it/c0zh1hlgie491.jpg<|eol|><|sor|>why is this programming horror?<|eor|><|sor|>He who does not know pointers and their arithmetic shall fear the misused syntactic sugar!<|eor|><|eols|><|endoftext|> | 49 |
programminghorror | LaLiLuLeLo_0 | ibnn968 | <|sols|><|sot|>From now on this is how i will use arrays<|eot|><|sol|>https://i.redd.it/c0zh1hlgie491.jpg<|eol|><|sor|>Why not *(1+a) to make it really fun?<|eor|><|sor|>That would be too obvious.<|eor|><|sor|>This befuddled me until I realized what was happening, at which point it horrified me. *(1+a) removes all the ... | 46 |
programminghorror | elzaidir | ibo02dk | <|sols|><|sot|>From now on this is how i will use arrays<|eot|><|sol|>https://i.redd.it/c0zh1hlgie491.jpg<|eol|><|sor|>I love that if someone made a post just like this but instead it showed that in JavaScript that you can do `1[a]` and that `1[a] == a[1]` then people would meme and blog about it as another incredible ... | 41 |
programminghorror | fzammetti | iboiil4 | <|sols|><|sot|>From now on this is how i will use arrays<|eot|><|sol|>https://i.redd.it/c0zh1hlgie491.jpg<|eol|><|sor|>[nice!](https://stackoverflow.com/questions/27459455/in-c-why-does-this-backwards-indexing-work)
Edit: it's pointers all the way down, folks<|eor|><|sor|>That frightens and disgusts me and I absolutel... | 40 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.