Monthly Archives: May 2006

Real men use nightly builds – how to update your release-candidate or milestone Eclipse?

Whenever new eclipse milestone or RC comes out, I’ll download and unpack eclipse full package and reinstall plugins. Next step in my evolution was to discover plugin extensionpoints to keep at least plugins separately. But there is actually an update site for integration builds!

Build a generic typesafe DAO with Hibernate and Spring AOP

Don’t repeat the DAO!: “With the adoption of Javaâ„¢ 5 generics, the idea of a generic typesafe Data Access Object (DAO) implementation has become feasible. In this article, system architect Per Mellqvist presents a generic DAO implementation class based on Hibernate. He then shows you how to use Spring AOP introductions to add a typesafe [...]

Improving process by avoiding decision-making

What is a straightforward set of actions that lead to superior code or any other result? Keep number of decisions low. I didn’t think this way until now but it really makes sense. So the goal is not to become superior decision-maker but to move to the next level: zero-decision policy. It’s like a concept [...]

LiveValidator for ajaxified springframework

LiveValidator allows developers to turn their existing Validators into web2.0 ajax validators. Simply implement LiveValidator interface for any Validator implementation you want to ajaxify. That’s it! Now your web-application is automatically validating user input using ajax and displaying any error message in a traditional spring:bind tags.

Eclipse word-wrap functionality

For now, following decision-points have been discovered for soft wrap: Enable wrapping: is it File or System-wide Setting? Good would be to have file-specific setting and add global option for newly opened files. Should the state of wrap-mode restored after reopening file with editor? If yes then how to reset this option globally without making [...]

Accepted for Google Summer of Code 2006!

Congratulations! This email is being sent to inform you that your application was accepted to take part in the Summer of Code. My project: “Text Viewer and Editor needs to support word wrap” for eclipse. I invite you to be my reader – especially if you know or want to know about eclipse platform inner-life! [...]

junit rollback after transaction commit

AbstractTransactionalDataSourceSpringContextTests (from springframework spring-mock.jar) is used to provide atomic junit-tests that won’t affect database state. This kind of isolation is achieved by running each test in a transaction that is rolled back after each test-run. The problem might start when you are using AbstractTransactionalDataSourceSpringContextTests with multiple sessions committing transactions (and commit cannot be rolled back, [...]

Lazy-init variables are not always safe

Have you ever used following to lazy-initialize your variable? If you have then don’t. Just to remind or introduce, it looks OK but it isn’t – this is a pretty serious bug you can easily make. And it’s called Double-Checked Locking. Very good and easy-to-understand explanation is here

Be ready for artistic process

There is a good read from Seth Godin about processes and why you don’t like them. He has his point. Worth reading because he’s a cool man. I know, I’ve experienced this.

Fixing Eclipse Mylar jira integration

Be aware that when adding new jira source to Mylar with HTTPS protocol then you MIGHT get error saying host not found or wrong username&password.