programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
AtegonMA to Programming PollsEnglish ·
edit-2
2 years ago

What is your preferred indentation style?

message-square
message-square
19
link
fedilink
8
message-square

What is your preferred indentation style?

AtegonMA to Programming PollsEnglish ·
edit-2
2 years ago
message-square
19
link
fedilink
  • CameronDev
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    2 years ago

    Spaces don’t require additional key presses, you press tab and it puts in X spaces. No one should be using the spacebar except for when you need to precisely align things. Arguably, no one should be pressing the tab key either, as most IDEs can automatically indent for you, and it doesn’t requires tabs or spaces.

    Annecdotally, tabs don’t display nicely on some braille devices (saw someone mention this on the prettier tabs discussion while researching yesterday). This may come down to the specific device they use, or it could be entirely false, but all the arguments for tabs/spaces a11y have been anecdotal.

    These are all reasons to prefer tabs, but none are reasons to require tabs. And hence, teams will make their own decisions based on what annoys/suits them most.

    https://blog.jetbrains.com/dotnet/2022/08/11/virtual-formatter-in-resharper-2022-2/ https://github.com/prettier/prettier/issues/7475#issuecomment-668544890 - pro tabs

    https://github.com/prettier/prettier/issues/7475#issuecomment-1169470712 - pro spaces, with some arguments for tabs

    https://github.com/prettier/prettier/issues/7475#issuecomment-1169934190 - claims to be blind, no preference either way

    Unfortunately I can’t find the tab display complaint, but it was anecdotal anyway. No one on the internet would lie…

Programming Polls

polls

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: [email protected]

Welcome to the programming polls community! This is a place where you can run polls related to programming

For questions not related to being a poll theres communities such as [email protected] instead and for trivia theres [email protected]

As lemmy doesnt have a built in poll system if you want to run a multiple choice poll you can just make each option its own reply and people can vote by upvoting

  • Logo base by Delapouite under CC BY 3.0 with modifications to add a gradient
Visibility: Public
globe

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

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1 user / 6 months
  • 36 local subscribers
  • 153 subscribers
  • 8 Posts
  • 65 Comments
  • Modlog
  • mods:
  • Ategon
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org