Hello!everyone
In my work ,I need to write a sms gateway interface platform,Then I search for similar project. I luckily find one,write in
java,but they use java the C way,the code was written completely in C style.
As the communciate beteween involes some Commands,for example, BindCommand,SubmitCommand,DeliverCommand. I originally want to write a Command base class,make all the above Command inheirt from the base class.
but the reference project ,It is written alike
public class Main{
public void main(
String args[]){
Main main = new Main();
main.bind();
main.submit();
}
} of course ,they write huge bind() submit() method,
I really hate this style,I try to design my system the OO way,but when I think it again,I thought the system is produre oriented in nature.the client systme make a connection to the server,send some command,then finish.
isn't it?
what should I Do?