How To Let People Know You're A Bad Python Programmer
artificialcode.blogspot.com
How To Let People Know You're A Bad Python Programmer
1–10 of 40 posts
Re: How To Let People Know You're A Bad Python Programmer
#2Re: How To Let People Know You're A Bad Python Programmer
#3Re: How To Let People Know You're A Bad Python Programmer
#4The one issue I have is with the PEP 8 camel case reference. I can see the value of everyone keeping the same style while coding, but at the same time who says that style is the best? In terms of "expecting" that style when using other's libraries, you still have to read the docs for library to understand how to use it, so I don't see the ultimate value.
But most importantly: know when to be inconsistent -- sometimes the style guide just doesn't apply. When in doubt, use your best judgment.Re: How To Let People Know You're A Bad Python Programmer
#5Why single out .NET? Am I missing something?
Re: How To Let People Know You're A Bad Python Programmer
#6The one issue I have is with the PEP 8 camel case reference. I can see the value of everyone keeping the same style while coding, but at the same time who says that style is the best? In terms of "expecting" that style when using other's libraries, you still have to read the docs for library to understand how to use it, so I don't see the ultimate value.
Language-wide style conventions make it easier to remember methods and classes since remembering a method like each_with_index as a phrase is easy, attaching a piece of useless data unrelated to what it does like Camel Case vs underscore is harder.
Re: How To Let People Know You're A Bad Python Programmer
#7The one issue I have is with the PEP 8 camel case reference. I can see the value of everyone keeping the same style while coding, but at the same time who says that style is the best? In terms of "expecting" that style when using other's libraries, you still have to read the docs for library to understand how to use it, so I don't see the ultimate value.
The answer to any "who says" question about Python is "Guido van Rossum says". (In the case of PEP 8, Barry Warsaw says as well.)
Re: How To Let People Know You're A Bad Python Programmer
#8These are XXX comments and they're pretty common even with the best developers. They're so common that pretty much every editor has a syntax highlighting regex to detect them.
Re: How To Let People Know You're A Bad Python Programmer
#9Make up excuses like, "I am used to other people testing my code" (This one sounds especially good if your a former .NET developer.) Why single out .NET? Am I missing something?
Re: How To Let People Know You're A Bad Python Programmer
#10> Add comments in the doc string or anywhere, that say, this is "magic", or "bad" and needs to be rewritten. These are XXX comments and they're pretty common even with the best developers. They're so common that pretty much every editor has a syntax highlighting regex to detect them.