The Bard's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 2 years ago

Brace Style

sh.itjust.works

message-square
90
link
fedilink
1.05K

Brace Style

sh.itjust.works

Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 2 years ago
message-square
90
link
fedilink
  • Fillicia@sh.itjust.works
    link
    fedilink
    arrow-up
    64
    arrow-down
    1
    ·
    2 years ago

    • go $fsck yourself@lemmy.world
      link
      fedilink
      English
      arrow-up
      17
      ·
      2 years ago

      It’s just YAML…

      • Fillicia@sh.itjust.works
        link
        fedilink
        arrow-up
        23
        ·
        2 years ago

        YAML makes you appreciate Python’s 4 spaces indentation.

        • Victor@lemmy.world
          link
          fedilink
          arrow-up
          12
          ·
          2 years ago

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

          • Fillicia@sh.itjust.works
            link
            fedilink
            arrow-up
            19
            ·
            2 years 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.

          • zalgotext@sh.itjust.works
            link
            fedilink
            arrow-up
            8
            ·
            2 years ago

            It does, but most style guides and autoformatters will use 4

    • Kojichan@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      I’d love to see your .editorconfig.

      …

      …

      What’s that in your project root? …pom.xml? Misread that at first as porn.xml.

      • Fillicia@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        I’m not the OG on this, just an old reddit post I remembered

        https://old.reddit.com/r/ProgrammerHumor/comments/9fhvyl/writing_yaml/

      • 0ops@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        porn.xml

        If I had a nickel every time I read it like that

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.

  • 92 users / day
  • 1.61K users / week
  • 4.35K users / month
  • 9.87K users / 6 months
  • 1 local subscriber
  • 29.7K subscribers
  • 1.51K Posts
  • 26.9K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.14
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org