David E Jones wrote:
In short lately I'm thinking that having so many methods is worse than the convenience they offer to make life easier for "lazy" coders. Actually, with a decent IDE having lots of parameters isn't such a big deal.

I'm a huge fan of reducing code. The stark reality is the Apache OFBiz community is having a hard time maintaining the existing code base, let alone any new/additional code. I think it's a good time to look at this issue on a broader scale, not just the GenericDelegator.

The up side is we end up with a really happy and clean GenericDelegator class with only maybe 10-15 methods for different general operations, and perhaps even less than that, like 5-10... (aside from the cache maintenance methods, and other utility methods, many of which we might want to make private, the general goal being to simplify the class).

Or put them in a separate class that takes a GenericDelegator as an argument.

In shorter I think this is getting to be one of those cases where less is more...

I agree 100%.

If I hold up both hands can I cast +2 votes?

-Adrian

Reply via email to