• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Use of Rails AntiPattern in Web Development

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 331
Python Ruby Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 11
Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
author
Posts: 4
jQuery VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 430
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic