lemmy.onlylans.io
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
flamingo_pinyata@sopuli.xyz to Programmer Humor@programming.dev · 1 day ago

You can pry pattern matching from my cold dead hands

sopuli.xyz

message-square
202
fedilink
466

You can pry pattern matching from my cold dead hands

sopuli.xyz

flamingo_pinyata@sopuli.xyz to Programmer Humor@programming.dev · 1 day ago
message-square
202
fedilink
  • marduk@lemmy.sdf.org
    link
    fedilink
    arrow-up
    19
    ·
    1 day ago

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

    • ChaosMonkey@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      1 hour ago

      Depends on the mood.

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

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

    • Pennomi@lemmy.world
      link
      fedilink
      English
      arrow-up
      21
      ·
      1 day ago

    • TeamAssimilation@infosec.pub
      link
      fedilink
      English
      arrow-up
      15
      ·
      1 day 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@startrek.website
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      1 day 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
        9
        arrow-down
        1
        ·
        1 day 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.

    • fartsparkles@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      1 day ago

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

    • SpaceNoodle@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      1 day 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: [email protected]

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.22K users / day
  • 4.5K users / week
  • 8.87K users / month
  • 17.9K users / 6 months
  • 1 local subscriber
  • 27.9K subscribers
  • 1.99K Posts
  • 76.4K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org