Dies ist die Heimat der Java User Group Nürnberg.


Donnerstag, 27. Januar 2011

JUG-Treffen am Dienstag, 15.02.2011, 18:30, Cortal Consors

Hi zusammen,

es wird Zeit für das nächste JUG-Treffen. Diesmal bei Cortal Consors: Bahnhofstrasse 55, 90402 Nürnberg
Um formlose Anmeldung per Mail an jug@source-knights.com wird gebeten.

Thema:
Continuous Integration: Entwicklungsprozesse schrittweise verbessern

Abstract:
Continuous Integration (CI) ist das Schweizer Taschenmesser, wenn es um die schrittweise Verbesserung von Entwicklungsprozessen geht. Der Vortrag berichtet von Erfahrungen und Herausforderungen bei der Einführung in technologisch und organisatorisch unterschiedlichen Projekten. Die verschiedenen Blickwinkel (Technik, Team, Management) werden ebenso beleuchtet wie die weiterführenden Möglichkeiten, die sich durch die Einführung von CI ergeben.

Referent:
Dirk Dittert

Ciao,
Oliver

Sonntag, 2. Januar 2011

Direct-call pattern

Everybody knows that the best way for objects to collaborate involves a lot of annotations (see for example Spring and EJB), some XML (Spring and EJB again), even more XML (Oracle ADF) and even some drag and drop in an obscure visual editor (ADF again). This is the industry standard, and it is pretty good, because consultants can make a lot of money, and consulting companies can bring in even more consultants into projects.

Anyway, there might be situations where you need something different, so David Tanzer and I have invented the direct call pattern (in a cocktail bar) a couple of days ago (BTW, you can use the text of the pattern without permission, as long as you clearly mention our names - that is Oliver Szymanski and David Tanzer):


Direct-Call pattern (by Oliver Szymanski and David Tanzer):
(also known as Collaborateur-With-No-Intermediator pattern)

Introduction:
2 Objects want to communicate with each other. One is the caller, the other the callee. The callee is fine with that and the caller does everything that is needed before and after the call gratefully on his own.

Requirements:
2 Objects, sometimes 1 Objects in 2 roles (Caller, Callee)
Nothing else

Solution:
The caller calls the callee directly. No proxy, interceptor, or any other intermediator objects are involved in this call. Really, just one call from one trusted friend to another. Perhaps third party is logging the call, but that is hard to avoid in these times.

Pros:
Fast call
Clean stack traces
Less confusion
What you see is what will happen

Contra:
Lots of "WTF is the dependency injection" and "how do I find the interceptor" comments
Sucks the non-needed annotation and aspect orientation stuff
People could understand what you have written
Less money with the software support

Use when:
No money for application server
Not the time to debug frameworks
Long times of exclusive consulting not longed for
Project will be running for more than a few weeks/month (and you should make the support)