Fast Bytecodes for Funny Languages
Cliff Click discusses how to optimize generated bytecode for running on the JVM. Click analyzes and reports on several JVM languages and shows several places where they could increase performance.
- Java,
Tracking change and innovation in the enterprise software development community
Posted by Floyd Marinescu on Jun 29, 2006 09:44 AM
Cintoo Messages is an i18n framework that was developed over the course of several large internationalization projects where existing Java solutions were not sufficient. Messages supports locales for threads and different bundles for different Java packages. Bundle mapping configuration is done outside of client classes resulting in simplified code. Cintoo Messages 1.0 has just been released under Apache License.There are several problems with the current Java way. There is no support for thread local locales (useful for web applications, easy to get the locale everywhere). Usually i18n code in Java is very noisy, with lots of i18n code, it's very difficult to read and understand business code.The end result is replacing the following typical Java 5 internationalization code:
Usually an application has several bundle files. But then when doing i18n the developer has to think about which bundle to use for each class. With Messages he just has to supply "this" to Messages and the framework will find the correct bundle. As the configuration of the bundle mappings is done outside of the application code, the developer can change the mapping afterwards.
com.accounting.AccountService.java
public Account create(String name) {
Account account = new Account( name );
Locale locale = new Locale("en", "");
ResourceBundle bundle = ResourceBundle.getBundle("accounting", locale);
MessageFormat formatter = new MessageFormat("");
formatter.setLocale(locale);
formatter.applyPattern( messages.getString("ACCOUNT_CREATED") );
show( formatter.format( account ) );
return account;
}
com.accounting.AccountService.java
public Account create(String name) {
Account account = new Account( name );
show( $(this, “ACCOUNT_CREATED”, account) );
return account;
}
How to use Open Source SOA Safely in the Enterprise
The Future of Software Delivery According to visionaries Grady Booch & Erich Gamma
White Paper: Writing Good Use Cases
Cliff Click discusses how to optimize generated bytecode for running on the JVM. Click analyzes and reports on several JVM languages and shows several places where they could increase performance.
Scott Ambler, Practice Lead for Agile Development at IBM, speaks on the current status of the Agile community and practices having a look at the perspective of the Agile’s future.
Dave Nicolette and Karl Scotland try to introduce non-technical managers to one of the most popular Agile development techniques: Test-Driven Development (TDD).
Smooks is best known for its transformation capabilities, but in this article Tom Fennelly describes how you can also use it for structured event streaming.
Successful architectures evolve over time to meet changing business requirements. Luke Hohmann presents how to collaborate with key members of your business to manage architectural changes.
In this article, Dr. Tobias Komischke explains how colors used in a GUI can influence our interaction with a computer and offers advice on using the appropriate colors for the interface.
In his presentation, recorded at QCon San Francisco, MuleSource architect Dan Diephouse explores ways to use the Atom Publishing Protocol (AtomPub) when building services in a RESTful way.
Grzegorz Gogolowicz and Matthew Dressel demonstrate how to extend Windows SharePoint Services 3.0 to support column level permissions.
No comments
Reply