hendry:But for simple solutions, is it really appropriate to use design patterns?
For sure, use the simplest solution to the problem. No arguments there. My point is, what most people come up with in the end is anything but simple, when a design pattern could have been so much more effective.
Take for example, imagine a UI with a main window featuring multiple tabs. The main window has two modes of display - side info panel expanded, and collapsed. When the side panel is collapsed, there is more horizontal space for the controls so they need to be lengthened. Wouldn't it be nice to implement an Observer so that each tab is simply listening for an event from the main window on panel bar expansion/collaspe, and do whatever they need to resize the controls (I suggested anchoring for the matter)? Nope. My colleagues implemented a convoluted web for function calls from main window to tabs, and from tabs to tabs and back to main window, each then reading XML files for exact sizes for each controls. It took probably 30secs to a minute for the resizing to happen.
My angle - use the fastest straight-on approach. Do not try to feed yourself a banana by wrapping your arm around your head.
The melody of logic will always play out the truth. ~ Narumi Ayumu, Spiral