Hi.
I'm working on simple client-server application for fetching some performance data from monitored servers. Client application connects to serveral servers and fetch some data. Client uses Cmd class for communication. I changed a `protocol' a little bit so now I have two classes Cmd and CmdOld for communicating with servers application. I'm seeking for some design pattern which exactly fits this scenario. Currently I'm getting Cmd instance from CmdFactory depending on server application version (stored in DB, returns Cmd instance if NULL).
I just wanted to make my code less ugly.
Thank you.