The Belfry
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 11 months ago

Brace Style

sh.itjust.works

message-square
41
fedilink
35

Brace Style

sh.itjust.works

Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 11 months ago
message-square
41
fedilink
  • Fillicia@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    11 months ago

    • mariusafa@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      Literally me every time I want to program something slightly complex in Python.

    • go $fsck yourself@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      11 months ago

      It’s just YAML…

      • Fillicia@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        11 months ago

        YAML makes you appreciate Python’s 4 spaces indentation.

        • Victor@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          11 months ago

          I thought python allowed whatever indentation you wanted as long as it’s consistent?

          • Fillicia@sh.itjust.works
            link
            fedilink
            arrow-up
            1
            ·
            11 months ago

            pep8 calls for 4 space but it is a guidance not a rule.

            Google internal style guide recommend(ed?) 2 spaces to accomodate the line length limit.

        • Simulation6@sopuli.xyz
          link
          fedilink
          arrow-up
          0
          ·
          11 months ago

          4 spaces? Hard core Python programmers must have a callus on their thumbs.

          • BeardedGingerWonder@feddit.uk
            link
            fedilink
            English
            arrow-up
            1
            ·
            11 months ago

            Just assign tab to 4 spaces.

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.

  • 405 users / day
  • 4.05K users / week
  • 9.94K users / month
  • 19.5K users / 6 months
  • 1 local subscriber
  • 24.4K subscribers
  • 1.39K Posts
  • 31.5K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org