this post was submitted on 12 Mar 2024
1099 points (95.8% liked)

Programmer Humor

32479 readers
231 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

Please dont take this seriously guys its just a dumb meme I haven't written a single line of code in half of these languages

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 8 months ago (3 children)

Does "like you're supposed to" mean with tabs, or with spaces?

Because if someone else disagrees you are not going to have fun with their code.

[–] [email protected] 1 points 8 months ago

Technically tabs are just spaces, so if you wanna play it safe use two spaces… probably. 😂

[–] [email protected] 1 points 8 months ago (1 children)
[–] [email protected] 1 points 8 months ago

Arguments on first line will not compile unless using precise alignment to function name

UGH!

Just-- yech!

[–] [email protected] -1 points 8 months ago (1 children)

Who TF codes with tabs? All the editors I know input spaces when pressing tab anyway.

I would not have fun in any language if someone inputted actual tabs and their tab size was different from mine. Chances are my linter would have told me, regardless of language used!

I have worked with OS projects in C and not even those were tab formatted.

[–] [email protected] 5 points 8 months ago* (last edited 8 months ago) (1 children)

Why the fuck does anyone use spaces when tabs mean everyone uses the same tab size as you? That's what they're for!

[–] [email protected] 2 points 8 months ago (1 children)

Yeah, okay. Tell that to every code editor's defaults and every open source projects source code that I have read.

Encountering tab indented files is like encountering ANSI encoded files or /r/n newline'd files. It's not how it should be done. Sorry.

Spaces are there to ensure that everyone sees the same, tabs have issues with internal indentation of function declaration and the sort. Yeah it indents like correctly, but then you do need spaces to indent vertically called functions correctly and it always ends up being a cluster fuck. Spaces are a standard for a reason.

[–] [email protected] 1 points 8 months ago (1 children)

Stop lining up to function names like it's fucking ASCII art!

It's a hierarchy, not a grid! Did your function overflow one line? Add an extra tab. I don't give a shit how long your function name is, you prima donna, your code should look clean even if some maniac is using 12-point Arial.

[–] [email protected] 1 points 8 months ago (1 children)

You write as if you manually format stuff, auto formatters are a thing since ages ago that conform to stablished coding styles. Take up on stablished coding styles if you are against something as basic as lining up stuff to function names.

At this point I see that our viewpoints are way too different and that your viewpoint is quite disconnected from the coding world in general so, you do you, have a good day.

[–] [email protected] 1 points 8 months ago

Yeah who ever questions established practices in programming. Nobody ever argues about style.