Problem Solving with Algorithms

Pair programming

2020. 11. 13. 03:06
반응형

Pair Programming

 

www.youtube.com/watch?v=QW8AkqJ1CAA

스탠드업으로 시작하네

근데 이게 뭐람 ㅋㅋ 헐 이거 보니까 트라우마가 떠오름

 

 

[Music] [Music] okay good morning everybody we are going to start our meeting thank you for joining we're gonna see where everyone is in the sprint okay Jack you go first I've been working on our e-commerce capabilities and making sure that our UX looks clean and thorough throughout the entire website I'm currently working through the design of the website tomorrow and today we're gonna focus on really implementing all the changes that we want to make I started working on designing several different buttons that were going to be using so Kevin and Nick how are you guys doing with migrating the API over for payment integration pretty good we I think we only have five more endpoints right yeah a lot of the client-side work is done now we just need to make sure that we parsed the new parameters on the back end ok so just make sure you guys work together to get that done today [Music] [Music] [Music] [Music] hey Nick do you have that PR for the backend I just need that new query parameter so I could do some of the logic on the backend um yeah sure yeah no problem Nick I I can see you I don't know if you I can see you right now my camera's on yeah I mean it's been on this whole time yeah I was just taking a break are those Doritos or these yeah yeah nacho cheese nice and you you just just type right after eating those or yeah pretty much cool yeah so do you have the the PR for me or um what what oh I was just wondering if you you had time to make that PR for the query parameter I guess I'm gonna need that on the bat I was just wondering if you have ever tried pizza Lunchables with Doritos I actually need to know if that PR is done just because I'm waiting for it PR yeah like a pull request you know like what you're supposed to do all day oh yeah you know like the code no that's on github yeah okay so I guess I'm just gonna take a look at your PR and then I think the only thing that's left really before we can ship is you just need to finish that one endpoint and then I think we're good to go so you know I guess I'll just let you handle that and if you need any help - I guess ping me on slack or something yeah I'm a little busy right now but right clearly yeah when I'm done I will do that and I forgot I don't need your help I'm good okay no I mean I'm sure you can do it I just want to make sure that that could be done by 4:00 right because then we have a tight deadline yeah because I'm happy to help but we just got to get it done by 4:00 so I don't need help dude I'm gonna I'm gonna go do my stuff you do yours and and then four o'clock we're yeah we're good we're good to ship this stuff yeah code yes all right cool I'll do my stuff you do yours all right dude I got it you know not for me okay breathing down my neck I mean I literally can't like I'm literally video chatting so all right dude yo yo - yeah [Music] [Music]

 

web sockets there's a web what is socket I mentioned he knows how to do this stuff but he is he's kind of mad it's just okay just play it cool it's nothing out of the ordinary just kiddin help just Nick where have you been dude like we have we have to ship this feature we really can't I'm already late you can't really even working on it seriously you've actually been working this whole time why haven't you answered my slackness I've been working the whole time and you've just been heads down heads down coders there's one thing yeah I don't know I I think when you were in the codebase you messed up this WebSocket thing so I need you to come and finish this part that you I think you screwed it up I mean I don't I don't think I messed it up but I don't really care like we just have to get this done so why don't you I think he did okay cuz I'm actually looking on github right now and I think that you wrote this part but just share your screen and we could look at it oh I don't think so but alright okay oh sure what's right you messed up we know same here yeah you did something wrong but well well you you can fix your part the thing you must oh yeah so you just share your screen and I'll I'll clean up your mistakes let's see what we got alright let me point you to these the spot you missed filling in here right here this literally this code right here that is the code yes dude this is your ticket this is what you're supposed to do you're supposed to have to handle this here this is your job no that's yes well just agree to disagree it's not about agreeing that you're just wrong I think we need okay stop no no we just don't have time for this okay it's really not that hard you said let's say Saki got in and when you have the sockets room you just need to admit the message then all you have to do is you just have to say the nickname the name of the person is a sockets nickname and the message is just gonna be the message just passed that's it that's all you had to do I don't even know why we pay you want to say hmm well apparently you're not you don't know JavaScript cuz we had to do that but I was so stupid would I check for errors yeah cuz I never check for errors cuz it's a it's a waste of time though you you're supposed to so that customers have a good experience the good user experience why I don't write bad code so I don't know you know you just you straight up don't write code you didn't write anything here you drew a comma this is all you know comma that's it well I didn't think I had to write it cuz it was your miss messed up you must do this you must this was your only job today and did another that you messed up and I had to fix it let me show you another mess up by the way I don't know what's wrong with you but yeah that's that's how you write conditional no it's ugly yeah I used to do that and then I literally turned five so you're saying that you put the curly braces on the same line there's nothing wrong with it you could do that you could do what you just did and put it on a new line but doesn't really matter it's it's really bad you can make it you know a lot neater yeah I mean I think this looks better okay but I don't want people to read in my code maybe that's why I couldn't do the PR dude no I mean you couldn't do the PR key you literally didn't write what you needed to it's tough for me to work with people that do stuff like this curly braces well what do you do what are you gonna declare your variables on multiple lines or something dude I mean yeah you're telling me you do this yeah cuz they didn't want to waste space but this is so much more readable oh oh this guy you don't know how to code what is it what is this what are these little what is this an apostrophe yeah those are singling out cos Rafi Nick you know they actually there's a zero difference dude obviously I I actually I prefer single quotes so I'm just gonna put those back Nick what is this online 79 what is this cause that's not all you're gonna do is call me on obviously it was a comment I forgot two slashes okay but what is what is class Nicholas I mean what does that mean that means nothing to me [Music] [Applause] Tamagotchis big three in a half the same as a floppy MuRF guns loaded every shooting that y'all muhfuckas we can't get in the house but we get inside and we was [ __ ] with the swag got a fresh breath ain't nothing like when you at mad tokens left and that RK bond there watching tickets all day and Pagan Scooby [ __ ] and that [ __ ] my landline calm and chilling at the mouth and it is the type of [ __ ] that you recall well they're not be here you shy

 

 

www.patreon.com/nick_white?al

 

Nick White is creating stuff for smart people | Patreon

Become a patron of Nick White today: Get access to exclusive content and experiences on the world’s largest membership platform for artists and creators.

www.patreon.com

 


 

 

What "Pair Programming" is really like...

 

www.youtube.com/watch?v=hc7jHnH5ijE

 

 

아 이것도 조크네...ㅡㅡ;;

 

 

 

 

