SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Jane Jukowsky wrote:
AOP and tools, sure. It's also true that, once your "accessors" stop being completely anemic, you have to have methods. But these scenarios don't cover all cases, and with the ease of refactoring these days, it's really easy to change a field variable into an accessor or two once than to maintain (add/remove/refactor) hundreds of accessors over the years.
David Newton wrote:If it's just an accessor, why would you have to "maintain" anything? I've never had to maintain an accessor, I almost never look at them or think about them.
Jane Jukowsky wrote:Most of them are in my model and correspond rougly to hibernate tables. A small change in design, a change in a column name, and my accessors need to be reworked.
Besides, hundreds of Hibernate annotations are mixed with these accessors.
Besides, a bit of non-accessor business logic is lost in the sea of that boilerplate stuff.
There has to be a better way to program. I am thinking I am tried of Java altogether.
David Newton wrote:
Jane Jukowsky wrote: Besides, a bit of non-accessor business logic is lost in the sea of that boilerplate stuff.
Design, not Java, issue.
There has to be a better way to program. I am thinking I am tried of Java altogether.
Of course there is--Java is far from elegant; I'm only just now starting to achieve the same productivity in Java I had in Lisp or Smalltalk two decades ago, and that only because of stellar IDE support. This shouldn't surprise you--Java is like crack for people that like to type.
Yuck; I haven't hand-generated Hibernate models for years; at most I have to tweak a reveng file or two.
[Besides, a bit of non-accessor business logic is lost in the sea of that boilerplate stuff.
Design, not Java, issue.
There has to be a better way to program. I am thinking I am tried of Java altogether.
Of course there is--Java is far from elegant; I'm only just now starting to achieve the same productivity in Java I had in Lisp or Smalltalk two decades ago, and that only because of stellar IDE support. This shouldn't surprise you--Java is like crack for people that like to type.
Jane Jukowsky wrote:That's the whole idea behind POJOs, no?
so what's your language of choice these days?
David Newton wrote:Depends on what you mean by "business logic", I guess. There's business logic, then there's Business Logic. I'm always more likely to decorate a POJO somehow than embed big-Business Logic, but how/when this is done, and why, varies.
Depends--I haven't decided what *my* Next Big Language is, so I move between several that stay out of my way, each with their own benefits and drawbacks.
What's the story with C#, why did you drop that? I hear left and right that it's superior to Java (ducking for cover :-P )
David Newton wrote:
What's the story with C#, why did you drop that? I hear left and right that it's superior to Java (ducking for cover :-P )
I think 3.0+ *is* better than Java, but I have no desire to work on Windows.
have nothing against POJOs, but don't confuse a POJO with a class that is nothing but data structure--a POJO just means it has "no" dependencies. There's a bunch of ways to decorate; sometimes just subclassing works fine too.
I was born with webbed fish toes. This tiny ad is my only friend:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
|