New pages
Jump to navigation
Jump to search
- 12:37, 16 December 2023 Python Design (hist | edit) [1,265 bytes] NickPGSmith (talk | contribs) (Created page with "== Functions == * Do one thing and do it well ** Should be at the same level of abstraction * Command-query separation: should either make some change or return data * Only request information it needs * Keep the number of paramters minimal ** An indication of how focused the function is * Don't create an use an object in the same place ** Use dependency injection * Don't use flag arguments ** can mean the funcrion should be two distinct functions to handle each case *...")