Beauty Is in the Eye of the Beholder
Alex Papadimoulis discusses ugly code, where it comes from, how to avoid it, and how to get rid of it.
The content has been bookmarked!
There was an error bookmarking this content! Please retry.
Posted by Floyd Marinescu on Jun 13, 2006
Because I love EL, if you look at SEAM you see the use of EL everywhere. Java has had the EL for more than 5 years but it was never done very well and it never migrated beyond web pages. JSF has this wonderful binding constructs to be able to say 'this box in the UI is bound to this attribute of this component' by an EL. It's such a strong construct, and nothing else has expressed it this strongly. Tapestry sort of does this but couldn't be used because it's not POJO based and couldn't be integrated with EJB 3. Action-based frameworks don't have this nice loose coupling via an EL, you know, strong binding but loose coupling. I just think the component based approach is much more elegant, it's real MVC, it's fine-grained eventing and it results in much more loosely coupled applications. JSF isn't perfect but nor is it non-resuable, we've built a bunch of stuff into JSF which solves peoples most common problems.
In future directions, SEAM will address integration onto JBI/ESBs. "If you look at the constructs in SEAM such as orchestration, conversations, stateful components, events, they are just as applicable in the context of ESB as in the context of user interactions." SEAM will look at integrating EJB as the component model for SOA, allowing the use of EJBs as web services endpoints and using SEAM to add conversation support on top of JBI.
- Not all applications need layering. If you're building a simple data-driven application where there isn't much business logic to speak of, you've often got only presentation logic and persistence logic.
- Layering is not the only way to separate concerns, a much nicer way to separate concerns is to use objects - refactor business logic into your domain model or other objects. You don't need to impose a heavy weight layer to achieve separation.
- The technical concerns of flow and business process can be pulled out into jBPM process definitions. What then remains in Java code is clean, pure abstracted business logic. It's not for all tastes but it provides a nice separation of concerns.
Congrats Gavin and the Seam team. Amazing amount of work.
To other developers currently doing work with JSF, take look at Seam, if only to thumb through the documentation. The documentation is quite good, as is the forum support. Nearly every forum question is answered by a Seam developer, most by Gavin himself.
Key features: Loose coupling of entity and controller managed beans, additional scoped contexts (conversation, business process), annotation driven data binding, integrated JSF lifecycle support for EJB3's JPA extended persistence context...and much more.
hi there,
when you're busy and wanna take a hard copy, it would help if there was a printer-friendly view.
thank you,
BR,
Anjan Bacchu
Anjan we are working on it now :-). You can always submit the feature requests/suggestions/bugs to bugs[at]infoq[dot]com.
I guess other users would really like to see that the threads are kept related to the content.
thanks for the feedback and understanding,
./alex
--
:Architect of InfoQ.com:
.w( the_mindstorm )p.
Key features: Loose coupling of entity and controller managed beans, additional scoped contexts (conversation, business process), annotation driven data binding, integrated JSF lifecycle support for EJB3's JPA extended persistence context...and much more.
Loose Coupling between layer? Can you explain how is that possible? Does Seam allow loose coupling? How? I thought it tightly couples the two layers.
Alex Papadimoulis discusses ugly code, where it comes from, how to avoid it, and how to get rid of it.
John Davies examines Visa’s architecture and shows how enterprises have architected complex integrations incorporating Hadoop, memcached, Ruby on Rails, and others to deliver innovative solutions.
Sean Comerford unveils ESPN.com’s architecture, what components are used and why, and the current changes the website goes through.
Are there repeated patterns of failure on Enterprise Agile Enablement efforts? Sanjiv and Arlen discuss Seven Deadly Sins to avoid when adopting Agile in an enterprise.
Erik Dörnenburg answers: What is Enterprise and Evolutionary Architecture?, discussing 4 issues: Turning strategy into execution, Ensuring conformance, Where do the architects sit? Buying or building?
Sean Cribbs explains what Map-Reduce and Riak are, why and how to use Map-Reduce with Riak, and how to convert SQL queries into their Map-Reduce equivalents.
Chris Richardson shows how he ported a relational database to three NoSQL data stores: Redis, Cassandra and MongoDB.
Jean Tabaka challenges the audience to reflect on what Agile practices they are employing, how they are using them, ending with the questions “Why have their organization chosen to go Agile?
4 comments
Watch Thread Reply