I came across Instagram's API client written in Python.
- What are the advantages of doing it this way? (over directly creating instances of InstagramAPIMethod in InstagramAPI)?
- What will happen if the methods in InstagramAPI are called numerous times? Will it create new a instance every call?
Note, the only advantages I thought of are (probably I'm off track):
- The class doesn't/shouldn't care what the implementing class is.
- If a particular method is not called, we will never create an instance.