Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Design Patterns & J2EE

 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Authors,

Nice to see you here.
Well with variety of Design Patterns available for J2EE based development, dont you think its high time that some of the patterns get standardised else there will be n number of patterns available to do a particular task, & we could find that the development becoming more clumsy instead of easing out.

TIA
MB
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well with variety of Design Patterns available for J2EE based development, dont you think its high time that some of the patterns get standardised else there will be n number of patterns available to do a particular task, & we could find that the development becoming more clumsy instead of easing out.


I did not understand by "Standardizing patterns" ? Are you talking about the implementation of pattern? Could you please provide some examples.
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

"Standardizing patterns"



I thing , "Standardizing patterns" is reference to J2EE Patterm are extends GOF Pattern or not ???
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is wrong in extending pattern. Patterns do not dicate the implemenatation strategy.
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

we could find that the development becoming more clumsy instead of easing out.

Sometimes, if you find adopting certain design patterns makes the system becomes more complex, then you may adopt a wrong pattern.

And coding isnt the only consideration. You also need maintainance and enhancement. Why we use Service Locator becos we dont wanna hardcode the IP in the program. If you dont adopt this pattern, if the IP of the machine changes, you need to change lots of codes!

What I can say is, try to adopt the suitable patterns, and NOT all patterns are useful to certain projects, we need a cool selection mechanism.

Nick
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic