2019 Week 3

Python

I have to thank Fluent Python for all of these tips and trick with Python.

You can implement dunder methods to make an object feel more Pythonic.

You can extend the Format Specification Mini-language.

You can make properties of an object read only.

Emacs

You can find and replace across multiple files.

  M-x find-dired
  <pick the directory you want to search in>
  Run find (with args): -name "*.json*"
  t  # To select all files from the previous command
  M-x dired-do-find-regexp-and-replace
  <find regex>
  <replace regex>

You can save multiple buffers at a time.

QMK

The mouse keys are pretty simple to use.

Thoughts

I don’t know how often I’ll use that “read-only” trick in my day to day work. I still think it’s a good pattern to know though. I’m a little surprised there isn’t some syntatic sugar to do it all in one step though. Or maybe that’s just the lazy part of me speaking.

Since I use Emacs all day, every day, it’s exciting to constantly be learning these little refinements to my workflow. I wonder how long it’ll be until I start twaeak every little thing to work how I want it to work.

Speaking of tweaking things, I decided to not tweak my keyboard this week. Instead, I just wanted to look into this feature: Mouse Keys. I think it’s a neat idea, I doubt it’s super practical, but it’ll raise some eyebrows when people see me crudely controlling my mouse from my keyboard.


Thanks for reading this post! Comments, questions, and feedback are always welcome.