165
you are viewing a single comment's thread
view the rest of the comments
[-] xigoi 49 points 11 months ago

Tabs let you define how big you want each indent to be

…except when they don't. Many common environments have a hardcoded tab size of 8, which is insanely big for using it for indentation.

[-] wgs 42 points 11 months ago

Because other people might have restricted environment which might not suit their preference is not a good reason to level it down IMO.

Also, I think 9 is the best size for indent (matter of preference), do you think I should switch to space so everyone can enjoy this wonderful view I have ?

[-] agitated_judge@sh.itjust.works 17 points 11 months ago

Ah, the best kind of indent. A tab and a space.

[-] wgs 9 points 11 months ago

Or just set tabsize to 9, that's the point :)

[-] agitated_judge@sh.itjust.works 2 points 11 months ago
[-] wgs 1 points 11 months ago

Try it and you'll see

[-] xigoi 6 points 11 months ago

It's not just “might”. Termux is pretty much the only good choice for programming on Android.

I think 9 is the best size for indent (matter of preference), do you think I should switch to space

I think you should switch to an exorcist.

[-] wgs 3 points 11 months ago

What's your point ? You can use vim on termux and set the tabsize to whatever you want for example.

[-] MajorHavoc@lemmy.world 1 points 11 months ago

Also :exorcise is only a quick pluginstall away, anyway. /s

[-] xigoi 1 points 11 months ago* (last edited 11 months ago)

Yes, but if you use something like cat, head, less, etc. to view code, or the Python REPL, you're still going to see the default tab size.

[-] wgs 2 points 11 months ago

You can set the tabstop with less -x*n*. But ok I see what you mean. I still stand by my point though. If termux doesn't support setting tabstops and it's an issue, then it's a bug in termux, not a reason to level down your formatting standard.

[-] icesentry@programming.dev 4 points 11 months ago

Why would you ever need 9 other than trolling people on the internet?

[-] wgs 4 points 11 months ago

Straight on point!

load more comments (26 replies)
this post was submitted on 05 Sep 2023
165 points (79.6% liked)

Programming

16687 readers
158 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS