Shoot for simplicity
I really loved a couple of phrases from the Ted’s blog post “Agile is treating the symptoms, not the disease“: the title and the last sentence: “We are in desperate need of simplicity in this industry.”.
Complexity
Writing software it is still way to complex in these days.
I can recall few attempts to make it easier, they all failed: Java Enterprise & EJBs, Web Services, Enterprise Service Bus.
Rather than making things simple they forced you to write more code, to use lots of xml, tons of libraries, implementing unnecessary interfaces.
How many days do you waste every time you start a project, just in infrastructure & build files?
REST seems so simple, but implementing REST in the right way seems always so damn complicated, so everybody writes RESTish services, a good progress compared to old style web services but still…
What about web applications?
I like the simplicity that can be achieved with Sinatra, Scala , WebLocks and Seaside.
But still, the impression is that nobody is trying hard enough to make all these things even simpler.
The Twitter example
I’ve started using Twitter only few months ago (even if I’ve the account since 2006…), it started to make sense when I’ve linked it to my Facebook account. Facebook is like software in these days: way too complex.
Too much stuff, too much noise, too difficult to get what you really want.
Then I’ve started to use TwitterFeed as well, I’ve my flickr, google reader and tripit profiles feeding the twitter account.
So we have three content providers, one content consumer and forwarder and one content receiver, it’s a fairly complex architecture and it never failed so far, it’s quite stable, it just works.
I didn’t had to write a line of code, I’ve pressed just few links, it all works using RSS in a RESTish way.
Simplicity
How do you imagine software development in ten years?
I do imagine it like in the twitter example, an aggregation and collaboration of few simple services working together.
The role of the Agile movement
Agile is treating the symptoms, it’s true, I’ve seen many times agilists (including me) preaching for the old good principles (don’t reinvent the weel, keep it simple, etc) but how many times do we have to rewrite the same software?
For how long will we have to rewrite the same objects, the same business logic?
Why are we still writing web applications like ten years ago? Why are we still using Spring, Hibernate, Databases, Layered Architectures?
I think it’s time for laziness, simplicity and more real reuse, somebody told me that it’s an utopia, but even only trying will make the IT world a better place to be.
Agile can cure the disease
The Agile developer community, being so open minded and always embracing chance has a great chance to change the way software is written.
There’s not so much new from a process point of view in these days (at least, that’s a complaint that I’ve heard from many people, especially coming back from big Agile gigs), but there’s so much work to do on the technical side of things.
The NoSQL movement is one of the signs that something new is just born and growing, don’t miss the opportunity.
You might want to keep an eye on these four opensource project…
- Apache ODE (Orchestration Director Engine) executes business processes written following the WS-BPEL standard. It talks to web services, sending and receiving messages, handling data manipulation and error recovery as described by your process definition. It supports both long and short living process executions to orchestrate all the services that are part of your application.
- JBoss DNA is a new unified repository system that is JCR-compliant and capable of federating information from a variety of systems. To client applications, JBoss DNA looks and behaves like a regular JCR repository that they search, navigate, version, and listen for changes. But under the covers, JBoss DNA gets its content by federating multiple external systems (like databases, services, other repositories, etc). This way, the unified repository content stays up-to-date and in sync, even though the external systems still own the information and existing applications still work. Plus, JBoss DNA sequences the content in the repository, extracting patterns and structured content that makes the repository more useful and effective.
- Convergence is a project aimed at integrating Computational Grids with In-Memory Data Grids (IMDG)
- SubRecord is a stack of enterprise aspects:
Data repository
- repository for storing flexible records in Amazon SimpleDB manner
- CRUD
- underlying storage is HBase – distributed storage for massive data hosting – Learn more…
Logs repository
- Collecting logs from many sources/interfaces like (remote) files, JMS, HTTP and dedicated API
API/interface
- RESTful services channel – Learn more…
GUI/Console interface
- GUI interface with many capabilities
- Trace/control Core module in real time
Tracing events (CEP/ESP)
- Registering logical events that can be identified and used in rules
- Rules can trigger specifing events to alert/trigger another events on some specific circumstances
Metrics
- Measuring time of invocations – record time/context before service is invoked and after
- Collect metrics reports for specific services
Processing (data)
- Collected data can be processed by scheduled, automatic tasks
- Unification of models can be done using adaptive processing
- Aggregating, normalizing,…
Session management
- Providing session token based authentication/authorization across multiple applications
- Authenticate once and be logged to entire federation of applications, SSO
Application monitoring
- Monitoring services
- Report failures
OSGI integration
- The application is supposed to be an OSGI bundle