Splitting Logic, Data, Layout and "Hacks"
Posted
by
fjdumont
on Programmers
See other posts from Programmers
or by fjdumont
Published on 2012-01-10T13:38:00Z
Indexed on
2012/06/11
4:46 UTC
Read the original article
Hit count: 242
design-patterns
|refactoring
Sure, we all heard of programming patterns such as MVVM, MVC and such.
But that isn't really what I'm looking into as Layout, Data and Logic is already pretty much split up (XML-Layout markup, Database, insert your language of choice here).
The platform I am developing for is hard to maintain over the updated versions and older OSes. The project significantly grew up over the last few months and dealing with different platform versions really is a pain.
For example simply disabling an user interface control for all existing versions took me around 40 lines of code in the logic layer, wrangling around with invocation, delegation, singletons that provide UI handling and so on.
Is there a clean way to keep track of those "hacks" by maybe excluding it into separate classes or even packages? Should I overwrite existing framework code in order to handle my requirements correctly? If so, does that concept have a name?
© Programmers or respective owner