Rick Reumann wrote:
How does a developer working on your
code know how to even get the properties out of your Map? I guess he has
to look at some API contract saying put date of birth in the Map as
"dob" not "dateOfBirth."
As in iBatis, name of the map property is in my case the field name in
the table, and I do not have to map it, it compes that way.
Think how rarely you get class cast exceptions! Very rare. Forget you CS
101.
> In my IDE I can get dot completion to work easily but that's not
gonig to work with your Map approach. If I need firstName from employee
I can just do employee(dot)=[pop up of methods]... you're going to get
.. employee. [ get, put, etc Map methods !]
I have been using Flash, CoR and Groovy and got used to the dynamic
nature and maps (CoR Context is a map too, I use it as a sort of a
vararg). Also, w/ XML. Imagine a XML used for SoA.... you knid of have
to know what you are getting so you can show a jTable.
I just have a XML DAO (ibatis) and a model that only has a populate/crud
methods, no gets/sets.
On a large project, the fact that there are thousands of classes not in
a project is a huge maitanace improvment. Anytime my developer would
think bean.... use a map instead.
See post by Jeff Butler on "Map over Bean" in iBatis list.
Before that multiple developers develop a similar "CutomerBean" and as
the front end or back end would change, they had CRUFT geters/setters.
(on 1up.com project) With a Map... there are 0 such clases.
Some people don't get dynamic langs yet... just like some people took a
long time to get OO. It's much less code.
You can use validator w/ map, DynaMaps...
It's diferent. Anywho... that what my team does on this JDNC project.
.V
ps/ot: Did you say IDE dot completion? ;-) I don't need no stinking badges.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]