okr765
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
flamingo_pinyata@sopuli.xyz to Programmer Humor@programming.dev · 21 小时前

You can pry pattern matching from my cold dead hands

sopuli.xyz

message-square
157
fedilink
383

You can pry pattern matching from my cold dead hands

sopuli.xyz

flamingo_pinyata@sopuli.xyz to Programmer Humor@programming.dev · 21 小时前
message-square
157
fedilink
  • bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    23
    arrow-down
    3
    ·
    21 小时前

    You can use spaces in Python.

    • Ethan@programming.dev
      link
      fedilink
      English
      arrow-up
      15
      arrow-down
      4
      ·
      19 小时前

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

      • KSP Atlas@sopuli.xyz
        link
        fedilink
        arrow-up
        3
        ·
        13 小时前

        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

      • CompactFlax@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        9
        arrow-down
        2
        ·
        18 小时前

        White space sensitive languages are evil.

    • marduk@lemmy.sdf.org
      link
      fedilink
      arrow-up
      17
      ·
      20 小时前

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

      • a_non_monotonic_function@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        3 小时前

        No one will ever know. That is my editor’s job. XD

      • qjkxbmwvz@startrek.website
        link
        fedilink
        arrow-up
        8
        arrow-down
        1
        ·
        15 小时前

        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@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          8
          arrow-down
          1
          ·
          13 小时前

          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.

      • TeamAssimilation@infosec.pub
        link
        fedilink
        English
        arrow-up
        14
        ·
        19 小时前

        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.

      • Pennomi@lemmy.world
        link
        fedilink
        English
        arrow-up
        20
        ·
        20 小时前

      • fartsparkles@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        19 小时前

        I’m rather partial to five myself but only when I’m feeling fancy.

      • SpaceNoodle@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        20 小时前

        Yes

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
Visibility: Public
globe

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

  • 2.06K users / day
  • 4.5K users / week
  • 8.84K users / month
  • 17.9K users / 6 months
  • 1 local subscriber
  • 27.9K subscribers
  • 1.77K Posts
  • 58.9K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org