1007
C++ Moment (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] Dirk@lemmy.ml 77 points 7 months ago

Python: So you used spaces and tabs for indentation? NOW DIE!

[-] WhiteHawk@lemmy.world 47 points 7 months ago

Mixing spaces and tabs should be a warcrime.

[-] merc@sh.itjust.works -5 points 7 months ago

Find me anyone who claims they use tabs for indentation, and I bet I'll find at least one case where they're using both tabs and spaces.

The only safe way to avoid war crimes is to avoid tabs.

[-] Holzkohlen@feddit.de 7 points 7 months ago

Don't IDEs just replace any tab with 4 spaces anyways? Pretty sure VSCode does

[-] _dev_null@lemmy.zxcvn.xyz 4 points 7 months ago

I    don't    use    an    ide,    but    I    wrote    a    script    that    replaces    any    space    I    type    with    four.

I    haven't    worked    out    all    the    use    cases    yet,    though.

[-] merc@sh.itjust.works 2 points 7 months ago

That's a setting in the editor.

load more comments (14 replies)
load more comments (15 replies)
load more comments (21 replies)
this post was submitted on 28 Feb 2024
1007 points (97.0% liked)

Programmer Humor

32267 readers
19 users here now

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

Rules:

founded 5 years ago
MODERATORS