GeeCON Prague 2014*
The moose likes Ruby and the fly likes Use of Rails AntiPattern in Web Development Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Languages » Ruby
Bookmark "Use of Rails AntiPattern in Web Development" Watch "Use of Rails AntiPattern in Web Development" New topic
Author

Use of Rails AntiPattern in Web Development

es kranthi
Ranch Hand

Joined: Dec 27, 2010
Posts: 30
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

Joined: Jul 02, 2008
Posts: 329

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

Joined: Mar 02, 2011
Posts: 11

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

Joined: Jul 02, 2008
Posts: 329

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

Joined: Mar 02, 2011
Posts: 4

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

Joined: Mar 04, 2009
Posts: 417
Code in JSP pages isn't a good thing. Tomcat can recognize new classes without restarting the server.
Sumit Bisht
Ranch Hand

Joined: Jul 02, 2008
Posts: 329

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Use of Rails AntiPattern in Web Development