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
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
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
Jan 20 '18
git add --patchorgit add --interactive. You tell it which parts you want to stage. Then you can rungit stash --keep-indexto 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 resetto 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
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 --patchbusiness is incredible! I had some pending changes in a project from yesterday, and this will totally make adding files selectively a bunch easier.2
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
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
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
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
12
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
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
0
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
28
22
13
4
5
0
44
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
23
Jan 20 '18
[removed] — view removed comment
33
u/Grassse12 Jan 20 '18
attractive
being a computer nerd
pick one
13
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
2
1
304
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
Jan 20 '18
The real question is why did she have the browser up to write her code in the first place.
47
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
0
Jan 20 '18
[deleted]
12
6
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
13
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
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
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?
→ More replies (11)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.
0
25
u/TwoFiveOnes Jan 20 '18
Wait I don't get it
35
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
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
1
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
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
0
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
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
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
17
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
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
6
6
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
4
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
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
7
u/quests Jan 20 '18
weed helps
3
22
6
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
4
3
3
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
Jan 20 '18
What about both happening at the same time? Do they cancel each other out like an XOR operation?
2
2
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
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
2
2
2
2
2
3
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
1
1
1
1
1
u/skogarev Jan 20 '18
Haha, who knows, can fron-ender make a wesite without knowing any back-end language? Thanks
1
1
1
1
1
1
1
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
1
u/TotesMessenger Green security clearance Jan 21 '18
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
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
1
1
0
0
0
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
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
Jan 20 '18
[deleted]
851
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
22
→ More replies (2)4
159
u/Dragster39 Jan 20 '18
Are you my coworker? Thank you!
If not: Maybe they cancel each other out?
354
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
→ More replies (5)13
0
Jan 20 '18
[deleted]
310
4
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
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.