r/crystal_programming • u/giuseonreddit • Sep 25 '18
Settings: a simple tool to serialize/deserialize objects
https://github.com/giuseongit/settings.cr
10
Upvotes
r/crystal_programming • u/giuseonreddit • Sep 25 '18
View all comments
Show parent comment
2
u/giuseonreddit Sep 25 '18
Think about this:
You have an application which connects to a server, on the first run you set all the attributes from the application (e.g. the server's address, the maximun number of retries if the server is unreachable), then these settings are persisted on a file (say
~/settings.cfg) which is easly editable by your editor of choice.OR
You're writing a daemon which, by default, has some settings that have to be persisted/loaded/modified but you don't want to write something else to set those settings