Making Sense of e4
Making Sense of e4
Join the DZone community and get the full member experience.Join For Free
One area I really wanted to get into at EclipseCon was e4, which is the project that is attempting to redefine the Eclipse platform. The work being done is varied and fascinating, and I’ve been trying to figure out what it all means at a high-level. Well from what I’ve learned so far, the two main focuses of e4 are flexibility and simplicity.
The platform is becoming more flexible in so many ways, it would be hard to list them all. But here are a few examples:
- Internal structure of workbench window is up to you. Use perspectives or not. Embed parts in other parts, etc.
- Much stronger styling support using style sheets.
- Ability to create widgets and parts using different toolkits and even different languages.
One thing is clear - e4 is going to drastically increase our options when developing RCP applications.
The platform is becoming simpler in that the platform framework is being broken down into smaller and more uniform APIs that are loosely coupled to each other. Examples of this are:
- Increased focus on POJOs throughout the various APIs.
- Decoupling of APIs through contexts and dependency injection.
I really do think that it will be easier to develop RCP applications after these changes are made. Hopefully it will make my job as an RCP trainer easier too!
The conflict between flexibility and simplicity
“There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”
Sir Charles Anthony Richard Hoare
What’s interesting is that flexibility and simplicity are usually in conflict. In framework design, we usually trade flexibility for simplicity and vice-versa. So how will the e4 team pull this off?
The answer lies in the idea of insightful simplicity. There are many types of simplicity, and some are not at all useful to software developers. But insightful simplicity arises when a team has lived with and understands a domain so thoroughly that they start to see the problem space in an entirely new way. Insightful simplicity can result in architectures that are not only simpler but that dramatically increase flexibility, enabling developers to create entirely new types of applications.
Insightful simplicity usually arises only after an initial framework has been created and evolved for an extended period of time. Frameworks tend to expand and get more complex as new use cases are incorporated, but eventually there comes a point when a team start to see how the entire thing can be collapsed and simplified. This is where we’re at with the Eclipse platform, and the e4 team is now taking this insight and turning it into a reality.
Personally, I can’t wait to see what going to happen when developers get a hold of this technology. It’s going to be amazing!
Opinions expressed by DZone contributors are their own.