Alisa
❔ Need advice on how to structure a repository
Hello! I'm making a program that will interact with data in a json file, so I'm making a class to represent that.
The methods that are going to be in the class are:
* Register() — will create the json file if it doesn't already exist
* Write() — will overwrite the contents of the file with new contents
* Read() — will read the file and return the string json that it contains
Any suggestions on this? My immediate concern is whether I should be deriving some interface or interfaces, rather than doing it raw like I'm intending to so far
5 replies