Weeknotes 2022-03-07

, Jochen

*Doomscrolling intensivies*

But there has been some progress on the removal of sqlmodel from fastdeploy task (this issue keeps getting bigger, and it was a slow work week) as well:

  • While I'm introducing an own unit of work pattern and rewriting lots of the database stuff anyway, I thought: Well, maybe switching to asyncpg and having the whole database layer async would be not a lot more additional work. This is now done.
  • Rewrote the auth module, because I wanted to get rid of all fastAPI dependencies. The code now looks much nicer, too.
  • Syncing service configurations from filesystem is now also possible again (I have to admit writing things like an AbstractFilesystem class bring me quickly to the point of reconsidering my lifestyle choices).

Things I Learned

  • You can use PYTHONPATH=$(pwd) in a Procfile to start jupyter lab/notebooks that keep the project root in pythonpath
  • You can use session.expunge(object) to be able to use mapped python objects after a sqlalchemy session is closed (yeah, I'm just beginning to use sqlalchemy)

Youtube

  • My Voice Over Chain | I often get mocked for being nerdy about audio quality. Well, maybe go and mock this guy instead (or learn something from him and improve your recordings).
  • Have Single-Page Apps Ruined the Web? | Transitional Apps with Rich Harris, NYTimes | Great video. Until a few months ago I would have completely agreed. But seeing what is possible with libraries like htmx I'm currently feeling more like: "Holy shit, SPAs are dead!". And I don't trust this whole notion of "Just use this sparkling framework X and your code will automatically deployed on an edge CDN node in a V8 vm and everything will be like magic". I like things to be simple, not complicated and magic. The reason for that is: I know that my own interest in keeping my stuff running is much greater than the interest of some bored bigcorp ops staff. Even kubernetes is far too complicated from my point of view. If something goes wrong, I want to be able to fix it. But maybe kubernetes or netlify or fly makes things possible that I need and could not do by myself? My opinion on that is: hell no.
  • Putin, die Ukraine und danach? | Mit offenen Karten Spezial Ukraine | ARTE | Good signal-to-noise ratio

Twitter

Software 

  • pgcli | Postgres command line client with syntax highlighting

Podcasts

Return to blog