VirtualTam's bookmarks

  1. jwzhacks 2024-11-26

    I have written a lot of software. I used to do it for fun. Then I started getting paid for it. Then it stopped being fun. Then I stopped getting paid for it. And now I write software sometimes for fun, but mostly in self-defense.

    1. The Technologies - A more in-depth look at Rust plugin systems
    2. Getting Started - First steps trying to implement the plugin system
    3. Diving into Dynamic Loading - A closer look at dynamic loading in Rust
    4. Reducing the Pain with Dependencies - Taking a look at the state of dynamic loading in the Rust ecosystem
    5. Getting our Hands Dirty - Finally implementing the plugin system!
    6. Wrapping Up - The last finishing touches and ideas
  2. The format of here-documents is:

    1[n]<<[-]word
    2        here-document
    3delimiter
    

    If any part of word is quoted, the delimiter is the result of quote removal on word, and the lines in the here-document are not expanded.

    This is useful to write scripts that:

    • write scripts (verbatim)
    • execute a sequence of commands (verbatim) on a remote host
  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?