how do i look how's my hair all right hey and welcome back with your host the ex google x facebook tech lead and today we're going to be talking about a very powerful programming technique known as pair programming and so with pair programming what we're getting is knowledge sharing across the whole entire team so what happens is that senior software engineers like myself what we teach mentor and help the more junior members in our team and essentially it's like a transfer of skills from more highly paid senior engineers like myself to the lesser paid engineers and essentially enables them to take over my job makes sense good so then what we're doing here today at tech lead technologies is that we are building a brand new decentralized application i think is going to be the next big thing and we're going to do it entirely with pair programming and to help us out today we're bringing in james james hey let's do some pair programming yeah hi my name is james yeah let's totally do some pair programming today awesome let me just roll up my sleeves here oh wait but why are you still here didn't i fire you last week uh okay technically yes but that is an issue between hr and me not between you and me uh-huh okay look i don't know how many times i have to repeat myself but this is just between hr and me it does not concern you uh okay so can we just go start coding all right let me just pull up a chair here so why don't we uh why don't we get started here can you open up a terminal all right sure okay so so what what what are you doing huh what's up uh what do you want me to do uh no you just you just click on this icon here icon yeah uh which which icon can you define that word for me by the way okay what the hell is without this rgb oh this makes me a rock star programmer well i can tell you you're not one no yeah yeah but it was expensive look you may be a millionaire but you're not a rockstar programmer all right so anyways can we open up the notepad sure i got it yeah got my notepad here so what do you want me to write in here no okay so let's open up the applications folder okay all right and then now what okay go to utilities utilities okay utilities utilities let's see okay got it now i can't double click on that all right how do i do that i just double tap no okay the monitor isn't touch screen you have to use your fancy rgb mouse okay rockstar what's a mouse again yeah look it's just it's going to be easier if you just move aside i'll just i'll do it oh yeah sure yeah by all means go for it uh hey do you mind if i go to lunch i'm getting kinda hungry uh yeah okay yeah sure go ahead all right all right i think i'm finally done with this all right hey lunch was pretty good today sorry i would have brought you something back today but you seem kind of busy yeah because i was busy okay now i got to do some code reviews for kevin all right sounds good i'll um i'll i'll be here uh yeah hi so my name is kevin and i recently feel that my feelings have been hurt hey kevin hey did you get the comments i left for you on the code review can you not criticize me i'm feeling threatened but no the code doesn't even work that's not nice please be constructive i am being constructive your code is trash can you please be any more specific than that can you explain what's exactly wrong with this code okay you should at least be creating a class with a few public interfaces for it use a class what do you mean can be more specific okay so the class needs read data send data okay all right and uh what would be the method parameters for this uh okay all right so read data should return an array of bytes and accept an input id as a string okay there you go see that wasn't so hard now was it so can you explain then how should i name this function how should i capitalize it just use a camel case okay can you define camo case for me no i cannot define camera case just google it you google it okay you know what let me just i'll just code this up for you all right i just left the new comment for you try copy pasting that okay copy paste yeah i can do that all right it works finally see what happens when you just stop criticizing for a moment and provide specific constructive feedback all right sounds good so can you implement send data now yes if you tell me specifically how you would like this implemented let's start with the return data type what's the data type for this okay sorry i just got called into another meeting james not you again hey thanks for coming i thought i just finished doing all your work for you do you know what this is about no but i'm kind of busy can you just hurry it up i don't like the way you talk well i don't like the way you look but you don't see me complaining so what's this about i'm informing you that i have reported you to hr for sexual harassment you know james if i had the time machine okay i would go back in time and hunt down your mother like the dog that she is see there you go again i think you hate women i hate everybody on this team equally but especially you and besides you're not even a woman see you're assuming my gender you don't know if i'm male or female stop assuming my gender can you just stop virtue signaling and let's just get some work done no my work cannot matter until black lives matter or um or i mean until women lives matter okay look i got work to do i don't have time for this well hr has time for this in fact this is all they have time for expect to hear from them okay all right hey so kevin how's that app coming along huh what app uh okay let's just let's see if we can just wire up some api endpoints today i'll pair a program with you okay all right uh okay uh so uh what what are you doing uh i don't know i'm doing okay uh what are you doing um okay all right uh look should i just do this maybe you could just move aside no don't don't touch my keyboard this is my cane just tell me what you would like me to type okay all right um let's open up the ide okay sounds like a plan how do i do that okay so you press command space and then you type v s c o d e press enter okay and then move your mouse to coordinate 300 by 4 18 or 420 or so okay moving my mouse left click all right done and then can you right click on coordinate 560 or try 5 90 by 8 15 okay right click okay right clicked and then click save okay and then type uh left parenthesis so left parenthesis or oh do you mean the symbol sorry that you meant to spell it out and then type v o i d space right parenthesis left bracket but then should there be a semicolon here or or is it fine without one can you type faster no i cannot type any faster okay uh enter enter or sorry backspace okay okay all right okay like you need to slow down because you're going way too fast let me just delete all this and let's just start from the beginning okay so what do you want yeah okay all right so can you right click on coordinate 382 by you know you have really beautiful smooth fingers they're not that smooth they're just pretty normal hands no they're just really beautiful fingers so um so what do you do with your fingers okay this is creepy where's hr i'm finally in a sexual harassment complaint okay so unfortunately we had to put an end to our pair programming over here attack lead technologies because it was becoming a serious legal issue for us the thing is while para programming may be an extremely powerful mechanism you also end up with see programmers tend to be extremely horny type of people and so the amount of sexual harassment lawsuits go up inevitably research has proven this and so if your hr department is well equipped to handle cases like this then yeah sure by all means pair programming will enable your company to achieve far higher and greater goals we're just not sufficiently equipped to handle this but let me know your thoughts on pair programming in the comments below i'd love to hear about your experiences with that if you liked the video give a like and subscribe really appreciate that help support content like this and i'll see you in the next one thanks bye

 

 


