VA-11 Hall-A Bar
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@ambrosiaforest@lemmy.blahaj.zone to 196@lemmy.blahaj.zone • 1 year ago

fixed rule

lemmy.blahaj.zone

message-square
101
627

fixed rule

lemmy.blahaj.zone

@ambrosiaforest@lemmy.blahaj.zone to 196@lemmy.blahaj.zone • 1 year ago
message-square
101

original: https://lemmy.blahaj.zone/post/8572031

  • @seth@lemmy.world
    link
    fedilink
    22•1 year ago

    deleted by creator

    • @Eagle0600@yiffit.net
      link
      fedilink
      English
      26•1 year ago

      Indents should exclusively be a single tab per indent, not any number of spaces, and width should be handled by the IDE renderer, configurably, rather than baked into the code.

      • @seth@lemmy.world
        link
        fedilink
        6•1 year ago

        deleted by creator

    • @kryptonianCodeMonkey@lemmy.world
      link
      fedilink
      24•
      edit-2
      1 year ago

      Tabs should be 4 spaces because it can be replaced 1:1 with “tabs”.

      For example…

      def foo():
          if bar:
              foobar()
      

      vs…

      def foo():
      tabsif bar:
      tabstabsfoobar()
      

      Put that in your code review, cowards!

      • @ToastedPlanet@lemmy.blahaj.zone
        link
        fedilink
        English
        6•1 year ago

        Only if a person’s machine is set to a tab size of four spaces. By this logic, we would need eight spaces for the people with a larger tab size of eight on their machines so they could be 1:1. Minimizing horizontal space is ideal as not everyone has huge horizontal monitor space to work with. But, everyone has infinite vertical space with scrolling.

        • @brown567@sh.itjust.works
          link
          fedilink
          14•1 year ago

          I think they mean the word ‘tabs’

          • @ToastedPlanet@lemmy.blahaj.zone
            link
            fedilink
            English
            3•1 year ago

            oh lol, I missed that =p

        • 𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠
          link
          fedilink
          4•1 year ago

          If your code takes up so much horizontal space with 4-space tabs, you’re putting too much on one line or indenting too deep. 4-space tabs keeps your line length manageable.

          • @ToastedPlanet@lemmy.blahaj.zone
            link
            fedilink
            English
            2•1 year ago

            Or you’re using four spaces per tab, just throwing that out there. =p

          • @kryptonianCodeMonkey@lemmy.world
            link
            fedilink
            2•1 year ago

            If you have to nest more than 2 layers, rewrite your code.

    • @Still@programming.dev
      link
      fedilink
      English
      16•1 year ago

      I’m a tab stop = 8 kinda guy 2 is just tiny looks like an accidental leading space

      (this is also why using spaces for indentation is bad)

    • @gandalf_der_12te@feddit.de
      link
      fedilink
      5•1 year ago

      using 3 space wide tabs 🙋

      although it doesn’t matter to others, because it’s an editor setting.

      I use nano btw.

      • @CheesyFox@lemmy.world
        link
        fedilink
        2•1 year ago

        nano? I mean, really?

        • @gandalf_der_12te@feddit.de
          link
          fedilink
          1•1 year ago

          nano on the command line with syntax highlighting

          • @CheesyFox@lemmy.world
            link
            fedilink
            1•1 year ago

            why not nvim?

    • @iAvicenna@lemmy.world
      link
      fedilink
      2•1 year ago

      amen

196@lemmy.blahaj.zone

!196@lemmy.blahaj.zone

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: !196@lemmy.blahaj.zone

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

  • No bigotry (transphobia, racism, etc…)
  • No genocide denial
  • No support for authoritarian behaviour (incl. Tankies)
  • No namecalling
  • Accounts from lemmygrad.ml, threads.net, or hexbear.net are held to higher standards
  • Other things seen as cleary bad

Posting rules:

  • No AI generated content (DALL-E etc…)
  • No advertisements
  • No gore / violence
  • Mutual aid posts are not allowed

NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn’t adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.

If you have any questions, feel free to contact us on our matrix channel or email.

Other 196’s:

  • !196@lemmy.world
  • !onehundredninetysix@lemmy.blahaj.zone
  • 543 users / day
  • 2.87K users / week
  • 4.87K users / month
  • 14K users / 6 months
  • 18K subscribers
  • 18.2K Posts
  • 194K Comments
  • Modlog
  • mods:
  • Moss
  • @greembow@lemmy.blahaj.zone
  • moss
  • Queue
  • funky-rodent [he/him]
  • Peachy [they/she]
  • @threegnomes@lemmy.blahaj.zone
  • @greembow@lemmy.world
  • @remotelove@lemmy.ca
  • Roflmasterbigpimp
  • @A_Very_Big_Fan@lemm.ee
  • qaz
  • @A_Very_Big_Fan@lemmy.world
  • @qaz@lemmy.sdf.org
  • qaz
  • @qaz@sh.itjust.works
  • BE: 0.19.1
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org