This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Use of Rails AntiPattern in Web Development

 
es kranthi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I congratulate Chad Pytel & Tammer Saleh on behalf of the new release.
Lots of research and study is needed to write a new book.
I thank you for that.

My question is What is this new book on Rail AntiPatterns all about.Also i want to know difference in Rails and its Anti Pattern.

My Question is basic but i really need help regarding Website development in J2EE.

Currently we are working on BroadVision 7.x (e-commerce tool)and most of our Java/Servlet code goes into the JSP page in order to avoid Server restart as we daily need to update the pages and their functionality.


So does Rails help us in resolving this issue of writing our code or mostly avoiding of writing code in JSP.


Thanks and Regards,
E.S.Kranthi
Software Developer
 
Sumit Bisht
Ranch Hand
Posts: 331
Python Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes! But it is a different technology so enterprise integration is not possible (unless you use web services). As ruby is dynamic language, so it does saves a lot of time in development.
Initially I was skeptical of the 10X productivity that Rails people used to claim, but after using rails, I am convinced that ruby (and rails too, from its DRY principle) does have its advantages, specially for a java developer.
 
Tammer Saleh
author
Greenhorn
Posts: 11
Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The AntiPatterns are all specific to Rails applications. If you're interested in integrating a rails app into a J2EE environment, you should take a look at JRuby (which can run Rails applications).
 
Sumit Bisht
Ranch Hand
Posts: 331
Python Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aren't some antipatterns such as scripting or too heavy view as opposed to following MVC, not following RESTful practices applicable in J2EE ?

As an anti-patterns book, shouldn't it apply (in parts) to an enterprise java project ?
 
Chad Pytel
author
Greenhorn
Posts: 4
jQuery Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sumit, yes, I suppose the ones you've listed, the principles are generic enough to be applied to J2EE. However, all of the example source code and solutions in our book is obviously in Ruby/Rails.

thanks,
-Chad
 
Leandro Coutinho
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Code in JSP pages isn't a good thing. Tomcat can recognize new classes without restarting the server.
 
Sumit Bisht
Ranch Hand
Posts: 331
Python Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Chad for clearing my doubts!
Leandro, even after the flexibility offered by tomcat and other dynamic module tools, java applications do lack the flexibility that dynamic languages offer which is why in java, languages like scala & jRuby are becoming popular.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic