Pair Programming

Ever done it? What do you think about? Is it useful, or just another HR meme?

Attached: pairprogramming.jpg (1280x960, 120K)

Other urls found in this thread:

fastcompany.com/28121/they-write-right-stuff?page=0,0
vocaroo.com/i/s00iGkGOZyWX
twitter.com/SFWRedditImages

i do it sometimes and find it extremely useful when the other person is more knowledgeable than me
if anyone wants to pair program in java let me know~

Attached: doo.png (113x135, 18K)

My collage is forcing us in C programming class to handle assignments in pairs.
Having some pre-knowladge is putting me in a shitty point where I have to make everything alone while my partner is crying 'ohh, we ned to make it as a team, explain to me everyyyythiiiing'.
I can do it, but it will be more time consuming for me than doing it alone, I have to get shit done in other classes,yo.

>tl;dr
I think it's shit, my professor thinks otherwise.(Fuck him)

I'm not a CS major, but I remember being with my friend while they did it and it was very uncomfortable so I left.

i think its gay as fuck

Modularize the entire assignment then. Have him be responsible for half of the functions, and you be responsible for the other half. Tell him what your functions do, how to call them, and what values they return, but he doesn't need to know more than that. It's your responsibility to make sure they work and give correct output, given correct input. That's all he should be concerned with. It is then his responsibility to make sure that his functions are sending correct input to your functions.

It works if both people don't have huge egos and management is aware of how it works.

You'll pick up a lot of tricks and shortcuts when you see how other competent people work. It also helps to trade off or have one person write tests while the other writes the code.

Tried it back at the college - ended up with a sloppy blowjob and having to finish 80% of the code myself.

8/10 as a team-building exercise
4/10 in terms of improving productivity

It's useful but only for short periods when you need to solve one problem.

I think it's very useful in terms of acquiring knowledge, but in terms of productivity it is rarely effective.

Only works well if the person is a close friend and has similar intelligence and coding skills as you.

>having to finish 80% of the code myself.
Been there. C programming class in my sophomore year. Had to partner up to build a web indexer. Partner hardly answers any of my texts or emails, always responds the next day with "Sorry I was at work." All our work was done in a collaborative online environment. I never even saw him in person. When we reached the deadline, I checked his portion of code, and it was a mess. He was trying to use Java libraries and call functions that didn't exist. Ended up erasing everything he wrote and doing everything from scratch. It was awful and I couldn't do much on such short notice but it worked. After that assignment was due, he just stopped coming to class completely.

If both has similar intelligence how can this be useful and more productive than coding alone?

do u wanna pair program oWo

Attached: sample_c72a2f86c5b03a6c5865dd20ab3c0741.jpg (850x1091, 287K)

>ended up with a sloppy blowjob
h-how

Extremely useful when doing non-trivial stuff as long as your partner is competent, which shouldn't be a problem post-school.

Similar intelligence doesn't necessarily mean you do things the same way. Both could benefit from learning different techniques to do various things.

I want to do pair programming with a qtp2t girl.

Attached: 12D5E759-4E5A-4A19-8E3E-5C47A8360C19.jpg (332x443, 26K)

most certainly so

Mob programming is better

Attached: mobprogramming.jpg (700x475, 246K)

>another HR meme
"it doesn't take two people to do one job"
t. Your Friendly HR Department

>it will be more time consuming for me than doing it alone
The point of pair programming is knowledge transfer and improved code quality, not saving time.
>I think it's shit
So do I. Pair code review is way more efficient at achieving the goals of pair programming. Especially in an inexperienced committer and experienced reviewer pairing.

the black guy looks so happy

Pure racism.

got into a bit of a banter and it escalated from there

Obviously - it's his turn at the computer.

I fucking hate teamwork

Every little thing that would take 3 seconds alone takes literally 10 minutes, and the results are worse

You want teamwork? Divide the team up to handle different tasks, but keep them in one room so they can help each other out. If you are really fancy, have a meeting every two days, to sum up results
Sitting by each other like two little girls is extremely detrimental, this sounds like something a woman would come up with

advantages include
1. You aren't dragging them along spoonfeeding them information.
2. You can hold you own and contribute without the other's ego inflating and being berated and not really learning
3. Often it can help to just have another set of eyes. I just found a bug where a parenthesis on a function was missed two lines before an error got thrown. Other guy had been stuck two days, had we pair programmed from th beginning such a mistake would have been easily caught.
4. You can learn more about different styles or techniques. About a year ago pair programming I learned a really smart way to read input into a temporary buffer and process it incrementally rather than having a massive nested switch case, if-else monstrosity.
5. You can solve problems faster due to essentially having a "rubber ducky method" on steroids.

This is why object based programming was even invented. It used to be a pain in the fucking ass having to share variables and function names, but now you can just say this thing plop this thing that has its own rules, and you can just dump whatever you want in and it shits out what the other person needs, and you barely need to sync up with them