How to Pair Program (Pair Programming Tips from Steven Nunez)

 

www.youtube.com/watch?v=YhV4TaZaB84

 

 

 

hi my name is Steven Nunez I'm an instructor and developer at the Flatiron school and today we'll be talking about hacking your learning with pair programming for two years I taught myself how to program reading anything that I could find on the Internet I got invited to a code retreat where you get to work with other developers to solve a problem solving Conway's Game of Life and through that I've experienced pair programming I got to work with really great developers on a problem and in that one day I learned more than I did in the two years by myself it was really incredible in this video we're going to talk about the benefits of pair programming how to pair program in-person and remotely in addition to how to deal with issues when they come up I'm obsessed with finding shortcuts learning to program is really hard because you're juggling a dozen concerns you're trying to figure out if your syntax is right you're trying to figure out a fusion or elder ìthen trying to find the right gem when you pair program you're spreading the load across two brains so things that normally would get you stuck like syntax errors don't happen when you pair a program letting you focus on the really hard problems on solving the problem on building the app and on learning in pairing we have two roles a driver and a navigator imagine you're taking a road trip you have someone who's on Google Maps and another person who has their hands in the steering room first and on Google Maps is responsible for figuring out what exits to take their thinking 20 minutes ahead while the person who's driving is focused on the here and now how much pressure to actually put on the gas what's that got to do with programming when you're pairing with someone you can have someone in the navigator role who says we need a validation here and the driver will actually go and implement it there the person who's typing on the computer the other person who's writing the code that needs to be written to solve the problem there's a lot of talking when you pair and it's really exhausting so make sure you take breaks and switch roles I switch roles about maybe once every half hour and to take breaks I use the Pomodoro Technique meaning you work for 25 minutes and then take a five-minute break while you're pairing feel free to ask your parens if you feel they have a misperception about something as you're building something out you may notice that the language that they use might not be absolutely precise so you want to ask them follow-up questions that's sort of your job as a pair to make sure that the person you're working with is getting everything that you want a lot of the power from pair programming comes from your willingness to be vulnerable what I mean by that is you have to be willing to ask the question you have to be willing to ask your pair and sort of surface the fact that you don't get something and typically that is not a great feeling you may be reluctant to do that because you'll say my pair will think I'm stupid but in reality that's the benefit of pair programming you have a problem right in front of you you have code that you do not understand and by understanding this code you will learn the concept right you're not learning it in a vacuum you're learning it with someone inside of some bigger context so definitely be willing to be vulnerable and that's where the big benefit for pair program is when pairing in person you're going to use one computer so pick the newest computer to work on you can have the second computer nearby in case you have to look something up but the focus should be on that one computer a couple of considerations when working with someone in person is be mindful of personal space some people have a higher tolerance or how close they can be to someone I've had pairs who have literally been shoulder-to-shoulder with me and that's fine and other people who need a you know need a foot of distance so just be mindful of that when you pair with someone and then also be mindful of your hygiene so get some gum make sure you do turn on in the morning and your experience should be also

 

