ASP.NET design not SOLID

Posted by w0051977 on Programmers See other posts from Programmers or by w0051977
Published on 2012-09-18T19:58:48Z Indexed on 2012/09/18 21:52 UTC
Read the original article Hit count: 258

Filed under:
|

SOLID principles are described here: http://en.wikipedia.org/wiki/SOLID_%28object-oriented_design%29

I am developing a large ASP.NET app. The previous developer created a few very large classes each with lots of different purposes. It is very difficult to maintain and extend. The classes are deployed to the web server along with the code behind files etc.

I want to share a small amount of the app with another application. I am considering moving all of the classes of the ASP.NET web app to a DLL, so the small subset of functionality can be shared. I realise it would be better to only share the classes which contain code to be shared but because of the dependencies this is proving to be very difficult e.g. class A contains code that should be shared, however class A contains references to classes B, C, D, E, F, G etc, so class A cannot be shared on its own.

I am planning to refactor the code in the future. As a temporary solution I am planning to convert all the classes into a single class library. Is this a bad idea and if so, is there an alternative? as I don't have time to refactor at the moment.

© Programmers or respective owner

Related posts about design-patterns

Related posts about vb.net