How do you keep yourself and your co-workers from creating huge classes

Posted by PieterG on Stack Overflow See other posts from Stack Overflow or by PieterG
Published on 2010-06-03T13:19:50Z Indexed on 2010/06/03 16:54 UTC
Read the original article Hit count: 307

Filed under:
|
|

Stackoverflow users, How do you keep yourself from creating large classes with large bodied methods. When deadlines are tight, you end up trying to hack things together and it ends up being a mess which would need to be refactored.

For me, the one way was to start with test driven development and that lends itself to good class design as well as the SRP (Single Responsibility Principle).

I also see developers just double clicking on controls and typing out line after line in the event method that gets fired.

What are your suggestions?

© Stack Overflow or respective owner

Related posts about subjective

Related posts about design