VirtualTam's bookmarks

  1. An updated version of the classic "Basic Computer Games" book, with well-written examples in a variety of common MEMORY SAFE, SCRIPTING programming languages

  2. 1# GNU sed
    2sed -e 's/\x1b\[[0-9;]*m//g'
    3
    4# macOS
    5sed -e $'s/\x1b\[[0-9;]*m//g'
    
  3. 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".