The Bard's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sjmarf to Programmer Humor@programming.dev • 10 months ago

Brace Style

sh.itjust.works

message-square
90
fedilink
1.05K

Brace Style

sh.itjust.works

Sjmarf to Programmer Humor@programming.dev • 10 months ago
message-square
90
fedilink
alert-triangle
You must log in or register to comment.
  • @Fillicia@sh.itjust.works
    link
    fedilink
    63•10 months ago

    • go $fsck yourself
      link
      fedilink
      English
      17•10 months ago

      It’s just YAML…

      • @Fillicia@sh.itjust.works
        link
        fedilink
        23•10 months ago

        YAML makes you appreciate Python’s 4 spaces indentation.

        • Victor
          link
          fedilink
          12•10 months ago

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

          • @zalgotext@sh.itjust.works
            link
            fedilink
            8•10 months ago

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

          • @Fillicia@sh.itjust.works
            link
            fedilink
            19•10 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.

    • @Kojichan@lemmy.world
      link
      fedilink
      2•10 months 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
        2•10 months 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
        1•10 months ago

        porn.xml

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

Programmer Humor@programming.dev

!programmer_humor@programming.dev
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
  • 3 users / day
  • 216 users / week
  • 763 users / month
  • 2.39K users / 6 months
  • 1 subscriber
  • 1.13K Posts
  • 20.2K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org