VirtualTam's bookmarks

  1. 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?

    1. Blocking TCP port 53 traffic leads to very strange failures. Don't.
    2. The source you're looking at is not the code running in production.
    3. "Prod" is just another name for "staging".
  2. Vim: Function copy 2022-01-05
    va{Vy
    
    1. Place the cursor somewhere in my method,
    2. va{ to visually select the the code block,
    3. V to turn the selection from character-wise to line-wise,
    4. y to yank