It's good for learning from the other person.
If it's one of the structures where only one person uses the computer it is absolutely terrible.

Show him the studies how wearing skirts increases your coding by 15%

Please tell me your partner was a cute boy.

>4. You can learn more about different styles or techniques. About a year ago pair programming I learned a really smart way to read input into a temporary buffer and process it incrementally rather than having a massive nested switch case, if-else monstrosity.
i'm high so i might be a little lost but do tell

>If you are really fancy, have a meeting every two days
Have you already heard about daily scrum meetings? It's not so rare.

I've had to do it, but couldn't do it, netiehr of us could. I can only program and concentrate in a quiet environment and pair programming doesn't give me the time to think slowly and carefully about problems rather it just turns into 2 people half assing it.

more bratty than cute actually, hence the banter

Everyone I know hates them. You just waste time instead of doing something important

I can pair program with your dick
no homo though

I don't pair program, and I don't work well in a pair programming environment.
I like taking my time and not having someone looking over my shoulder.
It really frustrated me when a coworker said that you really learn how great another programmer is when you pair up with them.

>waste time
10 minutes is not "time", it's nothing

>10 minute meeting
Never been to one that was shorter than an hour

god I fucking need this, I would kill for this

I'm not a programmer but I have had to dabble a little to get something at work done and a coworker and I have worked on some thing together and it was very useful. But only because we both are way novice at this stuff and having 2 eyes on it was very helpful.

i was referring to
>daily scrum
these are usually 10-15 minute standup morning meetings where everyone synchronises with where they are with their work

This.

Wtf? An hour? That is not a daily scrum bro.

You'd kill for a bj by a cynical neckbeard?

>the patchy beards
>the dirty clothes

ugh, i can smell them from here why can't people actually groom themselves anymore?

Never had one of those then

maybe, I'm a cute bratty boy (male)

This, but ironically

>getting paid to watch someone program
>perfect in for diversity hire
I have no problem with this, oh look, Im think I should use a foreach loop here, yes good idea, lets name the iterator variable i, I concur....

I can't imagine what's worse, watching a diversity hire code, or a diversity hire watching me

pair programming != having a dude near you. There are times when someone has to explain you an existing project, that is OK. And what you do in the uni is just computer sharing, that is not PP imho.
Pair programming in its purest form is plain ridiculous. I'd rather kill myself than program with a fucking dude near me arguing about every thing I do.
Good code is the result of individual talent. The more individual the better. Best projects are done by a single programmer.
Pair programming is just for beta retards who accept being treated like children. Management plays this game to have the one person put pressure on the other one. Never let anyone treat you like a children. You need your own computer, your private space, your time and your silence, and any employer not providing you with those is a pajeet recruitment center, a feature shop, and the objective is not quality but speed. Avoid.
Talented devs will bail out of such jobs.

can't trust them

Attached: Bynare.jpg (400x300, 26K)

>tfw working at bynar company
>they do all the work and keep me occupied with a hot ginger on the holodeck so i don't screw things up

Attached: 1406587077274.gif (350x270, 1.34M)

It's a bit embarrassing to say knowing what I do now about code, but this is Sup Forums and I'll make a disclaimer I only started learning any programming about 2.5 years ago now, so here it goes.

Basically I was making a menu with about 20 options driven by a switch-case statement, and did a simple math calculation on some input depending on what was chosen. That part was all right. Then I displayed another menue with a prompt. This one required more complex validation so I used an if else-else structure. Unfortunately this took input from the last step of the chosen by the menu... So I just copy pasted this if-else block into all the switch statements. Then, I needed to call another function and pass the result of the previous function in with the original menue option that was chosen...so that also got copy pasted...

As I was copy-pasting this hating it and thinking there must be anohter way, my freind next to me watching this figured out what I was attempting and was like "why not just use a buffer?" I responded with something dumb like I don't just need the result I also needed the menu choice. Then I stopped and realized why I was an idiot and why he was completely right.

The not retarded way to do this, as someone pointed out to me, was to create an int and 2 strings. Have the int hold the menu item from the switch-case as well as saving the result of the calculation to the string, and then after the switch-case give the second prompt to the user and store the input from that into the string
Then use the buffered information to figure out what to call and pass in with some very simple logic and your done. Far less code duplication. Much easier to write. Easier to read. And much less retarded. I made a mental promise from that day forward to always consider if I can buffer input without a large performance hit to make the code cleaner.

...I feel like such a retarded faggot just recounting that idiocy. Fuck me,

It's pretty useful and helps you catch a lot of mistakes and a lot of times problems get solved faster. It won't work if one of you is fucking retarded or socially inept. I got hired at a company that mostly does pairing and had to prove during interview that I could communicate and work with others. Luckily there are no idiots involved either so it goes smooth most of the time.

Useful for training.
Two weak/new devs can pair and become decent.
A weak dev and a strong dev is good for teaching (let the weak do the work while the strong comments and guides)
Two strong devs get important shit done fast or butt heads, depends on personality.

