455
u/Harcerz1 Jul 10 '18
NOW with 20% less coding AND 50% more crying - FOR FREE! Buy now!
108
u/Kushman257 Jul 10 '18 edited May 27 '25
crawl square sleep frame steer hobbies juggle pet brave normal
This post was mass deleted and anonymized with Redact
102
Jul 10 '18
DID YOU KNOW THAT 3 BILLION DEV...
36
u/Kushman257 Jul 10 '18 edited May 27 '25
imminent modern ghost rainstorm capable judicious mighty airport merciful full
This post was mass deleted and anonymized with Redact
40
u/kodedemonmikalhanson Jul 10 '18
yes, it is a bad choice to become a programmer unless you love your life to be an emotional roller coaster and to also have no friends.
0
16
11
→ More replies (1)6
19
307
Jul 10 '18
That poor box, being clicked over and over again :(
How would you feel if you were just brought to life and your creator just kept jabbing you in the ribs over and over again? #BoxesArePeopleToo
37
4
13
→ More replies (10)1
u/SonicFlash01 Jul 11 '18
I bet God just sits up there all day watching us poop like "It was hard as hell to make that work! LOOK that one is doing is! It sucked up all the nutrients out of it! DAMN I'm good!"
59
u/The_sad_zebra Jul 10 '18
On a project in college, I spent hours one night bashing my head on the keyboard trying to figure out why my method wasn't working, only to realize the next day that while I spent all that time making sure the conditions were right for the method to be called, my dumbass never actually included a line to call the method.
20
5
u/Starinco Jul 11 '18
If you have problems in the evening, sleep on it. You'll probably be smarter in the morning when you're not tired.
2
u/bluepoopants Jul 11 '18
Kind of similar but once i wrote a constructor for a class and spent hours working out why it wasnt being called. Turns out i put void infront by accident and so it became a method and not a constructor.
202
Jul 10 '18
An hour? Those are rookie numbers
101
u/zettabyte Jul 10 '18
I wanted to type this in too, but an hour would actually be a veteran number. A rookie number would probably be something like 6.
80
u/Askee123 Jul 10 '18
Dude for real.
I once spent a full day because I was missing the “s” in https but my errors and googling took me everywhere else.
Man that was a rough fucking day
32
u/M0sesx Jul 11 '18
I work with many clients who implement the same product. Some of my most frustrating experiences have come from implementing a change in one environment and unknowingly trying to test it on another.
You look at your code and say, "there's nothing wrong, what I'm trying to do isn't even that hard. Why in the deep blue fuck is this not working!"
Some problems are hard to identify because they are so simple they slip your radar.
→ More replies (1)19
u/Askee123 Jul 11 '18
Jesus absolutely.
Not to mention having to wade through the shit documentation from Microsoft to find that one goddamn function that returns the right object. I’m so triggered..
33
Jul 11 '18
Or 12 Stack Overflow tabs that almost do what you want but not quite, and the one that does ask what you want gets marked as a duplicate and the link goes to one of those 12. Aaaaaaaaagghhhggggg!!
Ok I'm composed now.
4
u/mirhagk Jul 11 '18
I lost a day because Google's pub/sub just silently fails when permissions are incorrect. No error messages it just doesn't give you any messages
→ More replies (4)7
Jul 11 '18
I spent a day fucking around trying to figure out why some python code wouldn't run.
Return statement was off by a space. Fuck Python it's so unreadable.
9
u/static_motion Jul 11 '18
That's strange though, the Python interpreter is usually pretty good at locating and informing you of whitespace issues; surely it was hinting at what the problem was and where it was.
7
1
41
u/jalerre Jul 10 '18
Coding is 10% writing code, 90% debugging. Or in my case 100% debugging since I just copy and paste code snippets from SO until something works.
12
u/PC__LOAD__LETTER Jul 11 '18
This is the intern I’m mentoring at work.
Don’t be like Timmy.
5
u/kidmenot Jul 11 '18
This is also a colleague of mine who is definitely NOT an intern.
Sometimes he asks me questions that make me wonder if he ever actually grasped any part of programming.
Sometimes he will come to me saying that he's trying to do X but an exception is thrown. When I ask him what the error says, he doesn't know because he didn't actually read it.
Sometimes he will come to me saying that something doesn't work and, when I suggest he checks the log to see if the top-level exception handler caught something, he always says "gee, I did not think of that".
Sometimes he will show me an exception to help him locate the offending portion of the code, because apparently he doesn't know how to read the goddamn stack trace that's right in front of him, even though I always slow down to show him the steps.
In all these ~9 years I have not given up on him once, I always ask the same questions hoping he'll figure the pattern out at some point.
Don't be like Nick.
→ More replies (2)1
1
32
u/RigDirty Jul 10 '18
What's worse is when you're using Python or something and it sends you to the wrong line and you assume the error's there so you spend like an hour trying to figure out the problem where there's not one on that line of coding :/
24
u/Midvikudagur Jul 11 '18
Try working in oracle database packages. "PROBLEM WITH LINE 405 IN THE CODE!", and it turns out that the actual problem was 400 lines later, because there was a comma before SELECT.
Not that I'm bitter about it or anything...
22
u/kodedemonmikalhanson Jul 10 '18
Pro Tip #542: don't trust the debuggers.
10
u/Slow33Poke33 Jul 10 '18
Yeah, I've had tools that report line numbers super fucked.
Either the copyright header at the top isn't counted, or it decides to inline replace code, or something other than the actual line in source.
144
Jul 10 '18
Whats up with all the front-end stufd, the missing ; which makes someone not sleep for 4 days and praising the achievement of being able to compile your code?
129
Jul 10 '18
Do you not use an IDE?
53
38
Jul 10 '18
I used to use notepad when I first started. No, not notepad++ with intellisense, but default text editor notepad. I was such a sweet innocent child back then
24
u/tomtom070 Jul 10 '18
My first java textbook actually advocated not using an IDE at the beginning because it's to easy an you don't learn as much with it. But I failed compiling the program via command line and downloaded Eclipse, so...
→ More replies (1)17
u/TGotAReddit Jul 11 '18
My first college would not let you use an ide at all more intelligent than notepad++ (but a linux one they had called kate or the other one uhhh gedit?). And we had to code on their computers, not our own for at least the first two semesters. I now make people cringe because i have no idea how to use an IDE and never use one to do more than notepad++ can do. (So no compiling, no jumping to a definition, no renaming variables automatically.)
→ More replies (9)8
u/MSB3000 Jul 11 '18
I started with Word. Then one day, Word saved my code as a .doc, but with a .txt extension, and broke everything. That's when I learned to use plain-text editors.
89
u/BoltActionPiano Jul 10 '18
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Free semicolons for /r/programmerhumor users, take as many as you like to solve your daily difficult programming issues.
54
10
u/Pun-Master-General Jul 10 '18
My programming issues of the day don't involve semicolons at all, sadly.
Cries in Go
5
24
49
u/indigo121 Jul 10 '18
Front end stuff is inherently more accessible to outside audiences and thus is more likely to be upvoted. Go ahead and make a meme about architecting a systems backend, see how well it performance. The making a big deal out of compiling is a type of self deprecation common in millennial humor, where you indicate a lack of confidence in your skills by treating minor successes as major achievements. I suspect it evolved as a sarcastic response to the whole "everybody gets a trophy" meme but I'm not a sociologist.
15
u/bwaredapenguin Jul 10 '18
Sometimes it's just reassuring to see other people struggle with the same stupid mistakes.
→ More replies (10)2
4
Jul 10 '18
Just started messing with Javascript. Why do some lines need trailing semicolons and some lines don’t?
10
u/Jetbooster Jul 10 '18
Es6+ JavaScript don't give a shit. No lines need semicolons (at the end). Almost every style guide or linter will enforce it though.
What you maybe are seeing is some lines are utilising promises, or some other chained function:
functionCall() .then(...)If you were to put a semicolon in here it would break, because the .then() is dangling. It's technically a one liner over two lines.
4
u/thelights0123 Jul 10 '18
You don’t need semicolons at all, but some style guides (e.g. the the common AirBnB one) require them, and I would recommend them. Also, if you’re continuing lines or using a Fluent-style interface, you sometimes chain functions like this:
let xyz = new MusicPlayer() .loadFile(“song.mp3”) .setOutput(MusicPlayer.SPEAKERS) .play(); // Note how the only semicolon is on the last line, because the functions are chained // Or: let reallyLongLine = new ExampleFunction(“some random filler text”, 1234567890, “some random filler text”, “some random filler text”) .toUpperCase(); // Used to break apart lines to prevent wrapping/scrolling // Also, when using objects: let testObject = { value: “key”, anotherValue: “otherKey”, // recommended trailing comma so that commit diffs don’t get screwed up by adding items };→ More replies (1)5
u/WikiTextBot Jul 10 '18
Fluent interface
In software engineering, a fluent interface (as first coined by Eric Evans and Martin Fowler) is a method for designing object oriented APIs based extensively on method chaining with the goal of making the readability of the source code close to that of ordinary written prose, essentially creating a domain-specific language within the interface.
[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source ] Downvote to remove | v0.28
7
2
u/HoldTheDoor-_- Jul 10 '18
PYTHON FOR LYF!
30
u/MephySix Jul 10 '18
Traceback (most recent call last): File "<comment>", line 1, in <reddit> NameError: name 'LYF' is not defined11
→ More replies (3)1
Jul 11 '18
I've really never had the missing ; error that didn't make obvious sense, but I've had WEIRD UTF-8 source code comment errors. They are supposed to write in English, but randomly we discovered some CJK UTF-8 errors. Seriously 100 hours for one bug.
49
Jul 10 '18
This is me. Are you me?
19
u/AlFasGD Jul 10 '18
This is me. Are you me?
16
u/MarkusBerkel Jul 10 '18
This is me. So, yes; all of you are me.
17
u/AlFasGD Jul 10 '18
You broke the recursion
8
u/MarkusBerkel Jul 10 '18
if ( isActually(me) ) return;
So, really, all of you were “me” imposters...
→ More replies (3)3
7
11
Jul 11 '18
Fuck this is too real.
It's even worse when I'm trying to get something to work on the back-end. Spend an entire week working on authentication, when I show my wife, she's like, "What's the big deal?"
It fucking works, that's the big deal!
18
u/Duese Jul 11 '18
What people think coding is...
What coding actually is...
Write some functionality which does exactly what I want it to do in about a day and using 200 lines of code. Two weeks later and it's up to 4000 lines of code with all 3800 additional lines of code being nothing but error handling, data checks and input verifications.
2
8
36
Jul 10 '18
In what language do voluntarily program where you forget a symbol and the compiler/transpiler doesn't tell you?
64
49
Jul 10 '18
If(!booleanVar) and if(booleanVar) differ by one character, are both syntatically correct, and are functionally complete opposites.
43
u/MettaurSp Jul 10 '18
if (value1 == value2) vs if (value1 = value2) is another terrible offender that can send you searching in completely different sections of code.
23
u/thestonedturtle Jul 10 '18
A good IDE would warn you about assignment inside an if condition
→ More replies (8)9
u/Albi_ze_RacistDragon Jul 11 '18
‘if (a == b)’ vs ‘if (a === b)’ would probably be a better example
→ More replies (1)3
u/edcRachel Jul 10 '18
This one got me before. Led to me and my boss spending an all-nighter trying to track it down. Felt so stupid when I found it.
2
1
u/Rasalas8910 Jul 11 '18 edited Jul 11 '18
I had this. Yeaaars ago. Even before I actually learned programming professionally. It was in Visual Basic. It didn't tell me. The code was colored correctly. I can't remember where exactly it happened. I think I wrote a
,instead of;or something similar (something next to each other on the keyboard and very similar looking). Even though I can't remember or think of any piece of code where this could happen. Maybe it was inside of a hardcoded SQL query? [don't hit me])Another time I accidentally used
<instead of>for resizing an image. And until this day I don't know why it worked for a while.(Edit: for some reason I can't see the < sign on my phone. Escaping doesn't work)
1
u/PC__LOAD__LETTER Jul 11 '18
Compilers have come a long way but they aren’t psychic. A programming language is you telling the computer what to do.
Good compilers / languages will allow you to crank up the warnings and force your code to conform to style that’s not technically required but can save a bunch of headaches like this. That’s why it’s generally good to turn the warnings all the way up and leave them there.
→ More replies (7)1
u/TheTerrasque Jul 11 '18
def speaksy(): duck = "quack" elephant = "toots", swede = "vaseierni" cat = "meow"One of them will not be like the others
→ More replies (5)
10
5
u/kbielefe Jul 11 '18
I remember one time spending three days struggling with a single function in a driver I was writing, and the only external indicator of success was a pattern sync LED on a test set lighting up. I took a picture of that LED and posted it to facebook, and pretty much spent the rest of the day restarting my software to watch it blink.
4
4
u/Hobi_Wan_Kenobi Jul 10 '18
Welcome to my last 5 work days. Except I'm still at it. Still haven't found that thing I've got wrong.
5
u/kodedemonmikalhanson Jul 10 '18
Might be time to isolate the problem with some proof of concepts and prototypes.
→ More replies (5)
4
u/oompaloompafoompa Jul 10 '18
Whats up with 1(one)? I've seen it used a lot but I'm not sure why.
1
4
u/DrFAIL_ Jul 10 '18
Can confirm. Looked through 1000+ lines of code for over two hours. Found an extra semicolon. Laughed my ass off at two AM, then collapsed in bed.
13
3
u/hangfromthisone Jul 10 '18
echo user:pass | base64
(2 hours of existential crisis later)
echo -n user:pass | base64
3
Jul 11 '18
I used to think programming was just if and else statements...
Once I actually learned that elif existed I shit myself
2
2
u/Camster9000 Jul 10 '18
I had to make a button translator for a coding class, it took me 2 hours to make it but it didn't work. It took me 4 days to realize I misspelled JavaScript
2
u/princess_programmer Jul 10 '18
I literally wasted like 2 hours today because I forgot how printf format strings work -_-
2
2
2
u/SurrealClick Jul 11 '18
I'm making a game in Unity and I've spent 3 hours trying to making a gun shoot out bullets! Send help!
2
u/odraencoded Jul 11 '18
That's not a good coder. A good coder goes through this cycle once every 5 minutes not once in "nearly a hour." You fix one bug, cry, that fix made another 2 bugs, so you fix them and do some more crying, and just keep on raging crying happiness until the programming gets done and you get a neat program.
0
Jul 11 '18
[deleted]
2
u/odraencoded Jul 11 '18
Trying to make my web app support all device resolutions from 320x240px to 1300x900, landscape and portrait, using a hundred of media queries conditions is probably the closest I'll ever get to solving a rubik's cube.
2
Jul 11 '18
A software is like an abstract painting, only the artist knows the real intention. Others can only speculate.
2
u/Nitr0Sage Jul 11 '18
No what it actually is, checking stack-exchange to see if there is a solution to your problem.
2
2
1
1
1
u/sleepybearjew Jul 10 '18
This hit too close to home for me. Was up till midnight trying to get express to use sass. Finally got it working and just sat there hitting refresh watching it work (just learning basics now)
1
1
1
Jul 10 '18
And next time something like that happens you just cannot remember what you did to get it working ;-;
1
u/whitey-ofwgkta Jul 10 '18
Focus on one tiny detail or move on to more important work?
Spends 3 hours lining something up with the 2 other things done so far
1
Jul 10 '18
Too relatable. I’ve spent two days at work on a dropdown box and it shows no signs of working the way I want it to
1
u/chrispypatt Jul 10 '18
Okay is stuff like this actually true for other coders too or is this just a joke and really I'm just very bad at what I do?
3
u/izuriel Jul 10 '18
The other day I was working on integrating TokBox via OpenTok and I was adding in support for showing a video as “off” when the user turned off publishing. Well the video that was supposed to be off was off so that was awesome. But the video that was supposed to be in was off too (but kind of looked like it was on). I dig for hours.
Turns out. When TokBox doesn’t detect camera hardware it doesn’t publish a video so the hours spent debugging were for naught. Tested on a system with a camera and it worked.
Never occurred to me.
1
1
u/chrisrazor Jul 10 '18
It's always one fucking symbol that's wrong. Spent a fair while yesterday trying to debug a correct line that was throwing a weird error because there was a single instead of double equals sign two lines below it.
1
1
1
1
1
1
1
u/triggerhappy899 Jul 11 '18
I spent an hour today because I’m a fucking idiot and was trying to make A equal B by writing
B=A
A was undefined before this statement and it was driving me up the wall why both were undefined... of course in my mind I was blaming JS thinking it was some weird JS thing.
1
u/BillFox86 Jul 11 '18
Whyyyyyy does it not work?!? Omg it finally works... Yay onto the next broken function.
1
u/vwibrasivat Jul 11 '18
Trying to make a mobile activity work in a way that is just slightly complex -- like it slides between panels on user swipe.
When it works (300 loc later) you will be crying at midnight.
1
1
1
u/thaolax2 Jul 11 '18
I've spent the last 2 days wondering why my Ajax call wouldn't display events in calender in IE. In my query I had mm DD YYYY when it should have been mm/dd/YYYY. Tears of joy were shed. I feel this.
1
1
1
1
u/Mechafinch Jul 11 '18
I predict the bottom one will be me when I start trying to do actually interesting stuff with game engines
1
1
1
1
u/nikhilbhavsar Jul 11 '18
I'm not a programmer in the strict sense (I design websites), but I honestly laughed out loud
1
1
u/Arancaytar Jul 11 '18
midnight
Look at this casual who finishes coding while it's still dark outside.
1
1
u/mostmicrobe Jul 11 '18
I have absolutely no idea what coding is, it might aswell be magic to me. I'm just subbed here cause I kinda like not getting all the jokes.
1
1
u/Hand_Sanitizer3000 Jul 11 '18
as a new developer, its always reassuring to come to these threads and see I'm not the only one with these exact problems
1
u/DethRaid Jul 11 '18
That's frontend dev.
Backend dev is spending hours trying to optimize your database access only to realize that the person who had set up the database used horrible settings and the whole thing could have been fixed with a config file change
1
1
u/doubletwist Jul 11 '18
Similar issues as a sysadmin. I spent three weeks trying to get sssd.conf working to authenticate against AD. Turns out the problem was just a space after a comma.
ie.
Fails:adservers = server1, server2
Works:adservers = server1,server2
The mixed feelings of anger the it was such a stupid mistake, and the sheer joy of it finally working were incredible.
1
1
1
1
1
1
u/ZiiC Jul 11 '18
I have moments like this, and I think these stupid trivial tasks that take me hours to complete make me the most incompetent developer ever. Why does my work even pay me lol.
1
u/BowserKoopa Jul 11 '18
What you think: 'that guy must be stupid for deploying broken code'
What I think: 'who the fuck configured the database differently in production?'
1
1
1
1
Jul 11 '18
Aaaah, but don't forget folks... any time now, ANY TIME we will stop coding altogether. Computers will be so advanced, they will just magically know what to do. Can't be more than a few years now... ANY TIME! So don't even bother learning to code. Any time!
1
u/JustALittleAverage Jul 11 '18
Putting a , instead of a . or forgetting a ; still gives me nightmares.
1
1
1
u/TheMcDucky Jul 11 '18
I think people just don't think too much about what programming is. Maybe they know we write "code", but beyond that I think most treat it as a black box of sorts; they don't care about what's on the inside as long as it keeps their apps and things running.
1
u/aydie Jul 11 '18
Reminds me of the day I spent debugging a complex if condition in a C program.
if (very very complex condition);
{
do something;
}drove me absolutey nuts. I actually had a colleague check it, since I just couldn’t find the issue. (didn’t trigger a compiler warning)
1
1
u/jujuspring Jul 11 '18
I'm refactoring at the moment and it hurts cause I'm literally breaking things.
1
1
u/kolosyamba Jul 11 '18
Dev god will take us all to his heaven without bugs one day. We are going through the crucifixion
1
1
u/Wings0fIcarus Jul 12 '18
I once wrote a property setter like
set { value = *variable name* } And could not for the life of me figure out why I was constantly getting the wrong result.. after about half a day of rewriting other parts of my project, I finally realized I had the damn thing backwards...
1
1
u/my-best-guess Jul 10 '18
HTML/CSS is "coding" now?
7
Jul 10 '18 edited Mar 09 '26
This post has been permanently deleted using Redact. The motivation may have been privacy, security, data collection prevention, opsec, or personal content management.
practice engine saw command subtract cheerful crowd nutty rob joke
3
u/BartWellingtonson Jul 10 '18
This could totally be done with just HTML and CSS using checkboxes and CSS transitions.
But that begs the question, if a language is versatile enough to be confused with other "real" languages, does that not make it "real" coding?
→ More replies (4)
1
Jul 10 '18
Works with div in HTML is 95% crying and 5% praying
2
1
u/whataspecialusername Jul 10 '18
Some people think coding is unrewarding repetitive drudgery. It turns out that reading reposts on reddit is worse.
2.8k
u/TechyDad Jul 10 '18
Followed by clicking it one more time before going to bed... And it stops working for no apparent reason.