How to design this procedural application into object oriented format?
Posted
by
DavidL
on Programmers
See other posts from Programmers
or by DavidL
Published on 2012-10-24T19:58:45Z
Indexed on
2012/10/25
5:20 UTC
Read the original article
Hit count: 166
object-oriented
|JSON
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.
© Programmers or respective owner