Hacker News new | ask | show | jobs
by wruza 501 days ago
Lots of them, not only fu -> function, but whole blocks of code with parameters (snipmate style). A few of half-pages of code and then dozens of little expansions, for many filetypes.

This is a result of a process I call experience distillation. I notice what code I write often but tend to either forget (bash) or outthink much faster than I can type (common syntax, libs, boilerplate), and routinely add it to snippets in hope that it sticks. Then I learn to actually use it. Once in a while I delete the unused or reshape it for second attempt with the understanding why it failed the first time.