Weeknotes 23
5th December, 2021
“Debugging, audio processing, and things falling apart”
-
The current app I’m working on involves various audio processing. Unfortunately, I’ve not had much involvement with that side of things so far - too many others features to build and bugs to fix! I do find it really interesting though so I’m starting to pick up some things.
-
I performed several
git rebase --onto
operations on the first try. A cause for celebration as I usually get into an unholy mess. -
Some spelunking into the Active Admin source code necessitated the use of Ruby’s
#source_location
this week. When combined with#method
it is extremely useful to help find where code is defined. -
I started listening to Things Fell Apart by Jon Ronson. It’s really good.
-
I was doing a lot of debugging this week that necessitated restarting the Rails server over and over. This project uses
puma-dev
which means runningtouch tmp/restart.txt
to tell it to restart. This soon got tedious so I went Googling for a way to do this inside of vim.I came across this article from 2012 which had the solution. Some slight tweaking and a new key bind in my config and I was away. I can now press
<leader> rr
to restart Rails from within Vim. -
Nick Cave being great, again.
We all have regrets and, as bad as they may feel, they are signals of our growth as human beings. A person with no regrets is simply leading an unexamined life.