Clean code challenge - Silicon Valley Season 5, Ep6 🚀

Поділитися
Вставка
  • Опубліковано 1 тра 2018
  • 🚀🚀🚀 Become ELON MUSK playing most HARDCORE iOS mobile GAME: saviorx.com ! 🚀🚀🚀
    #saviorx #mobilegame #unity3d
    Nothing puts the fear of God into a programmer like the inevitable code review. This is when a group of people analyze your code for errors and shortcuts and violations of standard operating procedure like using spaces instead of tabs. I once worked at a Wall Street joint where our code review was like American Idol auditions. We had a panel of reviewers made up of my boss, the COO, and the CFO. They were ruthless. I would have to fill out paperwork describing my feature/fix, project my code on the conference room screen, and execute it while explaining my workflow. The slightest violation sent me back to the drawing board while my team members snickered nervously. I still have nightmares about this particular panel. My soul review at the Pearly Gates will be less terrifying.
    Thankfully, Dinesh and Gilfoyle’s code will be observed by a special prosecutor - I mean reviewer - because they’re senior management, thereby saving them the embarrassment of a public flogging. However, Dinesh wants a public hearing, if only to prove that his code is superior to Gilfoyle’s. Jared is against this for a valid reason. “A little cocksmanship was okay when we were a small company,” he tells them, “but the coders need to see you guys as equally competent leaders.” Dinesh can’t handle not knowing if he’s superior, so he hounds Danny the Code Review Guy relentlessly until he reveals Dinesh was better! Danny asks Dinesh not to tell anyone. Of course, Dinesh tells the entire office.
  • Фільми й анімація

