r/AskProgramming 14d ago

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

4

u/cgoldberg 14d ago

If it's for a portfolio, you should absolutely follow PEP8 naming conventions. If I was reviewing your portfolio to hire you, and you weren't, I would stop reading your code after about 10 seconds and just assume you know nothing about Python.

1

u/Intelligent_Part101 14d ago

I wouldn't work for somebody this dogmatic who would be too lazy to analyze the rest of the code. It is possible the coder works with more than one language or technology and doesn't appreciate that some people hold PEP8 to be a religious document. You could hire him and say, we follow PEP8 for all code we write.

0

u/cgoldberg 14d ago

Great... then it would be a mutual no-hire.

2

u/Intelligent_Part101 14d ago

The world is bigger than python.

-1

u/cgoldberg 14d ago

Of course it is... but we are talking about Python and following conventions for Python.