﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Armand du Plessis commented on Java &amp; Spring: Impressions From a non coding perspective</title><description>Makes you apreciate the RoR vs Java ads even more -&gt;
  
http://www.railsenvy.com/2007/5/14/ruby-on-rails-commercial :))
  
  
When you're done with the Agile Java grab a copy of Agile Web Development with Rails. I really do appreciate what MonoRail brought to the table for the .NET web stack but even then it still feels heavy compared to Rails.
</description><link>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment9</link><guid>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment9</guid><pubDate>Sun, 27 May 2007 10:04:45 GMT</pubDate></item><item><title>guillaume Besse commented on Java &amp; Spring: Impressions From a non coding perspective</title><description>@Paolo
  
  
take a look at Stripes http://mc4j.org/confluence/display/stripes/Home - a java MVC web framework very cool and very close to monorail...
  
</description><link>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment8</link><guid>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment8</guid><pubDate>Sat, 26 May 2007 09:35:40 GMT</pubDate></item><item><title>Rob Meyer commented on Java &amp; Spring: Impressions From a non coding perspective</title><description>Hah, who am I to talk. To try and refresh my memory, I just peeked at the code for a sample application I was writing to explore this stuff, and have structurally identical implementation of formBackingObject...I have no defense. :-)
  
  
I seem to recall it working fairly well, but I wasn't nearly well versed in building real, meaningful unit tests yet. If I had any time, I might consider taking another crack and seeing how testable the whole thing is. 
  
  
I guess this means I'm a .NET guy now. :-)
  
  
</description><link>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment7</link><guid>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment7</guid><pubDate>Sat, 26 May 2007 01:15:46 GMT</pubDate></item><item><title>Ayende Rahien commented on Java &amp; Spring: Impressions From a non coding perspective</title><description>Rob,
  
What worried me is that this is in a book about agile java, which is not something that I would expect to see.
  
If there is an agile .Net book that lauds the code behind, I have yet to read it.
</description><link>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment6</link><guid>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment6</guid><pubDate>Sat, 26 May 2007 00:11:29 GMT</pubDate></item><item><title>Rob Meyer commented on Java &amp; Spring: Impressions From a non coding perspective</title><description>Nothing in that code thrills me. It's been a while since I've done Java (my job took me the direction of .NET about 2 years ago), so I'm not sure if there's a particular framework or approach being implied in the rest of the code, but if so, I don't think I like it.  
  
  
I don't remember anything about spring implying a design like this. IIRC, I'd be using Spring's form binding to get a form object more or less automatically from the lower-level servlet request, and then passing from into a controller where I could coordinate the activities within the domain model (in a more easily unit-testable fashion).
  
  
In short, this isn't code I'd be surprised to see in a production business application, but I'd want to refactor it to something cleaner (unless I'm missing something about the rest of the context). I wouldn't worry too much about this being the recommended approach. There's a lot of .NET resources out there that laud the code-behind as the best place to implement your controller logic, but I'm certainly not interested in that approach.
</description><link>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment5</link><guid>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment5</guid><pubDate>Sat, 26 May 2007 00:07:51 GMT</pubDate></item><item><title>Ken Egozi commented on Java &amp; Spring: Impressions From a non coding perspective</title><description>@Ayende
  
Ya think that's bad?
  
I've had the pleasure of going through a J2EE course in Oracle University.
  
The OC4J (which is their J2EE server implementation) is so messy, it's unbelievable.You have xml files, a complex project structure, and much more, all for the sake of running your first "hello world" rendering servelet.
  
Now, remember that servlets aren't thread safe (it's a kinduva singleton) and you can start talk about repeatitive code.
  
yuck.
  
btw, AFAIK, websphare is not much better. JBoss is probably a lot more developer friendly due to its OS nature, but I know very little about it.
  
I really do not intent to go after any J2EE people. I just pity them.
</description><link>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment4</link><guid>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment4</guid><pubDate>Fri, 25 May 2007 21:16:09 GMT</pubDate></item><item><title>Ayende Rahien commented on Java &amp; Spring: Impressions From a non coding perspective</title><description>@Paolo,
  
As I said, I am not a Java guy, so I am not very familiar with the stuff over there.
  
Hammett (lead for Castle) was on the Avalon project, but I don't think that they are even on the same spirit, beyond that, I don't know.
</description><link>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment3</link><guid>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment3</guid><pubDate>Fri, 25 May 2007 21:08:38 GMT</pubDate></item><item><title>Paolo Corti commented on Java &amp; Spring: Impressions From a non coding perspective</title><description>Hey Ayende!
  
do you know anything similiar to the CastleProject framework for Java?
  
I know that there is Grails, but it is for Groovy.
  
I like so much CastleProject, but we have some project where we need to be tied to Java...
  
by the way: very nice blog ;-)
  
Paolo
</description><link>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment2</link><guid>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment2</guid><pubDate>Fri, 25 May 2007 21:05:55 GMT</pubDate></item><item><title>Eric Hauser commented on Java &amp; Spring: Impressions From a non coding perspective</title><description>Ayende,
  
  
This is not the best example.  First o all, it looks like the controller is being overloaded to serve as both adding and editing Timesheet objects.  Generally, you would write a single CRUD controller to handle those types of requests so you did not have to code that stuff everytime.  Second, normally Spring would handle the binding of form parameters directly to the backing object and there would not be all the extra code.  However in this example, they are retrieving an object from applicationSecurityManager (that has nothing to do with the request besides they are probably getting the principal from the request), and setting some parameters on the new object they are creating.
  
  
You might want to check out some better examples of databinding and Spring to get a better appreciation for the web framework.  http://www.springframework.org/docs/reference/mvc.html shows a couple, but does not nearly capture the power of the binding.  Binding dropdowns direclty to their entity objects and collections of elements directly to collections without code is something I do often.
</description><link>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment1</link><guid>http://ayende.com/2433/java-spring-impressions-from-a-non-coding-perspective#comment1</guid><pubDate>Fri, 25 May 2007 20:57:42 GMT</pubDate></item></channel></rss>