Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 1.28 KB

programming.md

File metadata and controls

24 lines (20 loc) · 1.28 KB

Programming

Some other wisdom

  • duplication is far cheaper than the wrong abstraction
  • Refactoring = code transformation based on what you’ve learnt from the past
  • Over-engineering = code transformation based on the speculation for the future
  • Comments should describe things that are not obvious from code
  • Zen of Python
    • Explicit is better than implicit.
    • Although practicality beats purity.
    • Errors should never pass silently, unless explicitly silenced.
    • There should be one-- and preferably only one --obvious way to do it.
    • If the implementation is hard to explain, it's a bad idea.
    • If the implementation is easy to explain, it may be a good idea.