But there is a big difference between deliberately trying to implement a pattern and writing code which you discover afterwards looks like so-and-so pattern. A “pattern implementor” is not necessarily the same as a “solution implementor”.
Knowing the names of patterns is not good enough. Each pattern can have a myriad of different implementations, so what if a particular implementation is faulty? What if the wrong pattern was chosen in the first place?
Bad analogy. A motor engineer is brought up with such terminology as they are components in a final product, whereas for a software engineer the components are language instructions such as FOR and WHILE.
I disagree. Someone else has already said in this thread that design patterns are abstract concepts without any concrete implementations, and code reusability is not one of their aims. It is my opinion that there is very little of a reusable nature in design patterns at all, so I see no point in using them.
So MVC is not a design pattern? Wash your mouth out!
I couldn’t agree more. The biggest technical disaster of a project that I have ever worked on was where the system architects planned in advance which design patterns were to be used, and with a separate component for each pattern they ended up with a system which had 10 levels of component between the user and the database. It was a nightmare to build and test as the linkage between one level and the next was too fragile and kept breaking. It took them TWO MAN WEEKS to implement a simple transaction, something which I can now do in FIVE MINUTES with my own framework.
This just proves (to me at least) that using design patterns does not guarantee success just as not using design patterns does not guarantee failure.
I don’t write java, but I’m not saying that nobody else should write java. So stop putting stupid words into my mouth. My argument is that I do not see any tangible benefits from using design pattens, and I do not see any tangible deficiencies in NOT using them. YMMV
So I’m not a criminal then. That’s good to know. I needn’t expect a visit from the paradigm police, then?
I am only willing to learn something new if it provides tangible benefits. I see no such benefits from design patterns, so I do not use them.
They are not baseless assertions, they have been drawn from personal and direct experiences. I have never said that design patterns should NEVER be used - they may be OK for newbies, just like training wheels on a bicycle or painting by numbers kits, but experienced developers shouldn’t need them any more.
So I take it your’e not a fan then?