?

Log in

No account? Create an account
   Journal    Friends    Archive    Profile    Memories
 

Bad design examples - morfizm


Feb. 10th, 2011 06:01 pm Bad design examples

x=1&y=2, where x=1 means attribute x should be equal to 1, and y=2 means that list of y-s should include 2.

Mix two different semantics in one string, then introduce elaborate metadata for appending and overriding defaults, and enjoy breaking your head against the wall... Keeping in mind that x=1&x=2 doesn't make sense, but y=1&y=2 does!

3 comments - Leave a commentPrevious Entry Share Next Entry

Comments:

From:dennyrolling
Date:February 11th, 2011 04:20 am (UTC)
(Link)
given the fact that I can't follow your explanations I have to agree: very bad design indeed :)
From:morfizm
Date:February 11th, 2011 04:25 am (UTC)

(Link)
:))
From:archaicos
Date:February 11th, 2011 09:24 am (UTC)
(Link)
Operator overloading is evil. C++ should've taught that.