this post was submitted on 03 Feb 2020
235 points (97.6% liked)

Programmer Humor

32710 readers
224 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
235
Tabs vs Spaces (lemmy.ml)
submitted 4 years ago* (last edited 4 years ago) by [email protected] to c/[email protected]
 
all 12 comments
sorted by: hot top controversial new old
[–] davidgro 17 points 1 year ago (2 children)

Loving these 3 year old posts on the "Hot" view. (Not sarcasm, these are great)

[–] camr_on 6 points 1 year ago

It's like when youtube recommends a 9 year old video and all the comments are from the last month lol

[–] [email protected] 4 points 1 year ago (1 children)

@davidgro @AgreeableLandscape

Are you using hot or active? If you're using active it is because someone posted a comment, as it works via most recent comment instead of post date

[–] Perhyte 6 points 1 year ago (2 children)

They show up in Hot too. Probably because someone on this server loaded the post to make that comment, so it got imported to the server. I guess Hot sorts based on (score and) "new to me", not "new".

[–] [email protected] 2 points 1 year ago

@Perhyte

oh that might be the case that it is new to the server. I didn't even think about that.

[–] devious 10 points 1 year ago (1 children)

Enable "Show whitespace characters" master race!

[–] Onlytanner 6 points 1 year ago

Exactly. I only started doing this maybe in the past year and since then I've become so anal about consistency with my whitespace lol.

[–] whoamibro 4 points 1 year ago

I do 8 spaces to make my code ultra-readable and to discourage too much nesting of things.

[–] [email protected] 4 points 1 year ago (1 children)

It’s easier to do Fibonacci indentation with spaces. https://imgur.com/gallery/JrSd8WS

[–] [email protected] 7 points 1 year ago

I was hoping that link would have been an example of what that would look like

https://devhumor.com/content/uploads/images/October2016/fibbonaci-indentation.jpg

[–] rehabdoll -2 points 1 year ago