Today's git-fu: splitting a big commit into several well-defined commits: https://stackoverflow.com/a/6217314/509706 (the time-honoured technique of SO docs)
miniblog.
Related Posts
I refactored some Rust string splitting logic:
old: &[&str] -> Vec<String>
new: &[&str] -> Vec<&str>
It's a little faster, but it's an interesting type signature. You can figure out more of how the new one works! It must be slicing into the input string.
Neat Emacs package of the day: frames-only-mode! https://github.com/davidshepherd7/frames-only-mode
If you're using a tiling window manager, this lets you create new windows rather than Emacs splitting its own window: https://techtrickery.com/tearing-out-the-emacs-window-manager.html
I've worked on JS projects where we set a maximum line number on files. It worked well -- it was a gentle reminder that a module had grown and would benefit from splitting up.
(I think this would definitely work in other languages, but probably with a higher line threshold.)