Port of schuchert.wikispaces.com


Hide_the_Ugly

Hide_the_Ugly
Hide the Ugly is a way to think about design. First a definition for design:
Design is the art of selecting the solution that sucks the least

Most of the time various designs, when compared to each other, have strengths and weaknesses. You goal, then, is to compare multiple designs and decide which design will have the fewest problems. One way to address this is to do as little work as possible and only in response to what you know. Another is to use your past experience and your understanding of the forces driving a system to introduce flexibility where you hope it will help.

In all cases, when we are introducing flexibility or just solving the problem of the moment, we’ll come across parts of a solution that don’t look good. The typical term for this is “code smells”. Since I’m more visual, I think more in terms of looking for things that look inelegant, long, complex…ugly and hiding it or getting rid of it altogether.

Examples of hiding the ugly:


Comments

" Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.