I love it when I can do things efficiently.
One of the features I’ve long wished LogJam (the LJ client I use) had is persistent templates for posts. It has drafts, but always asks if you want to delete the draft after you submit a post. Annoying, and carries the risk of accidentally deleting your drafts that you’re using as templates.
Recently I decided to go add a templating feature, but on studying the code, it appeared that it would result in considerable duplication of code. But it occurred to me that there was another approach to the problem ... and I just used it.
So I just de facto added a capability to LogJam to use drafts as persistent templates, plus a control in the preferences UI to turn the feature on and off ... by adding six lines of C and changing one. Seven total changes across four different files, to add a significant UI feature.
That’s efficiency.
no subject
no subject
no subject
.....And done. http://www.babcom.com/public/logjam-patches/
no subject