GIS Programming Module 1 – Python Environments & Flowcharts
Module 1 examines “The Zen of Python” which is a poem by Tim Peters a software engineer. This poem can be seen by typing “import this” into any Python interpreter and describes what it means to write Python code. “The Zen of Python” is the principals or guidelines on how programmers should write code. These principles suggest to me that we should write code in a way that is easy to read and understand, even though the code may be complicated. I see this as writing code that is modular where the complexity can be broken down into smaller functions that do a specific task. Complexity can also be handled by simplifying the code, by finding ways to reduce the number of lines it takes to accomplish the same task. We should follow these principles not only for others who might later need to interpret the code, but for ourselves to help us in debugging and future alterations. It is up to the programmer to write code that provides the required functionality, but they should make a conscious ef...
Comments
Post a Comment