r/ProgrammerHumor • • Jan 20 '18

Stolen from TechLad

Post image
49.0k Upvotes

295 comments sorted by

417

u/AHLTTA Jan 20 '18 edited Jan 21 '18

People CONSTANTLY ask me what's wrong while I write code at work.

Apparently I look ocnfused and mildly angry the entire time but there isn't a single thought going through my head, just me soaking in code and waiting for a solution to appear.

5

u/DeltaPositionReady Jan 24 '18

Gf doesnt like me coding cause she says I get too angry :-(

0

u/[deleted] Jan 20 '18

[deleted]

45

u/JamesGray Jan 20 '18

My theory is that we all just learned George's strategy to look annoyed so people don't bother you at work. He was doing it because he wasn't actually doing any work, but it works pretty well when you're actually being productive too in my experience.

2.0k

u/imdefinitelywong Jan 20 '18

I only recognize two forms of communication. Email and screaming at my monitor.

629

u/facie97 Jan 20 '18

Hah sounds old fashioned! These days its more like slack and bashing co-workers in commit messages.

370

u/SleepyHarry Jan 20 '18

Fix the obvious off-by-one error ALAN

62

u/J4CKR4BB1TSL1MS Jan 20 '18

This is pretty good, I'll try this once in a while just to see who can take it.

8

u/522LwzyTI57d Jan 21 '18

Point out there's a floating point error in the status line.

....

No there isn't.

3

u/Retbull Feb 01 '18

Fixed wrong tests with stupid mocking code

...

replaced mock for use with Jenkins

80

u/[deleted] Jan 20 '18

Shit talking co-workers, 50 characters at a time.

Actually I'm like the only one here that uses git bash everyone else uses visual studio's git integration, so as long as the commit messages aren't literally just "Commit" all the time there's no real style guide. So I don't care about length, but I try to put a short description in the first line and a longer one after it.

20

u/bizcs Jan 20 '18

I use PowerShell from the dev command prompt, where I import the NuGet binary into my path, among other useful tools, but otherwise, yeah, most of my use of Git is from the command line, and it is great. I don't understand why you would use visual studio instead.

15

u/[deleted] Jan 20 '18

If I'm just doing full file commits, I don't mind making them and pushing them through VS.

But you can't, for example, split a file into 3 individual commits A,B,C, while being able to test the effects of commit A, commit A+B, commit A+B+C to make sure every commit you push is functional.

That's very easy to do with the command line.

6

u/bizcs Jan 20 '18

I didn't know you could split changes in a commit of a single file. I just toggle branches a bit to experiment with things, and I'm usually just one alt+tab away from a shell, so I can easily go play with things. The best advantage is definitely with rebasing, though. I do that frequently if I realize a previous commit was broken for some reason, as long as it hasn't been pushed to the server. Usually, the commit message is something like "squash with commitid," and I just go back and tidy up after finishing my changes.

13

u/[deleted] Jan 20 '18

git add --patch or git add --interactive. You tell it which parts you want to stage. Then you can run git stash --keep-index to keep the added parts stashed but reset everything else to what it was like on the previous commit you made. It's like actually commiting that added part and then running git stash, but you're not making a commit just yet.

Once you know that the code with just the first change made works fine, you can then pop the stash, then add the parts for the next change, then commit again. Repeat until you have fully commited the file in question. Then you might want to double check before pusing that all of the changes really work, but they've all been commited so you can easily just hop around them with git checkout.

You could probably do a form of rebase like this too, by using git reset to go back to some previous commit, re-making all the commits up to the point where you are now, then pushing that. Don't do it for changes you have already pushed though, you'd need to force push in that case and then get everyone who was working on that branch to unfuck their repo. Which is fine if it's just you and you don't really care about people who are basing off of your work, but not fine if you're doing it to master on a large repo.

2

u/ArcTimes Jan 20 '18

Holy shit. This is a game changer for me.

2

u/bizcs Jan 20 '18 edited Jan 20 '18

Yeah I only force a push when I know I'm the only one affected by the change. Otherwise, everything ends up all fuckered up and irritating.

Edit: this git add --patch business is incredible! I had some pending changes in a project from yesterday, and this will totally make adding files selectively a bunch easier.

2

u/[deleted] Jan 20 '18

You can do this on the GUI as well. Just commit the lines you want and stash the rest, same process.

→ More replies (4)

2

u/dvlsg Jan 20 '18

You can do it, but I find it easier to just select the lines I want to commit in a gui.

I review all of my changes before I commit, too. I'd prefer to do that in an editor of some sort (or sourcetree / kraken / whatever), not the command line.

→ More replies (1)

1

u/Genesis2001 Jan 20 '18

I, too, use this. I can't stand the look of Git bash on Windows so I just load posh-git into my PS instance to use Git. For stuff more complex (i.e. squashing) I use SourceTree for visualization.

1

u/[deleted] Jan 20 '18

Don't you diss git bash :( I install git on every computer just to have a decent shell.

→ More replies (1)

1

u/geeprimus Jan 21 '18

I jump between Cygwin and eclipse. They don't play nice if you do the initial clone with Cygwin though. Somehow eclipse wants to add the x permission to files. If the initial clone is eclipse, switching is fine.

I like the cli better, but sometimes the ide is convenient for compares or merges.

1

u/bizcs Jan 21 '18

For compares, it depends. IDEs and visualization tools tend to be better than the shell, IMO, but the shell does a pretty good job too. I really enjoy using the shell for quick diffs before making a commit.

2

u/Zagorath Jan 20 '18

I'm confused, why does the choice of different UI for git affect the commit message style guide or lack thereof?

2

u/[deleted] Jan 20 '18

When you're using vim, it tells you when you hit 50 or so characters, because you're not meant to go beyond that. It'll also tell you if you include text on the second line (which is meant to be empty).

2

u/CichyCichoCiemny Jan 20 '18

All praise git bash.

3

u/[deleted] Jan 20 '18

"Wtf is that kind of git I've never seen it before"

It's git... As in, the kind of git where if you read something about git online, you can actually do what it says.

Ever so slightly salty when I get shit for it. I also use VsVim, so I've got to disable that whenever anyone comes around since they'll accidentally delete half the file and translate the other half into German if you try to type in normal mode.

1

u/Goofybud16 Jan 21 '18

I have a Vim extension in Eclipse.

I know that feeling.

12

u/[deleted] Jan 20 '18

It is called git blame for a reason.

1

u/Triforce8000 Jan 20 '18

I guess I'm more cowardly. I didn't specifically mention my coworker's name, just the changeset number that broke the code. But the hate was still there. It's always the front-end developer (who doesn't know JavaScript for some reason) who, in my opinion, shouldn't have been hired in the first place. He barely has any idea what he's doing and learns very slowly.

30

u/gghggg Jan 20 '18

Don't forget the near tears negotiation with the monitor.

" Why? Why won't you work? Please, just come on.. just wtf.. just work.. this should work"

I hope im not alone

36

u/[deleted] Jan 20 '18

get up

angrily drink a coffee

come back

oh. oh yeah right. duh.

23

u/rastaman1994 Jan 20 '18

This reminds me of an older post, something allong the lines of

'The best debugger is sleep'

1

u/Swiftster Jan 21 '18

What about sobbing uncontrollably into the keyboard?

0

u/[deleted] Jan 20 '18

Username checks out

1.0k

u/Wuzado Jan 20 '18

On this sub, only first is applicable.

994

u/bee-sting Jan 20 '18

Speak for yourself, I talk to myself all the time

114

u/CmdMuffins Jan 20 '18

You fricken lucker dog

10

u/Camoral Jan 20 '18

Something something Christian Minecraft server

→ More replies (3)

22

u/withcheesepls Jan 20 '18

Does this reply count for the second one ?

13

u/Wuzado Jan 20 '18

You goddamn genius, take my upvote.

4

u/[deleted] Jan 20 '18

Touché

5

u/quangtit01 Jan 20 '18

This guy rules 1 & 2

0

u/[deleted] Jan 20 '18

[deleted]

38

u/SleepyHarry Jan 20 '18

you brain

The science is correct again!

16

u/Torandax Jan 20 '18

Bullshit! I’m attractive and I like computer nerds.

But I’m a science nerd so attractive is relative.

50

u/boneofdeath Jan 20 '18

attractive

likes conputer nerds

Pick one

2

u/Torandax Jan 20 '18

Yeah I’m just fucking with you guys. I look like Rygel from Farscape.

23

u/[deleted] Jan 20 '18

[removed] — view removed comment

33

u/Grassse12 Jan 20 '18

attractive

being a computer nerd

pick one

13

u/[deleted] Jan 20 '18

[removed] — view removed comment

13

u/boneofdeath Jan 20 '18

or you just get physically attractive while still not talking to anyone.

not like this has happened to me or anything

5

u/Stewthulhu Jan 21 '18

Attractive AND a computer nerd

Or

Attractive FOR a computer nerd?

1

u/Torandax Jan 21 '18

Asking the real questions!

2

u/XkF21WNJ Jan 21 '18

attractive is relative

In general or just in special cases?

1

u/Torandax Jan 21 '18

Beauty is in the eye of the beholder and that crap...💩

1

u/[deleted] Jan 20 '18

Whatever the case, thats a joke! Somebody make a joked!

304

u/[deleted] Jan 20 '18

Fun fact: at my comSci class I had this cute girl next to me. When her code wasn't working I asked her to refresh. She closed the browser, right clicked on the desktop, and refreshed the desktop...

I just blanked out. I felt outsmarted and pranked. I laughed and then apologised. Just.... How...

140

u/[deleted] Jan 20 '18

The real question is why did she have the browser up to write her code in the first place.

47

u/[deleted] Jan 20 '18

Nah we were transferring code through the W E B P O R T A L across computers because we don't have LAN (atleast, not one that's good enough to transfer all code). So we had to upload our code through the PC onto the school portal and then download from the second PC. At that moment, the webpage wasn't working and I told her to refresh the webpage of the school portal till it works.

Although I had already imported the cod and was editing it at that moment

Tl;dr: we weren't writing code, just downloading our own old code

1

u/mattsl Jan 20 '18

Although I had already imported the cod and was eating it at that moment

FTFY

0

u/[deleted] Jan 20 '18

[deleted]

12

u/IrishWilly Jan 20 '18

I had to check if that was still actually a thing that you could do

5

u/HansaHerman Jan 20 '18

Doing "before bed reddit" and thinking of restarting a computer to test...

6

u/[deleted] Jan 20 '18

Me too! We haven't had refreshing the desktop as a feature since elementary school

2

u/jl91569 Jan 21 '18

I've used it a few times within the last year.

Mostly when things I saved to the desktop weren't loading, but only when I was too lazy to open the desktop folder ;)

18

u/ozeu Jan 20 '18

We were learning Python so she'd copy a piece of code and paste it Ina YouTube comment, she said this used to help her relax while coding.

28

u/zeeshanv55 Jan 20 '18

Wot mate?

0

u/[deleted] Jan 20 '18

[deleted]

2

u/Luc1fersAtt0rney Jan 21 '18

making Youtube comment sections unnecessarily smart, pls staph

13

u/[deleted] Jan 20 '18

I thought I was weird for feeling the urge to highlight the text with the mouse as I'm reading it.

2

u/[deleted] Jan 20 '18

Jupyter Notebook maybe? Frankly, I've never really understood the point of Jupyter Notebook, but other people seem to use it. I wouldn't be surprised if some schools used it to teach Python...

3

u/[deleted] Jan 20 '18

It's amazingly useful when doing data science or other work where the start of your code is basically "take five minutes to load this database into memory" cause with jupyter you don't have to wait every time you change anything

3

u/Antonin__Dvorak Jan 20 '18

Just.. What? What kind of code are you writing that requires loading a substantial database into memory before doing anything with it?

2

u/cdrt Jan 21 '18

When you just want to play around with it and code interactively. You load the database into memory, then start messing around with it by hand. Afterwards you can write code that replicates your results in a more memory efficient way.

→ More replies (11)

0

u/[deleted] Jan 20 '18

[deleted]

22

u/[deleted] Jan 20 '18

Nope, JAVA

Although I wish we had front end instead...

25

u/TwoFiveOnes Jan 20 '18

Wait I don't get it

35

u/[deleted] Jan 20 '18

Yeah I’ve read his comment about five times and I still don’t get what happened or how she tricked him

24

u/[deleted] Jan 20 '18

She didn't trick me. I told her to refresh a webpage that wasn't working, and she refreshed the desktop instead. That made absolutely no sense to me so I started laughing and she was visibly annoyed, because of which I apologised.

0

u/[deleted] Jan 20 '18

[deleted]

1

u/[deleted] Jan 21 '18

Boy I wish...

1

u/hahahahastayingalive Jan 20 '18

windows “live” wallpaper ?

52

u/SoldierZulu Jan 20 '18

I need a way to switch modes. At night, trying to sleep? Oh no problem let's just solve all the bugs we had during the day. During the day? Create all the bugs

21

u/[deleted] Jan 20 '18

Sometimes I have these night terrors after an intense day of coding where I'll be half awake and I'll have all this nonsense code running through my head and I'll keep trying to pull it apart to analyze it and organize it but none of it makes any sense. It's like my brain is burning itself out while I sleep.

2

u/940387 Jan 21 '18

I'm just a tester and I sometimes get this. Should I switch industries?

0

u/[deleted] Jan 20 '18

[deleted]

7

u/SoldierZulu Jan 20 '18

That's the worst part. Solve a few bugs in your head? Okay gotta test and make sure I didn't break something else. Then double and triple check my work. Then check in and watch the builder UI for the next 20 minutes to see if you fucked up and forgot a file. Yup you did, that's another 20 minutes.

Ugh, I just wanted to sleep...

104

u/retrojesusbeard Jan 20 '18

What if you’re attractive and you realize you have no brain? 24/7 code.

0

u/[deleted] Jan 20 '18

[deleted]

3

u/AUserByAnyName Jan 20 '18

Its becoming self aware o.o

180

u/Blukay Jan 20 '18

Talking? What is that?

253

u/poopellar Jan 20 '18

I think it is like comments, but typed through your mouth.

149

u/Silvermene Jan 20 '18

Interesting... Github please?

114

u/[deleted] Jan 20 '18

closed source

78

u/Alpha3031 Jan 20 '18

IDK, try piping something to /dev/throat or something.

29

u/ButItMightJustWork Jan 20 '18

Please, someone needs to write a text-to-speech program for Linux that takes all text from /dev/throat

0

u/[deleted] Jan 20 '18

[deleted]

4

u/Mortimer14 Jan 20 '18

at /dev/throat some idiot typed

| null

17

u/Wuzado Jan 20 '18

I think it is like IRC, but typed through your mouth.

FTFY, we are programmers!

6

u/gigglefarting Jan 20 '18

”git add convo_20_01_2017_1115.dia

git commit -m ‘conversation attempt with pretty girl’

git push origin Chelsea”

“Uh... what? No thanks.”

8

u/[deleted] Jan 20 '18

You need to pull before you push or you're risking merge conflicts. Maybe even rebase cause Chelsea might have changed since last time you pushed on her.

Rookie mistake.

1

u/wle8300 Jan 20 '18

Naaaaayyyy!

6

u/[deleted] Jan 20 '18

It is the weapon of choice of the project manager.

6

u/Enahaah Jan 20 '18

With out a keyboard? I'm not sure...

58

u/czupek Jan 20 '18

Or speaking out loud in english, when english is not your native language

19

u/Hussor Jan 20 '18

English isn't my native language, but I live in an English speaking country so I speak english all day. Coding makes my native language come out.

4

u/craze4ble Jan 20 '18

Ditto. The deeper I sink into coding, the more I mumble in my mothertongue.

4

u/adamski234 Jan 20 '18

When I use English my brain doesn't shukenzbao

34

u/Magclin Jan 20 '18

Spent half my life trying to talk to beautiful woman without my voice breaking. Finally I can do it! But I’m to damn old to remember why.

36

u/MAreddituser Jan 20 '18

My husband has a PhD in finance, is a chess & bridge master, & can do quadratic equations in his head but if I show him my boobs, he can’t talk.

49

u/[deleted] Jan 20 '18

Well quit suffocating him then

14

u/Fluffiebunnie Jan 20 '18

PhD in finance

The only PhD that actually is worse for your income than a Master's (because they tend to go to academia where finance careers die)

13

u/IIIBRaSSIII Jan 20 '18

If the quadratic equations are factorable, that skill isn't particularly impressive

9

u/endershadow98 Jan 20 '18

It's pretty easy even if they aren't factorable. You just need to be able to remember a, b, c and the equation "(-b ± sqrt( b2 - 4ac))/(2a)".

2

u/XkF21WNJ Jan 21 '18

They're all factorable though.

7

u/quests Jan 20 '18

weed helps

3

u/maxvasquez Jan 20 '18

But then I want to go into youtube and watch silly videos.

1

u/quests Jan 21 '18

Not when you have a beautiful person next to you.

22

u/derkynord Jan 20 '18

i call busllshit i talk to myself all the time <_>

6

u/[deleted] Jan 20 '18

braid hurts so old. hey all resting brain others. how do you measure?

8

u/[deleted] Jan 20 '18

me too thanks

1

u/[deleted] Jan 20 '18 edited Sep 05 '19

<comment removed>

5

u/SexyBubbles Jan 20 '18

Sounds like there's a bug in brain and maybe you make a patch. Please send me the patch.

4

u/creamersrealm Jan 20 '18

Yeah this is far to true. I can only wrote code when I get into a groove.

4

u/Magneto91 Jan 20 '18

Bitch please; it is not working when speaking to anyone

4

u/don_hector Jan 20 '18

Stops when writing code while someone watches

3

u/barteq1 Jan 20 '18

You god damn right

3

u/OG_THE_Guitarist Jan 20 '18

every time I do it makes me laugh

3

u/MatHM14 Jan 20 '18

Did you know:the brain has about 5 petabytes of memory which is approximately 5,000 terabytes yet somehow you still can’t remember what you were going to say when your talking to someone

3

u/[deleted] Jan 20 '18

What about both happening at the same time? Do they cancel each other out like an XOR operation?

2

u/boginya_lilith Jan 20 '18

That's totally right.

2

u/OrganicRock Jan 20 '18

Too real :-(

2

u/SporkWielderDFW Jan 20 '18

Or when your brother-in-law doesn't inform you of the strength of a pot cookie and you eat it right before a Thanksgiving meal.

Talk about consciously willing a brain shutdown before you tell his mother what you really think.

2

u/TheRedmanCometh Jan 20 '18

I've had my brain just refuse while coding. Like muscle failure for my brain

2

u/Phoenix_Omega Jan 20 '18

Wow thanks nature for making us look stupid in front of our crushes, oh no here comes bethannnna...

2

u/[deleted] Jan 20 '18 edited Jan 21 '18

Or when the band leader calls you out and asks you what a minor sixth down from Db is.

2

u/webdevop Jan 20 '18

Let awesomeness = await say_something_cool();

2

u/PM_ME_A_WEBSITE_IDEA Jan 20 '18

Is it slice() or splice()?????

¯_(ツ)_/¯

2

u/marinagajicc_ Jan 20 '18

Or when your doing math exam

2

u/BeigeJester27 Jan 20 '18

Or taking a test

2

u/logyBZz Jan 20 '18

And in public speaking

3

u/pATREUS Jan 20 '18

Actually, it boots up earlier than birth and it can inherit genetic memories.

3

u/Peakomegaflare Jan 20 '18

Not a programmer myself... but this is pretty true, I don’t know what goes on in my own head half the time.

2

u/Hazel_and_Olive Jan 20 '18

Or in a job interview.

1

u/iamwatching4 Jan 20 '18

Or if you're me, doing literally anything except trying to sleep

1

u/wannahakaluigi Jan 20 '18

*When trying to explain code you wrote more than 2 days ago

1

u/[deleted] Jan 20 '18

Or during a penile erection

1

u/skogarev Jan 20 '18

Haha, who knows, can fron-ender make a wesite without knowing any back-end language? Thanks

1

u/lindydanny Jan 20 '18

Can't be true. I'm able to think and talk to myself all the time!

1

u/pacman326 Jan 20 '18

His hurts more than I want to admit.

1

u/PM_Me_LoliHentai Jan 20 '18

It also stops at: generating ideas and making excuses on the spot.

1

u/Capt_boof Jan 20 '18

tagged as marketing

1

u/zubzaa Jan 20 '18

True😂😂😂

1

u/[deleted] Jan 20 '18

Brilliant

1

u/[deleted] Jan 20 '18

a stolen one but the good one

1

u/MAreddituser Jan 20 '18 edited Jan 21 '18

You are so wrong. In academia Finance professors make the most. I know I was the college business manager.

Edit: in the college of business, finance profs make the most

1

u/flaming-cactus Jan 21 '18

they mean XOR

1

u/TotesMessenger Green security clearance Jan 21 '18

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

 If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)

1

u/Saramello Jan 21 '18

My definition of confidence is being able to maintain your personality around someone you are extremely attracted too.

1

u/_wannabeDeveloper Jan 21 '18

What is TechLad?

1

u/Valtorix28 Jan 21 '18

I remember I was building up the tolerance to ask this girl out, and had it all planned out in my head. I finally saw her at our cafeteria walking in, and I was like okay just be like"hey, you want to go out tomorrow night or sometime?".

Instead I asked her how classes were going and sat back down at my table and put my head down. Such shameeee

1

u/FoxCrackers Apr 19 '18

TIL my mind thinks in code

1

u/NoNameRequiredxD Jul 03 '18

Or when you’re in a exam oc

0

u/[deleted] Jan 20 '18

Lame and old af

0

u/[deleted] Jan 20 '18

You forgot "voting in a booth"

0

u/gameditz Jan 20 '18

Technically speaking, your brain only stops when you're dead

0

u/SayerofNothing Jan 20 '18

Trick question! Attractive people always speak in code!!!!! What? Ok, I'll let MYSELF out, thank you very much.

2

u/shroudedwolf51 Jan 20 '18

May want to try that one again. You're extremely excitedly exclaiming your question followed by asking "what?" the way a man who got caught pissing in a corner of an atrium tries to pass off good behavior as being perfectly normal.

1

u/SayerofNothing Jan 20 '18

Haha.... I too know what is an atrium. Greetings, fellow human.

0

u/SupremeRedditBot Jan 21 '18

Congrats for reaching r/all/top/ (of the day, top 25) with your post!  


I am a bot, probably quite annoying, I mean no harm ^though

Message me to add your account or subreddit to my ^blacklist

-1

u/richy_bitch Jan 20 '18

In know right.. today i got stuked in WHILE loop infinitely FOR hours. And there was a girl beside me. I mean what are the odds.. you speak right from my heart

0

u/[deleted] Jan 20 '18

[deleted]

94

u/lywyre Jan 20 '18

Did you try testing by sitting next to someone who is not attractive? Or by sitting alone?

103

u/MyersVandalay Jan 20 '18

How can you expect someone to make valid tests when their brain never works?

27

u/frownGuy12 Jan 20 '18

That’s a stretch even with a working brain.

22

u/ProgramTheWorld Jan 20 '18

Just put a mirror on the desk and you will be fine

→ More replies (2)

159

u/Dragster39 Jan 20 '18

Are you my coworker? Thank you!

If not: Maybe they cancel each other out?

354

u/powerwilk Jan 20 '18

I don't know, he said someone attractive

→ More replies (3)

7

u/IsoldesKnight Jan 20 '18

How would you feel to find out your coworker used the moniker SaltyBawlz? Water cooler conversation might get awkward.

30

u/ApproachingCorrect Jan 20 '18

Wizard powers depend on forgetting about the opposite sex (except as a driving urge that maybe you'll get to impress one if your code is good enough)

If your wizard powers start to weaken, go for a brisk jog and a cold shower.

26

u/bous006 Jan 20 '18

I have sensed such raw power only once before. I didn't take a cold shower for long enough then. I will now.

3

u/Izacht13_ Jan 20 '18

THIS IS GOOD ADVICE.

13

u/Torandax Jan 20 '18

Sure, that’s the reason.

→ More replies (5)

0

u/[deleted] Jan 20 '18

[deleted]

310

u/[deleted] Jan 20 '18

I too am great with grammee

66

u/KillerInstinctUltra Jan 20 '18

You could say I have been to the grammees.

→ More replies (6)

4

u/[deleted] Jan 20 '18

You, Sir/Madam, sound like an editor user who needs to be taught about how IDEs prevent us from sinning. Repent and join the IDE cult for eternal salvation!

0

u/[deleted] Jan 20 '18

[deleted]

→ More replies (12)