What is clean code? - Uncle Bob

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025
  • #cleancode #cleanarchitecture #unclebob #softwaredevelopmenttips #robertmartin
    In this video, Robert C. Martin (Uncle Bob) the author of the books Clean code and Clean Architecture speaks on what clean code really looks like from the perspective of Bjarne Stroustrup the inventor of the C++ programming language, the chief scientist Grady Booch, Michael Feathers and the Inventor of the wiki ward Cunningham. Thoughts?
    Source:
    • Clean Code - Uncle Bob...
    The first wiki: wiki.c2.com/?W...

ความคิดเห็น • 34

  • @bundlesofun9568
    @bundlesofun9568 หลายเดือนก่อน +3

    "Clean code looks like it was written by someone who cares" that's always resonated with my the most. Even if I didn't know what I was doing, or I didn't have a specific design pattern down, I always wanted it to be a welcoming experience to come back to at any time.

  • @perfectionbox
    @perfectionbox 2 หลายเดือนก่อน +41

    Clean code is that which causes the fewest number of WTFs/minute when read 🤣

    • @jarlfenrir
      @jarlfenrir 2 หลายเดือนก่อน +3

      Not "the fewest". Zero WTF/minute.

    • @riten
      @riten 2 หลายเดือนก่อน +5

      @@jarlfenrir I dont think you code

    • @MrEliteXXL
      @MrEliteXXL 2 หลายเดือนก่อน +1

      Classic meme

    • @jarlfenrir
      @jarlfenrir 2 หลายเดือนก่อน +2

      @@riten I don't think you've watched the video

    • @mannig.faltigkeit2341
      @mannig.faltigkeit2341 2 หลายเดือนก่อน +1

      Isn't this included in his book 'Clean Code' in form of a comic?

  • @yapdog
    @yapdog 2 หลายเดือนก่อน +6

    When I worked in a startup, the other programmers remarked at how "neat" and "easy to understand" my code was. I mean, I'm a cynical old dude, too, but it *is* possible to write code in the care of others.... and to have them notice.

  • @kudorgyozo
    @kudorgyozo 2 หลายเดือนก่อน +4

    Clean code is something I have yet to witness in my 17 years as a software developer. For me it is almost a myth or legend at this point.

    • @johnsmith-ro2tw
      @johnsmith-ro2tw 2 หลายเดือนก่อน +2

      it's funny that SW companies have raised the bar so high at job interviews, with 3 or more rounds of interviews, and live coding exercises and sh**, and yet, we have veterans in the SW industry like yourself who have failed to see clean code. It's almost as if the SW hiring process was broken.
      The owner of the "the internet of bugs" YT channel has even more XP than you and he says he has yet to see evidence that someone who passed those silly types of interviews end up being better programmers.

    • @SufianBabri
      @SufianBabri 2 หลายเดือนก่อน

      @@johnsmith-ro2tw the interview process is indeed rotten, and yet people are saying that if Google is following it then it should be the best one for anyone out there.
      Funny world we live in.

  • @DinoDiniProductions
    @DinoDiniProductions 2 หลายเดือนก่อน

    Here's my definition of clean code 1:55 in: Clean code is code that does not fall apart, cease to work or cease to be intelligible or modifiable the moment some dirt gets thrown on it.

  • @rossterry3002
    @rossterry3002 หลายเดือนก่อน +1

    I like to close my eyes and pretend its Vizzini from princess bride talking

  • @SeriousAlexej
    @SeriousAlexej 2 หลายเดือนก่อน +9

    Clean code is in viewer's eyes but I'd say it should not invoke the "fight or flight" feeling. Ie:
    1. It's not repulsive.
    2. You feel minimal to none desire to add or change something about it.

  • @Libertarian1208
    @Libertarian1208 หลายเดือนก่อน

    In Python you can avoid loop duplication by defining a generator. More elegant and easier to use than passing a lambda argument.

  • @DevMeloy
    @DevMeloy หลายเดือนก่อน

    I always say, code should tell a story.

  • @jagagemo8141
    @jagagemo8141 หลายเดือนก่อน

    CLEAN CODE IS CODE I CAN READ.

  • @GordonRoland
    @GordonRoland 2 หลายเดือนก่อน +2

    Hemingway's "Old Man and the Sea" should be everyone"s model for clean code.

    • @isuckatthisgame
      @isuckatthisgame 2 หลายเดือนก่อน

      Explane please

    • @GordonRoland
      @GordonRoland 2 หลายเดือนก่อน +1

      @@isuckatthisgame Concise, to the point, nothing unneeded to tell the story.

    • @isuckatthisgame
      @isuckatthisgame 2 หลายเดือนก่อน

      @@GordonRoland thank you. 🤙

  • @Drudge.Miller
    @Drudge.Miller 2 หลายเดือนก่อน +2

    Well, I got the idea but good luck fulfilling everyones expectations.

  • @stefanslehta6098
    @stefanslehta6098 2 หลายเดือนก่อน +3

    "You may think that your job is to get code to work, that's not your job, that's half of your job, and it's the least important half."
    This statement seems so detached from the reality that exists when you just think about code.
    Your job is quite literally to write something that works and brings immediate value.
    Would love to see a company manager that tells you to go ahead and refactor your code for a month to get it into a state where it's more readable for the next person.

  • @uumlau
    @uumlau 2 หลายเดือนก่อน +1

    I dislike the term "clean code" for the same reason I dislike the term "best practices". It tends to espouse one's opinion as moral virtue. Instead of using such terms, I would prefer people spoke more along the lines of, "In my experience, here are patterns made my work experience more difficult, and here are patterns that made my work easier."
    That said, if I were to promote a version of "clean code", I would say, "Is it easy to read? Is it easy to debug? Is it easy to change? If so, then it is fair to say it is clean." Another way to phrase it is along the lines of the "Golden Rule": write code for others, as you would have others write code for you.

  • @mowinckel10
    @mowinckel10 2 หลายเดือนก่อน +4

    Code is for humans.
    If it was for the computer, then all code would be machine code.
    Code is for humans. Please write code like you understand that.

  • @magnusmalmborn8665
    @magnusmalmborn8665 2 หลายเดือนก่อน

    Clean code is code that doesn't raise you mythos score...

  • @adambickford8720
    @adambickford8720 2 หลายเดือนก่อน

    If I wrote it? Clean. If I inherited it, not so much.
    The code itself is a MacGuffin.

    • @roslin8060
      @roslin8060 2 หลายเดือนก่อน +1

      There's a third option, although technically a combination of the first two. You wrote the code, then came back to it half a year later.

  • @personalaccount1515
    @personalaccount1515 2 หลายเดือนก่อน

    Fisrt

  • @Cadet1249
    @Cadet1249 2 หลายเดือนก่อน +3

    uncle bob sucks

    • @CounterFragger
      @CounterFragger 2 หลายเดือนก่อน +7

      Why ? Because you use to write unreadable code ?

    • @m13v2
      @m13v2 2 หลายเดือนก่อน +1

      as in „the vacuum cleaner of software engineering“ keep on sucking bob! keep on sucking!

    • @SufianBabri
      @SufianBabri 2 หลายเดือนก่อน

      @@CounterFragger see the glass as half-filled. He just saves few CPU cycles by writing obfuscated code, and you're making fun of his code obfuscation and deobfuscation skills? Unfair!?