Main Page | Recent changes | Edit this page | Page history

Printable version | Disclaimers | Privacy policy

Not logged in
Log in | Help
 

The Elements of Style for Python Programmers

From 6.00 reference wiki

by Rob Miller
and John Guttag

Good programming isn’t just about getting programs to work correctly – it’s also about writing readable programs. When you write a program, you’re actually communicating to two different audiences. The first is the computer that will run it, which cares about precise syntax and correct operation. The other audience is a person – somebody who wants to read your program, understand how it works, and use it or improve on it. That person may even be you, months or years from now, after you’ve forgotten what you were thinking when you wrote the program. Human readers require lots of help in understanding a formal language – help that you can provide by following a few simple rules.

These rules will help you write programs that are more readable and understandable for people. Although the examples use Python, these rules are generic, applying to any programming language.

Topics

Retrieved from "http://slice.csail.mit.edu../../../t/h/e/The_Elements_of_Style_for_Python_Programmers_2162.html"

This page has been accessed 85 times. This page was last modified 09:13, 21 February 2006 by 6.00 reference wiki user Asfandyar.


[Main Page]
Main Page
Recent changes

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports