housing-model
housing-model copied to clipboard
Refactor the Config class
@adrian-carro I would recommend using a config library rather than re-inventing the wheel with the current Config class. I have used HOCON in my previous Java/Scala work and it seems solid.
Once I finish PR #38, I will open a PR that swaps out the current Config class for one that uses the HOCON configuration library instead.
Oh, that library looks great! The main reason I didn't go for JSON was the absence of comments. I didn't know about this HOCON which, I assume, is a JSON superset with comments and other stuff, right?
@adrian-carro Correct. Here is a link to the Akka reference config for an example of what the config file would look like.
In my python port of housing-model, I simplified the config by putting everything into a python class (https://github.com/rht/housing-model/blob/master/src/main/java/housing/Config.py). This way, no more parsing of a custom config file format is needed.