this post was submitted on 05 Sep 2023
166 points (79.6% liked)

Programming

17489 readers
45 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 [email protected]



founded 1 year ago
MODERATORS
(page 3) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (2 children)

Original poster is right by all accounts, of course. Now, let's come up with exotic significant indentations.

function xyz(a, b):
|   var x = 2

|   if true:
|   |   do_something()
|   else:
|   |   do_something_else()

|   anyway()

Pro: Your editor no longer needs to implement indentation hints.

Con: Looks obstructive if not highlighted like an indentation hint.

Your turn.

load more comments (2 replies)
[–] [email protected] 2 points 1 year ago (1 children)

The choice of having tabs over spaces is essentially the same as putting up wheelchair ramp / elevators, tactile pavement, etc. or not.

You either care to make life easier for people with disabilities to participate in this particular form of social interaction or you don't give a fuck because "you don't like it".

load more comments (1 replies)
[–] [email protected] 2 points 1 year ago
load more comments
view more: ‹ prev next ›