[Github-comments] [geany/geany] session.conf split follow-up #3 (PR #3003)

xiota notifications at xxxxx
Thu Nov 18 04:00:54 UTC 2021


What I've found annoying when dealing with settings (in my own plugins, so it's my fault for implementing it this way) is the duplicate code... each setting appears in a preference structure, in a loading function, in a saving function.  Then with sessions, the places to keep track of preferences doubles.  Times however many groups there are.  Then switching a setting between config and session requires moving code around ×3.  If only there were a way to register settings just once and let software take care of the rest automatically.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3003#issuecomment-972502922
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211117/396ed7a6/attachment.htm>


More information about the Github-comments mailing list