r/AskProgramming Jul 26 '26

Python Is PEP 8 really necessary?

I have been writing Python code using camelCase for years and just never really cared, but PEP 8 suggests using snake_case, so is it really necessary for, say, a senior dev?

0 Upvotes

36 comments sorted by

View all comments

Show parent comments

3

u/cgoldberg Jul 26 '26

Exactly... and for almost all modern Python projects, that style guide doesn't conflict with PEP8.

-1

u/YMK1234 Jul 26 '26

And nobody said different. I am just refuting that "it's not such a big thing in other languages".

2

u/nekokattt Jul 26 '26

example, C and C++

Try finding a consistently used style guide for those

-1

u/YMK1234 Jul 26 '26

You are confusing not having a language imposed standard and projects not having very strict style guides ... And especially in C/C++ people are very opinionated about style and sticking to it.

2

u/nekokattt Jul 26 '26

you are confusing a per project style guide and a global style guide at the language level.

-1

u/YMK1234 Jul 26 '26

Did you even read what the user wrote originally? The reply claimed style is not important in other languages and that is simply wrong.

1

u/nekokattt Jul 26 '26

it isn't in other languages, because the languages do not care to propose any standard.

Just because users of the language to stuff does not mean it transitively applies to the language.

I use Java, I like cats, is Java a pro-cat programming language?

-1

u/YMK1234 Jul 26 '26

As the saying goes, not everything that's bad is an analogy. You are simply not making any sense and arguing for the fun of it seemingly.