Lookignat other people's code
Today's title topic is not in reference to someone else's *Python* code that I'm looking at...
Thnaks to my experience with HTML, I volunteered to do some work on my Boy Scout troop's website. (I think this may help get me jumpstarted on more coding in general, BTW.)
Looking at some of the pages, I noticed that, even for something relativwely simple like a small HTML page, the original coder's work can be a little hard to understand by the "next guy", or it may be simply a different style and format that what I'm used to using, or it may use a different method of coding a similar feature.
How prevalent is any of this with Python?
1 Comments:
> How prevalent is any of this with Python?
One thing that can help is to follow PEP 8, the Python Style Guide:
http://www.python.org/dev/peps/pep-0008/
That said, reading and understanding other people's code is an important skill -- almost as important as is writing code that other people (possibly even the future you) can understand.
Post a Comment
<< Home