when your remote pairing fire up your favorite screen sharing software so jump on a Google hangout or Skype session and share your screen there you'll pull down the code work on it as the driver and then when you're done you'll commit the code push it to github and then have the new driver pull that down they'll share their screen you go back and forth that way as a navigator it's really easy to get distracted because no one's watching your screen so be mindful of that and stay with it the benefit of pair programming is that you're both focused on the same problem whenever you involve humans things get complicated why can't everything be just computers I want you to have a certain mindset when you pair a program with someone I want you to be greedy but not entitled I want you to ask questions I want you to go deep I want you to be curious but if your pair wants to move on move on so as a student who's learning to program should you should you pair program all the time should you pair program sometimes once a week I think in my experience it's been really useful to have students pair more often than not when you're first learning to program there are a lot of moving parts that you're trying to just get your head around so there's the syntax of a language the concepts of a language the putting the building blocks together to make something useful and fun and by yourself you may get stuck on something that doesn't have much value so for instance if you get stuck on I don't know the syntax of an if statement for some reason and you spend a half an hour just debugging that you missed an end is that really the best use of your time I'd say right as an instructor I want to see people working on the hard problems actually moving the blocks and putting them together and putting together an interesting and fun solution with a pair it's very rare you'll get stuck on the small things but you will get stuck on are the actual hard things I don't understand how this how methods work I don't understand what return values are on and you know the difference between map and select right the really hard things where it's not syntax but it's actually the concept and the best way to get that I think is true pairing because you get a bunch of exposure and early on the most important thing is figuring out what don't I know right going from that space of unconscious unconscious incompetence where you don't know how terrible you are to the to conscious incompetence where you know how bad you are that's the space you want to live in and you want to increase that that sphere of things you don't know so you can start attacking them one by one so you get exposed to more if you care to pair all the time so my first professional pairing experience was with yeah my first professional pairing experience was with David black author of the well-grounded rubyist I just gotten hired by consultancy and I was on a project with him and when you first get your developer job you're going to want to learn all the tools that they use and you're going to want to learn everything that you're working on in this project so my hair is on fire trying to learn all of jQuery and figuring out how to use vim and I sit with David black and if you know anything about vim vim is the text editor that is not like anything else it's like you can press letters all you want and nothing will happen if you don't know what you're doing so I look like an idiot kind of like pair of like typing next to David black this world were known like speaker and author and I was pretty much the biggest [ __ ] in the office that day the side effect of it though was that with this newfound I guess shame I went home and practiced a lot and I got really good at BIM I got really good at my tools and that that I think is again one of the benefits of pair programming that you have this pressure this kind of like social pressure to be good because you're on the hook for you know working with someone and you have to get good fast so my first professional firing experience was not great but the next ones were awesome

 

 

in this video we learned about pair programming we learned about the driver and navigator roles and we learned about how to be a good pair by asking tons of questions thank you for taking the time to watch this video and good luck pair programming you

 

 

vulnerable

 

 

 


Pair Programming at Atlassian with Lucy Bain

www.youtube.com/watch?v=fQ-x-T34z9w

 

취약, 비난받기 쉬운, 받기 쉽습니다

