Re:Why you should never ever ever have Managers in your clas...
by blt on Sunday March 31, 2013 @09:50PM
(#5471022)
This is basic stuff.
It works fine until we realize that the app requires multiple simultaneous connections to the server. Now because you have a ConnectionManager, you go ahead and introduce an array inside the class which maintains the state of all the open connections to the server.
No competent programmer would make this mistake solely because the class is called ConnectionManager.
It works fine until we realize that the app requires multiple simultaneous connections to the server. Now because you have a ConnectionManager, you go ahead and introduce an array inside the class which maintains the state of all the open connections to the server.
No competent programmer would make this mistake solely because the class is called ConnectionManager.