Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
flamingo_pinyata ( flamingo_pinyata@sopuli.xyz )  to Programmer Humor@programming.dev · 10 months ago

You can pry pattern matching from my cold dead hands

sopuli.xyz

message-square
73
link
fedilink
327

You can pry pattern matching from my cold dead hands

sopuli.xyz

flamingo_pinyata ( flamingo_pinyata@sopuli.xyz )  to Programmer Humor@programming.dev · 10 months ago
message-square
73
link
fedilink
  • bleistift2 ( bleistift2@sopuli.xyz ) 
    link
    fedilink
    English
    arrow-up
    12
    ·
    10 months ago

    You can use spaces in Python.

    • Ethan ( firelizzard@programming.dev ) 
      link
      fedilink
      English
      arrow-up
      12
      ·
      10 months ago

      Indentation-driven control flow is one of the most cursed things ever invented, excluding things explicitly designed to inflict pain or death.

      • CompactFlax ( CompactFlax@discuss.tchncs.de ) 
        link
        fedilink
        English
        arrow-up
        7
        ·
        10 months ago

        White space sensitive languages are evil.

      • KSP Atlas ( KSPAtlas@sopuli.xyz ) 
        link
        fedilink
        arrow-up
        4
        ·
        10 months ago

        Haskell has the choice of both indentation based and brackets for things like do blocks, but most people use indentation based cause it’s the norm and looks cleaner

    • marduk ( marduk@lemmy.sdf.org ) 
      link
      fedilink
      arrow-up
      12
      ·
      10 months ago

      Two, three or four spaces? If you answer wrong I’ll never forgive you

      • TeamAssimilation ( TeamAssimilation@infosec.pub ) 
        link
        fedilink
        English
        arrow-up
        9
        ·
        10 months ago

        Whatever your place defines as a standard. I’ve seen ugly code in C, JavaScript, Java, etc., that uses them all over the place because they’re not mandatory.

        If you don’t have consistent indenting, your code looks like copy/paste from several sources; but if you do have consistent indenting, then the indenting of Python is a non-issue.

      • qjkxbmwvz ( qjkxbmwvz@startrek.website ) 
        link
        fedilink
        arrow-up
        6
        ·
        10 months ago

        Per the Linux kernel coding style:

        Tabs are 8 characters, and thus indentations are also 8 characters. There are heretic movements that try to make indentations 4 (or even 2!) characters deep, and that is akin to trying to define the value of PI to be 3.

        • hemko ( hemko@lemmy.dbzer0.com ) 
          link
          fedilink
          English
          arrow-up
          7
          ·
          10 months ago

          First off, I’d suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it’s a great symbolic gesture.

      • ChaosMonkey ( ChaosMonkey@lemmy.dbzer0.com ) 
        link
        fedilink
        arrow-up
        2
        ·
        10 months ago

        Depends on the mood.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 474 users / day
  • 2.37K users / week
  • 3.67K users / month
  • 7.54K users / 6 months
  • 463 local subscribers
  • 33.6K subscribers
  • 1.55K Posts
  • 25.4K Comments
  • Modlog
  • mods:
  • Feyter ( Feyter@programming.dev ) 
  • adr1an ( anzo@programming.dev ) 
  • BurningTurtle ( BurningTurtle@programming.dev ) 
  • Pierre-Yves Lapersonne ( pylapp@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code