one of the things that you and I were talking about earlier and something that popped up in Atlassian extranet was a blog post you did grew out of a comment and perhaps some conversations about pair programming so and I think it's a lot of people's interest I think pair programming is one of those things that people go really is that how it works is it good like is that how it should but is that gonna be good for me am I gonna like that or you know that sounds terrible that would be horrible would never work it'll only slow me down things like that so tell me about it what's pet programming how do you see its advantages and you know what is it good for sure so I really like pair programming especially as a new person I think it's a really good way to get introduced to the code base and it helps me meet my teammates and know what questions I should go to them to answer so I think that's that's a really powerful part of pair programming there's lots of different ways that you can pair the sort of traditional ways that you have two monitors and two keyboards and two mice with two shares and you sit there next to each other and you work through it but everything's obviously plugged into the same computer so that's sort of the goal I guess but that can sometimes be hard to do because like I don't kind of look around my monitor and keyboard and mouse so my team actually recently set up a pairing station that has everything set up so you just bring over your computer and get going which I'm pretty excited to to give it a run but you can also just come with your chair and sit and learn from each other talk through problems you've seen all those movies where there's two had two sets of hands as if that would ever work yep tell me how that works one person is in more of a drivers role is that how yeah you do it so the person who's at the keyboard is the driver and they are the one who actually writes the code and sort of makes sense makes it syntactically correct and things and then the other person's the navigator and they're there to spot bugs sort of think through problems that could come up or like maybe you're missing an edge case and they can think things through a bit more a really important part of pairing is to switch those roles off so that you're not always a driver or always a navigator because right it's quite different mindset for both of those roles yeah and you mentioned that it was something that was particularly good being new to the team so I can imagine this specific advantages for pair programming for sharing knowledge think that seems obvious so the benefits would be that that knowledge would be shared from someone who's experienced so does that mean that they would be the driver or that they would be the navigator or are you mentioned they switch yeah so so hopefully you can do a bit of both sides just so you can better see how things fit together I personally like being the navigator when the other person is more knowledgeable in a domain because I think that they can sometimes get frustrated watching me not know what to do depending on how patient and they are it can be more beneficial if I'm the driver and they can sort of walk me through how to get there but it is it is pretty slow for them so it's a bit of a yeah yeah although I found that that can be good to go through that because then I mean there's nothing that more encouraging than feeling like I need to know I need to be able to do this I need to know all of those keyboard shortcuts that's actually something when I started at lassie and this is quite a while ago now I was pairing on bug fixes on JIRA and we're using IntelliJ IDEA and I hadn't ever used that I knew none of the keyboard shortcuts and a guy I was pairing with who it's yeah f9 man and so I really learned them yeah I definitely always bring a notepad with me and like they'll do a keyboard shortcut oh so what was that I missed I couldn't quite see yeah yeah there's always something to learn yeah we talked about knowledge sharing why else would people adopt this practice so obviously I'm knowledge transfer I think it's sort of the biggest one it's also focusing that it's a lot less tempting to like go to Reddit and check it out when the other person sitting there and I think it's more engaging that you look at some code of somebody else it oh why did you do it like that like let's let's have a little bit of a conversation and make sure that that is the best way to do it thanks for watching Atlassian tech TV subscribe right now to catch our regular episodes including the full interview from which this excerpt was taken don't forget to follow us on twitter and check out our blog at

 

 

 


Pair Programming: 7 Habits of Highly Effective Coders

 

 

 

www.youtube.com/watch?v=5ySLQ5_cQ34

 

 

 

 

it's all well and good to lock yourself away to focus on a problem but often difficult tasks are better solved by collaboration so when we team up we can often find solutions to problems that we otherwise might have missed and by pairing our code is being reviewed as we go yeah I love pepper again coding is one of those things that's fun the heart when the computers doing what you wanted to do are it's magic and pixie dust and rainbows like the master of the machine you know but then when there is some obscure bug you just can't wrap your head around something or you can't squeeze two bits together it's just so painful so pair programming is getting that buddy on board it means that you're problem-solving together pair programming valuable I've done pair programming on a couple of you know really big projects that were incredibly invaluable to me i pair programmed with Aziz Elam he and I pair programming via Skype with him in the Netherlands and myself in Sydney rewrote action mailer over a two-week period in the evenings about one or two hours a night and we just banged it out and that was really valuable because I had all the knowledge of how the email library worked and he had a lot of knowledge on how that the rails stack worked so we could just sort of leverage each other and ask questions and it got done really quickly Danny before of Danny face-to-face of damage remotely with people in other countries I do love it I just don't believe in it as full-time and the reason why is sometimes the things that I do better by myself whereís and sometimes there's things that you do better at pair talking through your ideas communicating with another person brings up a much better code in the end but the thing to remember with programming is that likely the good communication skills is to decide before you start about certain rules I've used pair programming a little bit I find it very successful for people that can pair program but I can't have sustained time coding with someone because I need to think and I need to do my coding I will personally never break their programmer but I know a lot of people that are people that think out loud people that just sort of talk through problems rather than silently thinking about them at Atlassian we actually set aside a room we call it the echo chamber because we have two computers that have the same screen and everything in that way you could do pair programming it's a great again learning opportunity it's a great way for people to transfer knowledge and might be transferring knowledge about the system they might be transferring knowledge about our craft of engineering if we can build those opportunities for people to learn then that's a wonderful thing and pair program is a really good way of doing that we always competitive in the sense where you you want to take a break in the other person's like night let's push on let's keep going which is why it could be so draining as well many would say that pair programming is not practical all the time and I must say I do agree with that one thing that is absolutely foundational to any good software team is the code review peer review is invaluable you know it is a rule that we interact if the code doesn't get to the client unless someone else's lip data and we have to do that aside from security implications it's much harder to to put a backdoor in on something if someone else has to look at it I mean there's that as well right if you give that second set of eyes you catch so many more bugs I don't know how many you know nil checks or something someone said to me I what happens if that objects nil and I went oh yeah good point fix we use pull requests as code reviews and I wouldn't do it any other way now thanks so that every piece of code is looked at by more than one person if it's anything that's going live on the site that's public basing we get one other person to look at and with the pull request workflow they cost you a lot less time to catch it in the pull request that it does to push it live find out it's broken get everybody to scramble and fix it save yourself one of those and you more than made up for the fact that you've got an entire team doing doing coverage stuff I've never said to a time you must pay a program you know this is the way we're going to do things because there's all different personality types and for some people it's just not going to work it's it's uncomfortable or it's unsustainable might be I would do it for you know so an introvert like myself I can do it for a day or two we come up with great results but I couldn't do that every day because I made my I need my headspace I need to recharge so to speak I wouldn't force people to work in that way but when you do to it it can be really really productive Oh Oh Oh

 

 

 

 

 

 


