Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is PEP-8 dead?
#9
(Oct-20-2018, 02:06 PM)ichabod801 Wrote: I am opposed to the moderation team enforcing PEP-8 in any way. PEP-8 is a style guide, not the style guide. Guido has clearly stated that it was not meant to be the be-all end-all for all Python coding. It was only meant as the style guide for the code in the standard library, and not even all of that meets the strict definition of it. And as PEP-8 says, "Consistency within a project is more important" than consistency with PEP-8. Among other things, I think that means that if their teacher is using camelCase, they should be using camelCase.

As for bad coding practices, that's up to the users of the board, not the moderation team. I often do it when dealing with newbies. I don't always detail all the problems, especially in larger bits of code, but rather the things that pop out at me.

I can read camelCase fine, and I would be quite happy if no one on this board ever pointed out that posted code was not PEP-8 compliant.
(Oct-20-2018, 03:32 PM)wavic Wrote: All I care about is to write readable for me and the others code. This is enough to fit into pep-8.
I think these posts hit the nail on the head of my opinion as well.

However one thing that drives me nuts is when people use something other than 4 space indentation (especially the 1,2, or 3 spaced indents). I usually will mention to them about pep 8. But that does not mean i would invoke a rule that you have to post 4 spaces to be allowed to post here.

the only thing i think mods be required to do is maintain a friendly environment, remove spam, and make posts easier to read (at least informing users to put their code in code tags, if not do it for them, fix bad titles, etc.).

(Oct-20-2018, 09:39 AM)volcano63 Wrote: don't you think pointing out a code that is not PEP-8 compliant should get some priority?
I do think our tutorials should be PEP 8 complaint, but that is just my opinion. And especially if the person asks how to make their code better.
Recommended Tutorials:
Reply


Messages In This Thread
Is PEP-8 dead? - by volcano63 - Oct-20-2018, 09:39 AM
RE: Is PEP-8 dead? - by snippsat - Oct-20-2018, 11:07 AM
RE: Is PEP-8 dead? - by volcano63 - Oct-20-2018, 11:26 AM
RE: Is PEP-8 dead? - by snippsat - Oct-20-2018, 12:57 PM
RE: Is PEP-8 dead? - by ichabod801 - Oct-20-2018, 02:06 PM
RE: Is PEP-8 dead? - by volcano63 - Oct-20-2018, 02:52 PM
RE: Is PEP-8 dead? - by buran - Oct-20-2018, 03:02 PM
RE: Is PEP-8 dead? - by wavic - Oct-20-2018, 03:32 PM
RE: Is PEP-8 dead? - by metulburr - Oct-20-2018, 06:15 PM
RE: Is PEP-8 dead? - by nilamo - Oct-25-2018, 12:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is comp.lang.python dead? Winfried 3 4,755 Aug-25-2018, 12:04 AM
Last Post: metulburr
  WYSIWYG dead, source mode enabled metulburr 0 2,846 May-31-2017, 01:26 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020