Lessons learned

Once the project is deemed complete, at least for this particular version, it is a good time to take a step back from programming and planning to review the project and see what went right and what went wrong.

For example, these are some of the things I have learned when writing the fuel farm scenario, in no particular order:

  • Don't try to write the parameters into docstrings until the project is done. Refactoring can cause items to change, such as eliminating getter/setter methods and replacing them with properties.
  • Write basic docstring summaries while coding, as it helps to clarify what a function/method/class is supposed to do. This helps to ensure that a function or method does only one thing, rather than trying to ...

Get Learn Programming in Python with Cody Jackson now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.