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

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 hours ago
message-square
157
fedilink
  • marduk@lemmy.sdf.org
    link
    fedilink
    arrow-up
    17
    ·
    20 hours ago

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

    • a_non_monotonic_function@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      3 hours ago

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

    • qjkxbmwvz@startrek.website
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      15 hours 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@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        7
        arrow-down
        1
        ·
        13 hours 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.

    • TeamAssimilation@infosec.pub
      link
      fedilink
      English
      arrow-up
      14
      ·
      19 hours 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.

    • Pennomi@lemmy.world
      link
      fedilink
      English
      arrow-up
      20
      ·
      20 hours ago

    • fartsparkles@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      19 hours ago

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

    • SpaceNoodle@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      20 hours ago

      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