That sounds fucking gay.

>all these college tards comparing pair assignments to pair programming
protip: one is not like the other

Yeah, solo developer rock-stars is the best way to generate code: fastcompany.com/28121/they-write-right-stuff?page=0,0

Attached: 35dda730657b0adc60be17ae856e9a0a--python-programming-humor-programming-jokes.jpg (400x400, 22K)

suit yourself

That article is obviously written by people who don't have a clue. Like Carmack said, if people wrote software like they write software for the space shuttle or for fighter planes, we would be decades behind where we are now.

>Most of you have probably read various popular articles about the development process that produces the space shuttle software, and while some people might think that the world would be better if all software developers were that "careful", the truth is that we would be decades behind where we are now, with no PC's and no public internet if everything was developed at that snail's pace.

How can someone type so many words and say so little?

Carmack talked a lot of shit, and he couldn't get even a single rocket into space
No wonder he went back to selling anime porn headsets

yeah, it's wordy as fuck. But it was handy

>How can someone type so many words and say so little?
Did you ever need to make thesis?

He may not be the best programmer ever but he sure as hell has more credibility than a no name journalist with a hardon for being a bore.

>He may not be the best programmer ever
Go back to pumping gas, Romero

>Did you ever need to make thesis?
oooooooooOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH

The article is much saying "look at these grown up adults writing code for mature adults like me and how much better our code is and how much i hate creativity and fun"
In the end for non life-critical situations people would rather have a few bugs and a lot of advanced features than very barebones features and no bugs.
I'm not arguing for messy code, I'm just saying that the way you program a space shuttle or a nuclear reactor is completely different from the way you program Photoshop or a game

ah, don't feel bad, i made a 600 lines long if-else state machine to parse post data. thanks for telling.

>how can someone...
Yeah. I'm impressed.

That was a "small giggle, or mostly just a smile" joke, not a "someone got burned really badly"
It's okay, I know it's hard for people like us

I don't believe people do this anymore.
It's been tried extensively in the past. Doesn't work well as good programmers aren't necessarily good teachers.

VU uses it extensively. You also don't even get your own desk

When I was a fucking intern putting stickers in
folders I had my own desk and computer, how fucking cheap can you get?

>VU
Please. I don't know these acronyms.
Some web company without grey beards I'm guessing?

Thanks Clover, Sup Forums seal of quality

half the job ads i see require experience in pair programming

They also want diversity hires and java script
Not to mention programmers with good social skills, open for adventure and meeting new cultures
Oh, and don't forget, he has to be creative and do his boss's job too while he is at it

HR was a fucking mistake

Veterans United home loans. AS a dev, they do not get their own desks since you just rotate through partners

i didn't say it in the "got burned" style dum dum. It's my between air out of nose and semilaugh "laugh" vocaroo.com/i/s00iGkGOZyWX
why did i have to visualise it on this chinese forum? because i'm literally procrastinating writing my thesis right now

Attached: do.jpg (743x743, 120K)

Yea i do it. I do the labs while my lab partner watches me. Occasionally he'll spot a spelling mistake

no but gonna on Friday

It's like couples. You need to have great synergy for it to work well.

Is this shitty writing style taught in schools our something? How hard is it to interview people and simply state what they said without writing half a page of word salad to stroke some creative ego

yes i like pair programming

Attached: img000010.png (907x1300, 634K)

everyone makes typos and pair programming catches them quicker. It is best to do it smartly and use multiple screens instead of having one guy shoulder surf and get in the others' personal space and also switch off who is typing every hour or so to avoid repetitive strain injury.

i dont see the point of combining 2 birds of different feathers

that's so hawt

yes. I do pair programming all the time. me and the compiler.
other "humans" (apes I like to refer them) would only slow me down.

Attached: p258.jpg (368x557, 134K)

It's smart. It prepares you for your future of hiring some Indian or Chinese to code something for you and having to supervise everything.

Been in the two strong dev situation, as long as one is "owning" the project more than the other its fine. Problems arise when both have the same amount of responsibility and there's no leading direction

It's how smart women and incompetent men keep their job.

One woman at work loves it, lterally all she does because 2-3 guys have a crush on her. She just rotates them for 'pair programming' to get her work done. She claims it as her own work mostly.

I do quite often. It's nice to tune out sometimes by myself but sharing knowledge of the codebase is incredibly important for any functioning team. Picking up someone else's code and trying to fix it is very frustrating. Anyone who doesnt like pairing is either jobless, autistic or both

eliminates ocd

>tfw the only one who wants to pair up with me is rubber ducky
>and even ducky is just giving me that condescending look

Attached: 1508128653335.jpg (1024x878, 96K)

People actually want offices to look like this

The only time I've worked in a pair I decided to split up the project into server and client, me doing the server and the other person the client. Unfortunately, at the time this project used flash remoting with java and I had to look at his shit code to create the VOs...

i mean, can you blame her for their patheticness?

dont like it, can't wank