Here's an early clip of my new (work in progress) app: Posting.
It's an HTTP client (like Postman, Insomnia, etc) but it runs entirely in the terminal. Keyboard-centric, snappy, and works over SSH. It's written in Python using the Textual framework.
A while back I hacked together (don't look at the code please) a tool called dunk which you can pipe your git diff output into and it'll show you the diff in an easier to read form: https://github.com/darrenburns/dunk
I have a fish shell abbreviation set up as gdd which does git diff | dunk | less -R, so you can page through the output and see exactly what you've changed since your last commit.
I wish there were better options for interacting with Git via Python :blobcatsad:
I'm completely hooked on watching speedrunning documentaries on YouTube. This is so cool! This seems more exciting than playing the games normally 🤩
Techniques go undiscovered for years, and the methods for discovering skips can be highly technical. Games are reverse engineered in order to understand them at a low level, just to save seconds from a run.
I've particularly enjoyed learning about speedruns of Portal 1/2, Pokemon Red/Blue, Halo 2, and Celeste.
A large part of my role now involves threatening my colleagues with "a visit from the walrus police" relating to the use of Python's walrus operator in many scenarios.
I can't think of any examples where I find the walrus operator actually useful outside of the loop condition in a while loop. Most of the time it just reduces readability for me by hiding an assignment somewhere I wouldn't expect it.
Can anyone sell me on other use-cases so the walrus police may rest?
Does anyone know of heuristics that are used to decide exactly what gets undone when you "undo" in a text editor?
I'm currently batching edits by considering time since last edit, occurrence of any newline characters in replaced or inserted text, and a limit of the number of characters in a batch.
I wonder if there are any other reasonable heuristics that might improve UX that could be easy additions 🤔
One of the most overlooked features of Textual is hot-reloading on styling changes. It allows you to quickly iterate on layout and design while keeping your app interactive 🏎️