tchncs
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
ambrosiaforest@lemmy.blahaj.zone to 196@lemmy.blahaj.zone · 2 年前

fixed rule

lemmy.blahaj.zone

message-square
101
link
fedilink
628

fixed rule

lemmy.blahaj.zone

ambrosiaforest@lemmy.blahaj.zone to 196@lemmy.blahaj.zone · 2 年前
message-square
101
link
fedilink

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

  • seth@lemmy.world
    link
    fedilink
    arrow-up
    22
    arrow-down
    1
    ·
    2 年前

    deleted by creator

    • Eagle0600@yiffit.net
      link
      fedilink
      English
      arrow-up
      27
      ·
      2 年前

      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
        arrow-up
        8
        ·
        2 年前

        deleted by creator

    • kryptonianCodeMonkey@lemmy.world
      link
      fedilink
      arrow-up
      24
      ·
      edit-2
      2 年前

      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
        arrow-up
        6
        ·
        2 年前

        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
          arrow-up
          14
          ·
          2 年前

          I think they mean the word ‘tabs’

          • ToastedPlanet@lemmy.blahaj.zone
            link
            fedilink
            English
            arrow-up
            3
            ·
            2 年前

            oh lol, I missed that =p

        • 𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.dev
          link
          fedilink
          arrow-up
          4
          ·
          2 年前

          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
            arrow-up
            2
            ·
            2 年前

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

          • kryptonianCodeMonkey@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            2 年前

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

    • Still@programming.dev
      link
      fedilink
      English
      arrow-up
      16
      ·
      2 年前

      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
      arrow-up
      5
      arrow-down
      1
      ·
      2 年前

      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
        arrow-up
        2
        ·
        2 年前

        nano? I mean, really?

        • gandalf_der_12te@feddit.de
          link
          fedilink
          arrow-up
          1
          ·
          2 年前

          nano on the command line with syntax highlighting

          • CheesyFox@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 年前

            why not nvim?

    • Avicenna@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 年前

      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
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 840 users / day
  • 2.09K users / week
  • 3.57K users / month
  • 11.4K users / 6 months
  • 236 local subscribers
  • 18.5K subscribers
  • 20K Posts
  • 229K Comments
  • Modlog
  • mods:
  • Moss@lemmy.blahaj.zone
  • greembow@lemmy.blahaj.zone
  • moss@lemmy.world
  • Queue@beehaw.org
  • funky-rodent [he/him]@lemmy.blahaj.zone
  • Peachy [they/she] @lemmy.blahaj.zone
  • threegnomes@lemmy.blahaj.zone
  • greembow@lemmy.world
  • remotelove@lemmy.ca
  • Roflmasterbigpimp@feddit.de
  • A_Very_Big_Fan@lemm.ee
  • qaz@lemmy.blahaj.zone
  • A_Very_Big_Fan@lemmy.world
  • qaz@lemmy.sdf.org
  • qaz@lemmy.world
  • qaz@sh.itjust.works
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org