Archive for June, 2011

Mvp4g multiple presenters – Part 3

Continue Reading June 29th, 2011 Javier Ochoa

This is the third in the Mvp4g Multiple Presenters series (part 1 and part 2). In this post I will demonstrate how to use the GWT generator to differentiate events that are to be filtered by an event group. This gives you more freedom when defining your events and gets rid of the “$” that we used to define the event name. Plus in this post I will also remove the presenter registry and enhance the event filtering by overriding the isActivated() method.

Continue Reading 1 comment

Tweaking Persistence with @PrePersist

Continue Reading June 13th, 2011 Mitch Goldstein

It is an interesting problem: even though the Java primitive double type has plenty of precision, math operations using this type can prove problematic when it comes to using them for precision calculations.  Due to the nature of how floating point numbers are stored, they are by definition inaccurate.  This is a consequence of trying to store decimals – especially fractional decimals – in a binary format.

To address some of these issues, the Java development team released the java.math.BigDecimal class.  This is an immutable class that extends the abstract class java.lang.Number, which serves as the superclass of  the primitive wrapper classes such as java.lang.Double and java.lang.Integer.  The primary purpose of this base class is to provide methods that allow conversion among different number types.

Continue Reading 5 comments

Dr. Mindbender, Or How I Learned To Stop Worrying And Love Hibernate

Continue Reading June 7th, 2011 Steve Ayers

I’ll admit I was wrong.

For years, I have been beating the drum about town, proselytizing my distaste for Hibernate. I told everyone that would listen what my opinions were. ‘It only gets in the way’, I said. ‘Its too much of a black box’.

And while some of those notions still hold true, I am here today to admit I was wrong in that Hibernate is not a total obstacle of a framework. In the right situations and circumstances, it actually is very nice to have on your side. In the wrong situations, however, it is a nightmare. It is not something that can be forcefed into every situation and while it has its benefits, using it in the wrong project will provide nothing but heartache. Trust me, I know from experience. It is the Dr. Mindbender of frameworks: use it where it should be and it’s a peace-loving orthodontist. Misuse it and you have a hateful, deceitful villain with a proclivity for cybernetics and brain-scrambling.

Continue Reading 10 comments

Pages

Categories

Most Recent Posts

Feeds

  Subscribe in a reader

Calendar

June 2011
M T W T F S S
« May   Jul »
 12345
6789101112
13141516171819
20212223242526
27282930  

Tags

agile AJAX authorization binding BPM brms Cairngorm chatter cloud cloud computing code quality collaboration consulting database development Eclipse ESB Flex governance GWT hibernate IBM integration iPhone Java jpa mate mvp4g Objective C ORM patterns PureMVC RIA SaaS Salesforce.com SCM Scrum security SOA Spring strategy Summa usability user interface version control

Calendar

June 2011
M T W T F S S
« May   Jul »
 12345
6789101112
13141516171819
20212223242526
27282930  

Posts by Month

Posts by Category

© 2010-2012 Summa All Rights Reserved -- Copyright notice by Blog Copyright