The Artima Developer Community
Sponsored Link

Java Buzz Forum
Trails and Matt's AppFuse

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Trails and Matt's AppFuse Posted: Nov 1, 2004 6:08 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Trails and Matt's AppFuse
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement
Matt has written about Trails - like Rails, but with Tapestry, Spring and Hibernate. I put in a cheaky comment to see what a video on setting up a simple web application would look like. Matt thinks it would be 20 minutes long. That is on a good day, with no mistakes. Compare this scenario to the Rails demo. Matt talked about how we seem to produce so many files in Java, due to the way we architect things: model.Person dao.PersonDAOTest dao.PersonDAO dao.hibernate.PersonDAOHibernate service.PersonManagerTest service.PersonManager service.impl.PersonManagerImpl webapp.action.PersonActionTest webapp.action.PersonAction web/pages/personList.jsp web/pages/personForm.jsp The last two JSPs can be generated, but that's still a buttload of classes (9) just to CRUD (and test!) a database table. Not too mention all the files you need to edit for Spring and i18n. dao/hibernate/applicationContext-hibernate.xml service/applicationContext-service.xml test/web/web-tests.xml web/WEB-INF/classes/ApplicationResources_en.properties web/WEB-INF/menu-config.xml Ouch. Matt also pointed out that he has had requests to add support in AppFuse to generate all of these files for you. This would look good in a demo, but how about maintainence? This is an issue with code gen in general, and one that you see a lot in languages like Java. Even with tools such as great IDEs (IntelliJ/Eclipse) and and code gen, that only helps when you are writing the code. What about reading it (which you do a lot more of in a applications life time (hopefully!)). What I like about Rails is that it isn't about code gen. It is about smart defaults which are extension points. For simple CRUD dynamic web sites the defaults can work well, and your application is done quickly. If you need to extend the functionality then you get in there and put in the extension points (in this case, you normally just create the right methods / objects). I have always liked the mantra of: make simple things simple, and hard things possible I think that a lot of frameworks don't allow this. I also think that there is a HUGE difference between a dynamic website, and a web application, and would choose very different tools depending on which of these I am building. There are many great choices out there.

Read: Trails and Matt's AppFuse

Topic: High-Availability JavaMail: I am not sure the point Previous Topic   Next Topic Topic: [Oct 22, 2004 12:16 PDT] 7 Links

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use