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?