VirtualTam's bookmarks

  1. source-file [-Fnqv] [-t target-pane] path ...
                  (alias: source)
            Execute commands from one or more files specified by path
            (which may be glob(7) patterns).  If -F is present, then
            path is expanded as a format.  If -q is given, no error
            will be returned if path does not exist.  With -n, the
            file is parsed but no commands are executed.  -v shows
            the parsed commands and line numbers if possible.
    
    • Check project import paths and compare with architechure rules defined in a configuration file
    • Useful for hexagonal / onion / DDD / MVC and other architectural patterns
  2. The conflict between subclassing and composition is as old as object-oriented programming. The latest crop of languages like Go or Rust prove that you don’t need subclassing to successfully write code. But what’s a pragmatic approach to subclassing in Python, specifically?

  3. A class or other object knows too much or does too much, and is therefore difficult to test or change