Let's assume that we are creating a program that makes some kind of operations on files. Input for this program is a configuration file that stores information about file paths to operating on them. So basically we should have three values within this file: all_files, files_to_analyse, and blacklisted_files.
And now we are touching the bottom line of the problem. First of all, in the program, we will generate paths and put them to all_files then someone will manually add a few paths to blacklisted_files and finally we have to filter files to analyze based on a blacklist.
My needs:
- Configuration file easy to edit (read, write)
- Configuration which will be able to store big amount of data, mainly lists in human readable format
For the first pitch, I've used a JSON but what is more common and better than this?