-
1. Re: Design Patterns/Best Practices
pmuir Jan 30, 2008 2:53 PM (in response to senhce)No. Seam allows you to design your app without patterns - you design as it suits you not, the framework.
-
2. Re: Design Patterns/Best Practices
kasim Jan 30, 2008 3:53 PM (in response to senhce)"pete.muir@jboss.org" wrote:
No. Seam allows you to design your app without patterns - you design as it suits you not, the framework.
yes and that is a VERYYYY dangerous thing to.
I think its great in the right hands, but for junior developers who are just starting Seam its "intereseting" what they come up with as solutions. -
3. Re: Design Patterns/Best Practices
kasim Jan 30, 2008 3:57 PM (in response to senhce)
btw to expand on your first question.
Just because there is little code needed, doesn't mean there aren't design patterns or maybe the better term is "good design".
Since Seam comes pre-loaded with soo many options you are going to have lots of decisions to make.
ie:
- When to use a Stateful vs Stateless vs JavaBean
- When to use the query objects as a DAO layer vs when to call it on your own from the business teir with the entity manager.
- Scopes, when to apply each scope, determining when it's appropriate
- Heck even down to when the EB / SB NEEDS to be a Seam component vs just being a regular EB / SB / Pojo.
But as Pete said ... it's mostly up to you. Just be careful i've noticed beginners tend to take some easy ways out. -
4. Re: Design Patterns/Best Practices
pmuir Jan 31, 2008 7:10 AM (in response to senhce)I think its great in the right hands, but for junior developers who are just starting Seam its "intereseting" what they come up with as solutions.
So, the senior program comes up with the "desgin patterns" for your app and tells the junior programmer. At the end of the day, I think, even with books full of design patterns, just letting a "junior" programmer loose on an app with no design behind it is going to result in failure.