237
Tabs vs Spaces (lemmy.ml)
submitted 4 years ago* (last edited 4 years ago) by AgreeableLandscape@lemmy.ml to c/programmerhumor@lemmy.ml
top 12 comments
sorted by: hot top controversial new old
[-] davidgro@lemmy.world 16 points 1 year ago

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

[-] camr_on@lemmy.world 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

[-] zbecker@mastodon.zbecker.cc 4 points 1 year ago

@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@lemmy.world 6 points 1 year ago

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".

[-] Streetdog@lemmy.world 2 points 1 year ago

I'm just here for the moment. Keep it up.

[-] zbecker@mastodon.zbecker.cc 1 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@lemmy.world 9 points 1 year ago

Enable "Show whitespace characters" master race!

[-] Onlytanner@lemmy.world 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.

[-] zqwzzle@lemmy.ca 4 points 1 year ago

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

[-] nailbar@sopuli.xyz 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

[-] whoamibro@lemmy.world 4 points 1 year ago

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

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

Programmer Humor

32124 readers
1313 users here now

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

Rules:

founded 5 years ago
MODERATORS