How to design this procedural application into object oriented format?
- by DavidL
I'm building an application that basically pulls json data from a bunch of websites, processes it in some way and then writes it to a file.
It is very easy to write this in a procedural way. I was wondering how this could be done in an object oriented way.
Currently, the application looks something like this:
res = get_json(link);
process(res);
write(res);
Even if writing this in an object oriented way is not the best idea, tell me how it could be done because I have trouble with it.