КОМЕНТАРІ • 614

  • @JSmellerM
    @JSmellerM 2 роки тому +658

    The second someone else enters into Dinesh and Gilfoye's relationship they unite. I love it.

    • @enkiimuto1041
      @enkiimuto1041 Рік тому +9

      I do wish the engineer from season one was there more often, she was the perfect balance.

  • @buildnothingoutofsomething2513
    @buildnothingoutofsomething2513 5 років тому +4709

    Clean Code does not just mean having less Errors by the way

    • @ettiennepieterse371
      @ettiennepieterse371 5 років тому +1924

      It means having fewer errors.

    • @saqlainalvi5485
      @saqlainalvi5485 5 років тому +503

      @@ettiennepieterse371 no it means writing a code using the latest frameworks and technologies with best coding practices in mind. A tight code without any unnecessary extra coding is a clean code

    • @amirnoble1371
      @amirnoble1371 5 років тому +709

      @@saqlainalvi5485 It doesn't have to be the latest frameworks but everything else you said is right.

    • @saqlainalvi5485
      @saqlainalvi5485 5 років тому +46

      @@amirnoble1371 Yes brother. But a programmer should atleast know the basics of every new framework that comes out for his/her favorite language. But yeah you are right it's not necessary.
      Note: i forgot to mention. Clean code also involves managing complexity through oop.

    • @LitCactus
      @LitCactus 5 років тому +289

      @@saqlainalvi5485 what are you talking about? Not everything is object oriented

  • @VietVuHunzter
    @VietVuHunzter 6 років тому +3401

    With respect to Dinesh, Gilfoyle is so arrogant that I doubt he allows bugs live in his code.

    • @lilyliao9521
      @lilyliao9521 5 років тому +62

      What

    • @MangoMotors
      @MangoMotors 5 років тому +189

      But that's the thing about coding. When you write a very complex code, even small tiny things can cause bugs. That's why even companies like apple Facebook and Google who literally have billions of dollars still end up with bugs.

    • @saqlainalvi5485
      @saqlainalvi5485 5 років тому +64

      This comment makes no sense

    • @osalbaro
      @osalbaro 5 років тому +11

      Yea, that's not possible

    • @freeshavaacadooo1095
      @freeshavaacadooo1095 5 років тому +8

      @@MangoMotors I mean you are somewhat correct in the sense that bugs will occur, but they literally have hour-long debug sessions or just use something called checkpoint testing where all valuable data is relayed after a certain section of code to the console for analysis. If there is an error they know where it is and if there isn't the code is ready to be peer-reviewed again. Most "bugs" come from human logic error more so than syntactic.

  • @thecollegecoder7356
    @thecollegecoder7356 5 років тому +1987

    Dinesh's pull requests must be brutal

    • @aheathcliff7227
      @aheathcliff7227 3 роки тому +6

      What does that mean

    • @ticallionz
      @ticallionz 3 роки тому +71

      @@aheathcliff7227 A "pull request" is when you submit a change to the existing codebase. One or more of your colleagues will look at your changes and either approve them or ask for more changes before the code is "merged" into the main codebase. The more changes they ask for, and the harsher their comments are, the more "brutal" the pull request is.

    • @UnicycleSoul
      @UnicycleSoul 3 роки тому +66

      @@ticallionz I never understood why code review comments would need to be harsh, it merely shows the insecurity and egotism of the reviewer, much more than the competency of the submitter.

    • @victorscherman1437
      @victorscherman1437 3 роки тому +2

      Also there'd be so many new changes to review since I'd imagine Dinesh doesn't push his code in small chunks.

    • @victorscherman1437
      @victorscherman1437 3 роки тому +1

      @@ccriztoff what the fuck is your problem

  • @synsyko
    @synsyko 6 років тому +1354

    Dinesh is using spaces, Richard is going to be pissed.

  • @perfectionbox
    @perfectionbox 3 роки тому +191

    Nothing more devastating than Gilfoyle's monotone delivery of soul-crushing news 🤣

  • @GouchuInc
    @GouchuInc 5 років тому +637

    The real winner here is Jared (and Richard) who told them to layoff each other, because they're senior management now. He's proven right in the end when the engineers band together to make fun of 'senior management'.

  • @vicentcarro
    @vicentcarro 6 років тому +583

    every office has one Dinesh and Dany

    • @fixafix69
      @fixafix69 5 років тому +12

      Wait is that a racist joke or not

    • @drodriguez3293
      @drodriguez3293 4 роки тому +7

      i wish i made enough money to relate to this joke

    • @jjhassy
      @jjhassy 4 роки тому +4

      Fix a Fix yep its rly racist don’t read it

    • @kapils2862
      @kapils2862 4 роки тому +6

      But what every office needs is a Gilfoyle and a hairy Arab who can Chortle his balls

  • @justgame5508
    @justgame5508 3 роки тому +1062

    This has nothing to do with “clean code”, clean code refers to a codebases readability, you can have clean code with a lot of bugs and ugly code with no bugs

    • @kaushalrjain6326
      @kaushalrjain6326 3 роки тому +4

      Correct

    • @kylel8258
      @kylel8258 3 роки тому +45

      I think they’re just trying to make it easier to understand. “Error” is one word and easier to write into this scene than “code with readability”.

    • @iamdseth
      @iamdseth 3 роки тому

      Yessirr

    • @rishikakkar1528
      @rishikakkar1528 3 роки тому +1

      properly refactored and debugged code.

    • @apidas
      @apidas 3 роки тому

      eh

  • @lmtx45
    @lmtx45 4 роки тому +65

    -How's the code been going?
    -T minus Dinesh.

  • @jaywjr2456
    @jaywjr2456 2 роки тому +76

    I love Dinesh and Gilfoyle. I've said it 1,000 times but the writing on this show complemented by their delivery is the most under rated. Of all time possibly.

    • @r3wturb0x51
      @r3wturb0x51 2 роки тому +1

      Mike Judge is a fucking genius

  • @shinobi-no-bueno
    @shinobi-no-bueno 4 роки тому +39

    @1:57 Gilfoyle slips a secret smile and coyly stows it away

  • @kjyothirganesh
    @kjyothirganesh 5 років тому +272

    "I have to fire Danny" 😂😂

    • @quinndirks5653
      @quinndirks5653 5 років тому +7

      Do you know what dinesh says after that? I can't quite make it out over the music.

    • @kjyothirganesh
      @kjyothirganesh 5 років тому +28

      @@quinndirks5653 "I'll ask Richard" 😅😅

    • @zissler1
      @zissler1 4 роки тому +1

      Jyothir ganesh thought it was “afterwards”

    • @bigsassyster
      @bigsassyster 3 роки тому +3

      OH, I thought he said "I have to fight Danny" haha

  • @orionh5535
    @orionh5535 4 роки тому +374

    Danny was the human, who ate the tortoise and the hair after the race.

    • @jjhassy
      @jjhassy 4 роки тому +27

      hare

    • @TooDamnFishy
      @TooDamnFishy 4 роки тому +16

      No, he actually ate the hair

    •  4 роки тому +1

      @@TooDamnFishy Tortoises don't have hair.

    • @night00glider
      @night00glider 4 роки тому +3

      @ or...do they ?
      Dun dun dunnnn

    • @pranav5498
      @pranav5498 4 роки тому +1

      @@night00glider no they don't, they are not mammals

  • @AdityaDendukuri
    @AdityaDendukuri 2 роки тому +71

    as a programmer they must've been really good friends for them to meme each other like that in a professional workspace

    • @georgebrantley776
      @georgebrantley776 2 роки тому +10

      They've been coworkers, housemates, and rivals from before this company was even a company. Then they both joined as founding members, and now they've got a team of 46 engineers reporting to them. So yeah, good friends is pretty accurate.

  • @xerp7626
    @xerp7626 4 роки тому +185

    I had it when "Gabe" says , "Guys, Nononono, remember, we talked about this." Seemed like he was giving advice to Jim and Dwight lol 😂😂

  • @Jarasi98
    @Jarasi98 2 роки тому +92

    Silicon Valley is my comfort show, I wish it was still on

  • @JordanBakke
    @JordanBakke 6 років тому +50

    3:30 he should have made A Bug's Life joke

    • @Angel-yq8jd
      @Angel-yq8jd 4 роки тому +1

      that would make his joke good

  • @fahimminhaz7071
    @fahimminhaz7071 3 роки тому +23

    Dinesh: Less errors..
    Stannis 'Gilfoyle' Baratheon : Fewer..

  • @eravar2831
    @eravar2831 6 років тому +195

    Gilfoyle plays magic lmao

    • @5hort5ubject
      @5hort5ubject  6 років тому +10

      Gilfoyle is a key here and in whole

  • @beowulf555
    @beowulf555 3 роки тому +8

    “Laugh it up GILF”. Hahaha

  • @zackzhu9865
    @zackzhu9865 4 роки тому +18

    "I see, fun at my expense" lol

  • @cdjwmusic
    @cdjwmusic 4 роки тому +21

    These two guys are now marvel actors

  • @VictorMartinez-zf6dt
    @VictorMartinez-zf6dt 4 роки тому +318

    Private review is stupid. Senior staff should be subject to the same standards as everyone else publicly

    • @Wanooknox
      @Wanooknox 4 роки тому +111

      Better yet, hanging people out to dry when they make mistakes is counter productive. You don't get more productive by being shamed, you get more productive by being taught.

    • @MagikFrogs
      @MagikFrogs 4 роки тому +6

      Wanooknox also we’re all humans we all make mistakes.

    • @antonyjr.devlogs5957
      @antonyjr.devlogs5957 4 роки тому +5

      @@Wanooknox Yes. And this is actually used in top tech companies like Google, Facebook and etc...

    • @flashcat6665
      @flashcat6665 4 роки тому +5

      In the end it doesn't matter, all code is committed to the same repository, and all commits are accessible by everyone who has access to the code.
      Easy to see how made mistakes, how they got fixed, etc.
      And ideally anyway, your branch would not get merged until every PR is reviewed and approved. And all PRs are public as well.
      So this whole "private review" is basically useless and bullshit.

    • @OgeeDogee
      @OgeeDogee 3 роки тому

      @@Wanooknox It is productive and you're not supposed to be shamed it's supposed to set an example so other devs won't encounter the same mistakes. While you can get tips from your fellow colleagues and not just the ones reviewing your codes.

  • @Twoswordsdrizzt
    @Twoswordsdrizzt 3 роки тому +19

    That MisSteak line was actually pretty good though

  • @marlom7882
    @marlom7882 6 років тому +679

    “Nothing puts the fear of god into a programmer like the inevitable code review” Jesus Christ well I guess that’s one thing to look forward to when I get a job in coding

    • @oferyrd
      @oferyrd 5 років тому +64

      if you approche it right, you can grow a great deal from code and design reviews.

    • @JohnDemetriou
      @JohnDemetriou 5 років тому +88

      Reviews are actually the best way to learn and improve. Both reviewing and being reviewed

    • @user-qs5qr3ng4n
      @user-qs5qr3ng4n 5 років тому +16

      I actually like code review

    • @wombocombo6878
      @wombocombo6878 5 років тому +17

      ... its really fucking easy just follow the rules. The best reviews are the ones where you learn a new way to look at things.

    • @michaelmano7261
      @michaelmano7261 5 років тому +16

      Its also not just about bugs, you learn to do things more efficiently from people who have years experience.

  • @katsuutheunker
    @katsuutheunker 4 роки тому +6

    2:37 Lmao that coffee mug

  • @brothersum1359
    @brothersum1359 5 років тому +9

    Lmao how jarad walks over and stops the loud gong

  • @jaredbitz
    @jaredbitz Рік тому +7

    I relate at an uncomfortable level to Dinesh repeatedly practicing the delivery and phrasing of his joke at 3:23

  • @WhistleFantasy
    @WhistleFantasy 2 роки тому +21

    "did his code have less errors than mine?" - you can hear non-programmers wrote this script.

  • @jrock2720
    @jrock2720 3 роки тому +8

    haha we're all laughing at you, gilfoyle - makes me laugh every time

  • @trym2121
    @trym2121 5 років тому +5

    Three way fight. The only way to coexist 'peacefully'

  • @kintondie
    @kintondie 6 років тому +100

    Ohhh. The guy is literally like one of my old colleagues. So noisy in that high pitch voice. And taking credits for everything

    • @saqlainalvi5485
      @saqlainalvi5485 5 років тому +1

      My supervisor was that high-pitched guy at my old company. Guy made me want to cut my ears off every time he called my name

  • @nik-ys8ki
    @nik-ys8ki 3 роки тому +5

    " i m not gonna beg "
    "PLEASE"
    "PLEASE"
    "PLEASE"

  • @aiden7279
    @aiden7279 4 роки тому +21

    Never knew The Hound is a coder. What a cool guy.

  • @MonteLogic
    @MonteLogic 5 років тому +39

    Dude this show is my life.

  • @ROJTHEGOAT
    @ROJTHEGOAT 2 роки тому +4

    The Type O joke is low key 🤣 funny

  • @npip99
    @npip99 4 роки тому +3

    4:42 That pentagram lol

  • @joseville
    @joseville Рік тому

    I'm just impressed someone can find all the errors and bugs in a piece of course

  • @alberts.3631
    @alberts.3631 6 років тому +87

    haha they actually put "made in china" song lol.

  • @giovannigonzalez6349
    @giovannigonzalez6349 4 роки тому +2

    Danny, the hr lady,and John are the only 3 people who won against Gilfoyle(HR lady managed to actually annoy Gilfoyle by being right,to an extent).Dinesh never beat Gilfoyle but he was the only person who could keep up with him.

  • @besllu8116
    @besllu8116 3 роки тому

    Man, I would live in their world, as Russ Hanneman. Tres commas!!!
    lol.

  • @aigbilueseeronmonsele4255
    @aigbilueseeronmonsele4255 4 роки тому +3

    Nobody:
    Dinesh: I'm the fucking Tortoise!

  • @NatureFreak1127
    @NatureFreak1127 3 роки тому +16

    I have so much sympathy for Dinesh, he tries so hard. 😂

  • @derrick20
    @derrick20 3 роки тому +17

    I don’t really see how gilfoyle saw that as a “victory”, he just predicted the obvious basically

  • @chukwumakelechi2006
    @chukwumakelechi2006 3 роки тому +90

    “You just have to swear not to tell everyone”
    Dinesh: “I swear”
    Everyone, everyone... my code is better than......

  • @denisblack9897
    @denisblack9897 5 років тому +13

    MISTAKE HOUSE! haha

  • @ohWowYoutube
    @ohWowYoutube 4 роки тому +8

    "Everyone is laughing" 😂

  • @nandan580i
    @nandan580i 8 місяців тому

    These two are like a married couple with 20+ or so years of marriage behind them...they are comfortable enough to abuse, tease, make derogatory comments to each other and yet they are the best duo in tge series.

  • @tarifadib
    @tarifadib 4 роки тому +8

    gilfoyle watches GOT. uses FEWER from Baratheon🤣

    • @BastardOfTheNorth
      @BastardOfTheNorth 4 роки тому

      Actually Stannis used it because it's correct. Same reason Gil does.

    • @tarifadib
      @tarifadib 4 роки тому

      @@BastardOfTheNorth Baratheon is Stannis' last name😂 if you watched the show, I dont have to clarify which Baratheon.

    • @BastardOfTheNorth
      @BastardOfTheNorth 4 роки тому

      @@tarifadib I am aware of that.

  • @Kncperseus
    @Kncperseus 4 роки тому +1

    Cute how Jared stills the gong

  • @jeroddd
    @jeroddd 5 років тому +9

    Higher Brothers 👌🏾👌🏾👌🏾👌🏾

  • @kshyr811
    @kshyr811 3 роки тому +7

    2:59 "I hope the book you're reading is for work"
    Book: "Coders at work"

    • @kshyr811
      @kshyr811 3 роки тому

      @@user-dp5fq4vc8m thanks

  • @arabianprince7508
    @arabianprince7508 6 років тому +11

    I liked his jokes

  • @mustangrt8866
    @mustangrt8866 8 місяців тому

    I love how Gilfoyle can troll Dinesh into a scene

  • @TheLionManOnline
    @TheLionManOnline 4 роки тому +9

    00:54 if you saw it give yourself a punch.

  • @samrodshenassa978
    @samrodshenassa978 4 роки тому +25

    Wonder what those who neither work in tech nor are familiar with it thin of this.
    I must admit, while I used to be intimidated by PRs early on, now they either reinforce my good habits or address my bad ones. So they're win-wins all around.
    And yes, especially with bigger PRs reviewed by more people, there's a nice sense of satisfaction when it's approved on the first pass. Like, BOOM! Nailed it!

  • @brucetrunks01
    @brucetrunks01 6 років тому +149

    So danny got them both ??

  • @A_A_K_123
    @A_A_K_123 4 роки тому +5

    I'm the f***in' tortoise.

  • @timturner7609
    @timturner7609 2 роки тому +1

    Not sure if I'd quit or give that one dude swirlies every time he opened his goddamned mouth.

  • @mirsahib596
    @mirsahib596 Рік тому +3

    dinesh and gilfoye are like two sibling always fighting each other but the moment someone hurt one of them their blood gets thicker than water

  • @johnyepthomi892
    @johnyepthomi892 3 роки тому +42

    i know it’s a hard time with all this covid shit but always..always Tabs over spaces.

    • @KohenChia
      @KohenChia 3 роки тому +1

      oh hell no

    • @johnyepthomi892
      @johnyepthomi892 3 роки тому +3

      @@KohenChia This is not meant for people that uses Microsoft Word as their IDE

    • @kutlumzrak2689
      @kutlumzrak2689 3 роки тому

      Visual Studio Code with plugins for language syntax helper s installed changed my life.
      Pycharm is also pretty good at that.

  • @CrispyWater4Sale
    @CrispyWater4Sale 3 роки тому +1

    Damn the Higher Brothers got a song used in silicon valley

  • @theencryptedpartition4633
    @theencryptedpartition4633 3 роки тому

    Damn. Gilfoyle is just a Rick from Rick and Morty. But a 32bit

  • @medilies
    @medilies 4 роки тому +32

    Going to the comments section is a must

  • @redemolisher
    @redemolisher 4 роки тому +1

    They are the definition of a married couple

  • @amansharma4358
    @amansharma4358 Рік тому

    One of the best series I have ever watched

  • @tweetdezweet
    @tweetdezweet 2 роки тому

    This is new to me... Stories get moved to review and the sprint is done... Well I guess they have a different definition of Done 😊

  • @ninadlohar103
    @ninadlohar103 3 роки тому

    the office looks more like coderHQ, Texas

  • @lfrit0
    @lfrit0 3 роки тому +2

    Dinesh my man... Type O is the type you go to when you need blood : (

  • @vicentcarro
    @vicentcarro 6 років тому +27

    Ixalan is a Magic: The Gathering expansion block

  • @menzimabuza1746
    @menzimabuza1746 2 роки тому

    Wait thats Gabe..what is Gabe dokng there..
    Probably telling people to shut up about the sun😊

  • @jeroddd
    @jeroddd 6 років тому +24

    HIGHER BROTHERS

  • @davidn7026
    @davidn7026 4 роки тому +6

    George eRRor Martin

  • @Gambit_LeBeau
    @Gambit_LeBeau 3 роки тому +9

    I loved how this show always wrote Gilfoyle & Dinesh to have a in work feud as who is the better coder. Yet like the episode where they go to Double A warehouse & they see the calculation of Blaine's pre skecthes & they start SWATTING (code)aka insults like fuck Gina, let Blaine die etc.

  • @oakleyorbit
    @oakleyorbit 4 роки тому +4

    I hope I never have to work with a Danny.

  • @rigoblues
    @rigoblues 4 роки тому +2

    What if San Francisco people didn't saw this as a comedy series and actually think this is the way they should behave at work.

  • @hullmining6903
    @hullmining6903 4 роки тому

    George eRRor Martin is a must to read book

  • @emptylanternmedia2248
    @emptylanternmedia2248 3 роки тому

    He really is the cool cousin

  • @marcosteinke
    @marcosteinke 4 роки тому +3

    They should have used Object Calisthenics... They wouldn't have finished

  • @quachhengtony7651
    @quachhengtony7651 5 років тому +8

    "Gilf"

  • @gearsdan
    @gearsdan 3 роки тому

    i miss this show so much

  • @pyew9038
    @pyew9038 4 роки тому

    Love the outro

  • @thomaspotterdotexe
    @thomaspotterdotexe 3 роки тому

    So this is where Gabe after Sabre.

  • @Kazamajin32
    @Kazamajin32 4 роки тому

    Lovely office

  • @AutoFirePad
    @AutoFirePad 3 роки тому +1

    Gilfoyle == JonathanCoulton + RonSwanson

  • @ap-pv7ug
    @ap-pv7ug 4 роки тому +4

    Is Dinesh using a Monokai theme? I can't tell.

  • @jackdonaldson2025
    @jackdonaldson2025 6 років тому

    What does that book say on gilfoyle’s desk?

  • @hunterstommygun5716
    @hunterstommygun5716 3 роки тому

    Consider the tortoise- Dinesh

  • @Enzorgullochapin
    @Enzorgullochapin Рік тому

    The Jackrabbit Always Wins

  • @nccamsc
    @nccamsc 2 роки тому

    Dinesh didn't run the test suite, assuming they have one.

  • @snjvbss
    @snjvbss 4 роки тому +3

    Ahahha I'm laughing at this video

  • @Sunitash753
    @Sunitash753 2 роки тому

    the best web series I have watched

  • @kenwu7
    @kenwu7 3 роки тому +5

    2:26 gilfoyle turns around and says less errors lol

  • @krombopuloslincler4849
    @krombopuloslincler4849 3 роки тому +2

    How to love this show more???

  • @jayseagal3681
    @jayseagal3681 3 роки тому

    They are both the best pair their is

  • @jandude6398
    @jandude6398 5 років тому +14

    *bugs lightgear*

  • @Mrslykid1992
    @Mrslykid1992 3 роки тому

    I like the man in China song!

  • @mindful_minipods
    @mindful_minipods Рік тому

    ChatGPT enters room.

  • @patrickdekker3934
    @patrickdekker3934 3 роки тому +4

    Gilfoyle has good taste tho, ixalan was a good expansion

    • @Chris_and_Two_Little_Gamers
      @Chris_and_Two_Little_Gamers 2 роки тому

      despite I disagree about Ixalan, as a fellow MTG player I think your comment is very under appreciated