🎵 The PEP 8 Song 🎵

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024

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

  • @PythonDiscord
    @PythonDiscord  3 ปีที่แล้ว +138

    Want to read along with the lyrics? We've added the lyrics as subtitles!

    • @guillermogomezchavez2880
      @guillermogomezchavez2880 3 ปีที่แล้ว +5

      It's almost as if the words were already in my head and they simply leave my brain with the rhythm of the song. AMAZING

    • @BlobADob1
      @BlobADob1 3 ปีที่แล้ว +5

      I like the touch of how camelCase is in camelCase in the subtitles. Awesome.

    • @יואלסולימן
      @יואלסולימן 3 ปีที่แล้ว +2

      OH I had no idea you can sing about coding standard :)))
      BTW I just didn't understand how
      "Trailing commas go behind list items
      " relates to "git blame tightens"
      Can someone explain ??

    • @PythonDiscord
      @PythonDiscord  3 ปีที่แล้ว +28

      Say that you have a list of items, like this:
      my_list = [
      "a",
      "b",
      "c",
      ]
      And you want to add an item. If there's already a trailing comma behind the `"c", you can just insert a new line and add a new element there without having to change the line that "c" is on. This means that the commit history for the "c" line still shows who originally committed that line.
      If you have to add a comma after "c" because there was no comma there yet, you'll change that line and your name will now be attached to the most recent commit touching that line. You can still look back further in your commit history, but tools are often designed about easily showing the most recent commit touching a line.

  • @malteiwa
    @malteiwa 3 ปีที่แล้ว +57

    Came from Reddit. Thanks for the nice start in my day!

    • @PythonDiscord
      @PythonDiscord  3 ปีที่แล้ว +9

      Glad we could make your morning better!

  • @DevOpsJourney
    @DevOpsJourney 3 ปีที่แล้ว +45

    Never thought I would add a youtube video to all my documentation .md files.

  • @dennispham_
    @dennispham_ 3 ปีที่แล้ว +48

    And there was much rejoicing..

  • @kennethcristobal7558
    @kennethcristobal7558 3 ปีที่แล้ว +65

    This is legendary, tears are flowing.

  • @realpython
    @realpython 3 ปีที่แล้ว +97

    Haha, so good! 👏👏👏

    • @coop4476
      @coop4476 3 ปีที่แล้ว +2

      Love y'all

    • @ankithabhayan324
      @ankithabhayan324 3 ปีที่แล้ว +3

      Are you the real real python

    • @coop4476
      @coop4476 3 ปีที่แล้ว +2

      @@ankithabhayan324 yeah 100k subs

    • @ankithabhayan324
      @ankithabhayan324 3 ปีที่แล้ว +1

      Damn

    • @hosea_br
      @hosea_br 3 ปีที่แล้ว

      Love ya ppl

  • @Fisher60
    @Fisher60 3 ปีที่แล้ว +85

    This brought me to a full weep. Never in my life have I been so moved. Best beard in the biz.

    • @DamnBoii123
      @DamnBoii123 3 ปีที่แล้ว +1

      Captain Fisher ☝️

  • @BrightBoost
    @BrightBoost 3 ปีที่แล้ว +36

    Love it! Going to show this during my classes instead of the boring PEP8 slides ♡

  • @KoopmanME
    @KoopmanME 3 ปีที่แล้ว +45

    Being a PEP8 advocate myself (with one notable exception: 79 char max line is too short, we go with 100), loved it, sharing with all my peeps.

    • @David-yl6bc
      @David-yl6bc 2 ปีที่แล้ว +1

      Ack on the line-length exception. For everything else I just like that someone else decided something for me :-)

  • @shamrock6644
    @shamrock6644 2 ปีที่แล้ว +5

    I love it. But isn't CamelCase what we use to name classes?

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

      That's PascalCase, not camelCase!
      (how old does a comment have to be before it's no longer socially acceptable to reply to it?)

  • @proceduworld5723
    @proceduworld5723 3 ปีที่แล้ว +10

    Haha fantastic!
    love it!
    "when comments are misleading they will drive people insane" my favorite part.

  • @beetlefeet
    @beetlefeet 3 ปีที่แล้ว +4

    Points for the flipped edge on the cube.

  • @akarys42
    @akarys42 3 ปีที่แล้ว +18

    I should put that in my spotify playlist :P

    • @radhikasudheer
      @radhikasudheer 3 ปีที่แล้ว

      Yes. Yes. Y E S

    • @nou9225
      @nou9225 3 ปีที่แล้ว +1

      aka rys... is that you? I’m wait... it’s all objects!

    • @akarys42
      @akarys42 3 ปีที่แล้ว

      @@nou9225 lmao yes it's me

    • @ankithabhayan324
      @ankithabhayan324 3 ปีที่แล้ว

      @@nou9225 hahah where is "always has been..."? That dude completes the iconic duo 😏

    • @ankithabhayan324
      @ankithabhayan324 3 ปีที่แล้ว

      And I'm ankith101.rar

  • @asmosoinio
    @asmosoinio 3 ปีที่แล้ว +10

    Really like this! Superb combination of nerdy lyrics and quality singing.

  • @MakeDataUseful
    @MakeDataUseful 3 ปีที่แล้ว +6

    I have seriously listened to this 4 times so far. Great work!

  • @SinNombre-wr4ef
    @SinNombre-wr4ef 3 ปีที่แล้ว

    Those horizontal bars 😭😭. Its where the annoying comma is hiding!

  • @unusedTV
    @unusedTV 3 ปีที่แล้ว +8

    Just feel free to ignore that 80 character line width. Something like 120 or 160 is more 21st century.

    • @leonsandy4131
      @leonsandy4131 3 ปีที่แล้ว +8

      I agree that 79 is unusual in actual production these days, but 160 is completely nuts. Most of my projects use 100. Beyond that I really do think it hurts readability, even on modern displays.
      That said, even PEP 8 says you should always make sure you follow the prevailing style for the project you're working on, so if that's 160 line length then that's the maximum you should use.

    • @swierheeres726
      @swierheeres726 3 ปีที่แล้ว +4

      It's not about how wide your screen is, it's mostly about not doing too many different things on a single line.
      See: th-cam.com/video/wf-BqAjZb8M/w-d-xo.html

    • @PythonDiscord
      @PythonDiscord  3 ปีที่แล้ว

      @@swierheeres726 That's a great talk to watch!

  • @jimshapedcoding
    @jimshapedcoding 3 ปีที่แล้ว +3

    Mark my words. This video is going to be in each README.md from now on Python repositories.

  • @JadaXM
    @JadaXM 2 ปีที่แล้ว +1

    Najlepszy prowadzący Doktor Zieliński mnie tu przysłał

  • @schlopping
    @schlopping 2 ปีที่แล้ว +1

    This was in the references of PEP9001 LOL

  • @davidstranava4057
    @davidstranava4057 3 ปีที่แล้ว +4

    Wow. Great job. I think I'm gonna to listen to this everytime before coding session

  • @bogdanpashchenko2142
    @bogdanpashchenko2142 3 ปีที่แล้ว +1

    Dude. I'm grooving and singing along to this like 50th time in a loop. That is so cool.

  • @buntun3670
    @buntun3670 3 ปีที่แล้ว +1

    😂😂 subscribing...singing along to the chorus
    "if comments are misleading it will drive people insane, just try to be empathic - just try to be a friend, its really not that hard just adhere to ...PEEEEP8"

  • @ankithabhayan324
    @ankithabhayan324 3 ปีที่แล้ว +8

    stuck in my head the whooole day...

    • @crediblemulk4638
      @crediblemulk4638 3 ปีที่แล้ว +2

      Yep. Its 10:30am, I just saw this and am curled into a ball in the corner for the rest of the day.

  • @zacharytresidentdigimonenj3397
    @zacharytresidentdigimonenj3397 3 ปีที่แล้ว +3

    This is something I never knew I needed in my life. Thank you. Well done.

  • @KantoKairyu
    @KantoKairyu ปีที่แล้ว +2

    Why doesn’t this have a million views? This is fantastic!

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

      Years later still only 100k?! This is pure gold!

  • @MarinoFrana
    @MarinoFrana 3 ปีที่แล้ว +6

    Can we get this on Spotify, please? :D

    • @PythonDiscord
      @PythonDiscord  3 ปีที่แล้ว +5

      Probably not. It's using a copyrighted melody and, on TH-cam, we're covered by TH-cam's Content ID system. Tom Scott made a good video about that: th-cam.com/video/1Jwo5qc78QU/w-d-xo.html
      (Basically: The copyright holder may or has monetized the video in some regions because they hold the copyright to the melody. If you're seeing ads, it's not us; we're not monetizing the video, but the copyright holder may do that. This is why the video can stay up: without a Content ID system, it would probably have been taken down by now.)

  • @anns5313
    @anns5313 ปีที่แล้ว +2

    Wow, it is beautiful! How could I not find this masterpiece earlier?

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

    *NEVER MIND* -- the answer to my question is in the conversation under the pinned comment.
    -What does "git blame tightens" mean? --0:48-- I don't think git or the "blame" command is mentioned in PEP8. Is "git blame tightens" just a reminder that if you mess up the code you're likely to get properly blamed for it, if the project is under version control?-

  • @patrikhlobil566
    @patrikhlobil566 3 ปีที่แล้ว +1

    Amazing singing performance :D. The text stands for itself !

  • @MakeDataUseful
    @MakeDataUseful 3 ปีที่แล้ว

    I have a question about camel case vs. caps case regarding classes?

  • @ehouston3
    @ehouston3 ปีที่แล้ว +1

    Wow! It must feel awesome to be this creative and create art like this at will. Thank you for sharing and educating. It made me smile, thanks.

  • @juanpisukan
    @juanpisukan 2 ปีที่แล้ว +1

    This video should be called how to play 'PEP 8 with 8 fingers'

  • @krazysalsa
    @krazysalsa 3 ปีที่แล้ว +1

    This is so good! hahahah no excuses now.. to now apply PEP8!!! I will sing this song when I do code review!

  • @jayhiryu2139
    @jayhiryu2139 3 ปีที่แล้ว +1

    This is amazing 😆
    Camelcase hits home had a whole talk about that about 2 weeks ago.

  • @adarshmusa
    @adarshmusa 3 ปีที่แล้ว +8

    This is beautiful.

  • @donotenter578
    @donotenter578 2 ปีที่แล้ว +1

    Just shared this for my students.... hope they get the message. 😎🎵

  • @bendavis1643
    @bendavis1643 3 ปีที่แล้ว +1

    Not the hero we deserved--but the hero we need.

  • @Ddragon1731
    @Ddragon1731 3 ปีที่แล้ว +4

    This is beautiful!

  • @crediblemulk4638
    @crediblemulk4638 3 ปีที่แล้ว

    As a Python programmer for CGI and other requirements, this hit me in the feels. Lololol. Crying with pain and laughter. "Comments are important as long as they`re maintained" Rules to live by. Hahahahahaha. My new favourite song.

  • @rushaan3039
    @rushaan3039 2 ปีที่แล้ว +1

    UNDERRATED ASF

  • @scaritube
    @scaritube ปีที่แล้ว

    Mad World is a fantastic rebel song - turned upside down into a ISO PEP 8 regulation - mad world....

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

    Since hearing this song back then I exclusively use it in all of my python project READMEs

  • @guitaricet
    @guitaricet 2 ปีที่แล้ว +1

    I will send this to my students.

  • @klaatoris
    @klaatoris 3 ปีที่แล้ว +3

    79 char line length is a bit narrow and IMO makes the code _less_ readable. I go by Django's style guide and use 119 for code, 79 for comments. Also, that's a _mighty_ UNIX beard!

  • @EnglishRain
    @EnglishRain 3 ปีที่แล้ว

    1:05 banner regarding comments I need to remember that

  • @noped-out-real-fast
    @noped-out-real-fast 3 ปีที่แล้ว

    OMG. Let's play this at every PyCon!

  • @MosnoAlMoseeki
    @MosnoAlMoseeki 3 ปีที่แล้ว +1

    That was soo good! hahaha, I love it.
    such a lovely voice and great rendition of the original song too, very well done.

  • @NatiiixLP
    @NatiiixLP 3 ปีที่แล้ว

    It's great!
    However, I'm confused about "CamelCase" here because I was under the impression that it was camelCase and PascalCase. Never heard of anything called "mixedCase".
    Plus, and prehaps most importantly, 79 characters per line are a remnant of ancient past and a massive pain when writing even remotely functional code using dictionary comprehensions and similar lenghty syntax, so I'd say that 100 character are the bare minimum today. That way, you should still be able to fit 2-3 files next to each other on any ever so slightly modern screen comfortably.

  • @self-aware986
    @self-aware986 3 ปีที่แล้ว

    So nice song about PEP8, thank you!
    I use PEP8 daily, write comments in code review and send code authors to the PEP8 doc page. From now I will send everyone, who don't follow PEP8, here! xD
    PS: The Mad World song, is one of my favorite that I heard from Donie Darko move at first.

  • @douglasemsantos
    @douglasemsantos 3 ปีที่แล้ว

    Got here from "Talk Python To Me". Great song!

  • @AlexandreCOLONNA
    @AlexandreCOLONNA 3 ปีที่แล้ว +1

    Awesome idea and great voice. Good job pyBro

  • @Xithrius
    @Xithrius 3 ปีที่แล้ว +8

    This is the best song

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

    I really do feel like all coding language style guides etc should be done only in the form of song. Maybe interpreted dance.

  • @wookie1845
    @wookie1845 3 ปีที่แล้ว +2

    Beautiful

  • @johnnordberg
    @johnnordberg 3 ปีที่แล้ว +3

    Wow. Thank you for this! It makes me want to pick up python again.

    • @PythonDiscord
      @PythonDiscord  3 ปีที่แล้ว +4

      That's obviously one of the best compliments to get. If you do pick it up, I hope you'll enjoy it!

  • @MadsDarKristensen
    @MadsDarKristensen 3 ปีที่แล้ว +2

    Simply wonderful :D Well done.

  • @gtugland
    @gtugland 3 ปีที่แล้ว +1

    Fantastic! 😀

  • @IkeVoodoo
    @IkeVoodoo 3 ปีที่แล้ว

    This is now what i listen to while coding, megapog

  • @marcinkondeusz
    @marcinkondeusz 3 ปีที่แล้ว +2

    For me, it is just as great as the original song. Very cool lyrics, i need to learn it 👊😎

    • @leonsandy4131
      @leonsandy4131 3 ปีที่แล้ว +1

      You should! It's pretty easy to play. Maybe you should record a cover of my cover of the cover! 🍋👊

    • @ankithabhayan324
      @ankithabhayan324 3 ปีที่แล้ว +1

      Lemon! Sup

  • @pav431
    @pav431 2 ปีที่แล้ว

    Damn, your voice is absolutely beautiful, 100% fitting the tonality of the song. Amazing parody! (Despite myself not really adhereing to many PEP standards :| )

  • @ddankhazi
    @ddankhazi ปีที่แล้ว

    Beautiful. Thank you.

  • @sxh7
    @sxh7 3 ปีที่แล้ว +3

    Imaging getting rickrolled my some lines of code.

  • @TheSzybas
    @TheSzybas 3 ปีที่แล้ว

    Instant like!!!
    Python, Pep8 and Mad World!!!

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

    but you use camel case for class names 😞

  • @itoldyounottotouchit3336
    @itoldyounottotouchit3336 3 ปีที่แล้ว

    Look at lemon. So inspirational.

  • @Resevillive
    @Resevillive 3 ปีที่แล้ว +1

    I want get flac version!

  • @AlanPope
    @AlanPope 3 ปีที่แล้ว +1

    This is adorable. Thanks for brightening up my morning!

  • @dawidwierzbicki5501
    @dawidwierzbicki5501 3 ปีที่แล้ว +1

    What mic are you using? :o

    • @lemonsaurus
      @lemonsaurus 3 ปีที่แล้ว +2

      It's an sE2200a II C.

  • @ncdave4life
    @ncdave4life 3 ปีที่แล้ว

    Wonderful! But somehow I was expecting something... peppier.

  • @islamalibekov4842
    @islamalibekov4842 3 ปีที่แล้ว +1

    This is awesome🔥
    You made my day!

  • @ericajcruz
    @ericajcruz 2 ปีที่แล้ว

    This is the greatest thing I've ever heard!

  • @abhinavchoudhary6849
    @abhinavchoudhary6849 3 ปีที่แล้ว +1

    Its fully depent on the python

  • @buckothecat
    @buckothecat 2 ปีที่แล้ว

    Started studying python, and the first lesson from the professor is this video. WTF????

  • @alcamargos
    @alcamargos 3 ปีที่แล้ว

    Wow! Great job, it's amazing.

  • @JamesSathre
    @JamesSathre 3 ปีที่แล้ว

    This is great! thanks for creating this.

  • @dewinovita4551
    @dewinovita4551 3 ปีที่แล้ว +1

    Oh my.. this is the best!

  • @Habadabable
    @Habadabable 3 ปีที่แล้ว

    Touching, i found tear in my eye. Nice!

  • @MaksymMinchynskyi
    @MaksymMinchynskyi 3 ปีที่แล้ว

    just 4 spaces, just 4 spaces

  • @_yo72
    @_yo72 ปีที่แล้ว

    It's a masterpiece! I can't stop listening

  • @owen7081
    @owen7081 3 ปีที่แล้ว

    This was amazing, great work!

  • @johannfr
    @johannfr 3 ปีที่แล้ว

    Absolutely wonderful and fantastic performance!

  • @aronsx
    @aronsx 3 ปีที่แล้ว

    the best song of ever!!! Pls add this song to deezer.

  • @GuillermoAlfonsoMorales
    @GuillermoAlfonsoMorales 3 ปีที่แล้ว

    I think I fall in LOVE.

  • @RainLeander
    @RainLeander 3 ปีที่แล้ว

    So. Totally. Happy.

  • @MChardine
    @MChardine 3 ปีที่แล้ว

    Excellent !

  • @DKLHensen
    @DKLHensen 3 ปีที่แล้ว

    Goosebumps... very good this

  • @franciscogilt
    @franciscogilt 2 ปีที่แล้ว

    Awesome song, thank you.

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

    Bravo!! Great song!

  • @ginnudi
    @ginnudi 3 ปีที่แล้ว

    Holy Snake! This is just beautiful

  • @sunritjana4573
    @sunritjana4573 3 ปีที่แล้ว

    Awesome! Nicely made song ;)

  • @abelardodiaz6276
    @abelardodiaz6276 3 ปีที่แล้ว

    Hi from Peru, nice song

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

    hell yeah

  • @martinmeyya-pir9547
    @martinmeyya-pir9547 2 ปีที่แล้ว

    It's amazing!

  • @ivanmelnik1280
    @ivanmelnik1280 3 ปีที่แล้ว

    This is the best song I've heard in my entire life!

  • @Morisando
    @Morisando 3 ปีที่แล้ว +1

    1:19 you're blind solver ain't you

    • @leonsandy4131
      @leonsandy4131 3 ปีที่แล้ว

      I can't solve it blind - though I have tried. Maybe one day. I can solve it in under 50 seconds, but that's not exceptional in any way. Basically it's just a cube that's always on my desk so I have something to fiddle with when I'm programming and I need a moment to think about a problem. A zen cube, if you will.

  • @coltisgreat
    @coltisgreat 3 ปีที่แล้ว

    now im never using camel_case

  • @TheInsinuate
    @TheInsinuate 3 ปีที่แล้ว

    isn't this melody copyrighted or is this under Creative Commons

    • @PythonDiscord
      @PythonDiscord  3 ปีที่แล้ว +1

      It is! Thanks to TH-cam's Content ID system, you can record songs like these and TH-cam will handle the copyright aspect. More specifically, the copyright holder may choose to monetize a video containing their copyrighted material. Tom Scott made a great video about it: th-cam.com/video/1Jwo5qc78QU/w-d-xo.html

  • @IgorIglesias
    @IgorIglesias ปีที่แล้ว

    OMG, so good!❤

  • @sourabhk2373
    @sourabhk2373 3 ปีที่แล้ว

    Can I know the original song on which the tune is based on ?
    Great video btw!

    • @PythonDiscord
      @PythonDiscord  3 ปีที่แล้ว +1

      It's based on the song "Mad World". The song was originally recorded by Tears for Fears (and written by their bassist, Roland Orzabal), but this version was mostly inspired by the cover of that song recorded by Gary Jules for the movie Donnie Darko.