f.el makes working with files in #emacs much nicer, I've thrown away several personal utility functions and gained a nicer API.
miniblog.
Related Posts
Skimming the docs, it's interesting to see that they allow you to return values inside a void function: https://sorbet.org/docs/sigs
The value is thrown away by their signature wrappers though.
Sometimes metaprogramming (macros etc) is a useful technique for refactoring, simply because you can try and then discard different designs: https://blog.metaobject.com/2018/11/refactoring-towards-language.html
(I've certainly written then thrown away macros when writing Lisp!)