tag:blogger.com,1999:blog-5674879503126200888.post5457689381721476584..comments2023-10-22T06:30:57.331-07:00Comments on <a href="https://www.husseinnasser.com/p/about-hussein.html">Hussein Nasser</a>: The Alphabets of Design PatternsHussein Nasserhttp://www.blogger.com/profile/18310476423554125845noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5674879503126200888.post-14401311566951600252009-07-06T01:40:16.399-07:002009-07-06T01:40:16.399-07:00"you could mix two design patterns to get an ..."you could mix two design patterns to get an even better design pattern, it's quite like art."<br /><br />Exactly, forgot to mention that, this is an Art by it self.. i love it when your program allows you to mix design patterns together..<br /><br />lool, thanks for the spelling checker, I admit, you beat firefox in that :p<br /><br />Thanks for your great comment titi,Hussein Nasserhttps://www.blogger.com/profile/18310476423554125845noreply@blogger.comtag:blogger.com,1999:blog-5674879503126200888.post-15096793829839651912009-07-06T01:33:07.333-07:002009-07-06T01:33:07.333-07:00I'm not a big fan of polymorphism myself, I fi...I'm not a big fan of polymorphism myself, I find it restrictive at some cases, I haven't used polymorphism for a while now, I guess it just doesn't fit in the kind of code I've been writing lately.<br /><br />What I like about design patterns is that -as you said- it's not something you memorize, you just get the general idea and then you use it how you like, you extend the design, you could mix two design patterns to get an even better design pattern, it's quite like art.<br /><br />Nothing is more satisfying than having to do a huge addition or change to your code and doing it so fast and clean because your design pattern is powerful enough to allow it, like in your example, adding new kinds of weapons should be easy for you.<br /><br />You have a couple of spelling mistakes in this article, in Warrior and Weapon, some are compile errors to be more precise.Yaseen titihttps://www.blogger.com/profile/13465786576169645016noreply@blogger.com