Pair Programming Anti Patterns

 

 

 

www.youtube.com/watch?v=McZ131y0OYU

 

 

 

 

What?! Um... do you think we should write the test first? >> No, I don't think so. Here we go again...why doesn't he ever listen? >> We can write more meaningful variable names, 'x' is not conveying anything >> I have been doing it this way for ages. This is how we should do it. >> Yeah but then we will have this huge commit, do we really want that? >> We need to get this done today, we have so much to deliver. We don't have time to gold-plate. >> Look there's a lot we're doing wrong, that's not what we want to do. >> No, this is how we should do it! >> So this part of the code uses reflection... >> Sunit! Can you help me with this? >> Let me just go there and I'll come back in 2 minutes. >> Sure. >> So this is the story that we'll be working on ...let's just refactor a few things that I think are necessary before... ...this class name, what do you think? Is it right, or do we need to change somethings? I feel we should change it, let's change it to... ..and here, the method called 'create', it doesn't say what does it create. I'll change it to something else- 'create filters'. >> That's exactly what I was thinking! >> Now I feel we should do it, and let's see how it goes... is this guy even listening? Ok, and here is Trump's letter, maybe. And now we are preparing some food for this filter- let's see how it works. This code looks a bit crappy, so I think we should kill our client and go away. >> Sounds good, yea >> Let's do that. >> What are we doing?? Yea, ok. >> ...good game, man. >> I'll finally beat you! We'll see about that. So let's end this day, commit this Committed! Let's push it. But the build is broken- what do we do? Whatever we want to do I guess! Push! Alright, let's go! Lets go play that game >> No no no- you might want to use 2 spaces and not 4 >> Why? >> 2 spaces are more elegant >> But we've been using 4 spaces in the rest of the project >> We don't need to make the same mistakes we've made in the past >> It's not exactly a mistake, it's conforming to the standard >> I don't agree >> It's just spaces- use 2 spaces, 4, 4, 2. What do you think of 42? >> The meaning of life? >> The meaning of everything, essentially! ...but if you think about it, at the point of Big Bang, it was finite... >> Guys- is it 2 or 4? >> Have you watched the '24' series? The English one? >> No, how is it? We all are guilty of these anti patterns, consciously or unconsciously It's important to be aware of them and correct them Pair programming is more effective, and if done well, it's more enjoyable.

반응형
반응형

공유하기

facebook twitter kakaoTalk kakaostory naver band