R
Roedy Green
I don't know if you have seen
http://mindprod.com/applet/comparatorcuttor.html
It is Applet where you fill in the blanks and it composes you a
complete custom Comparator or Comparable class including generics.
I was wondering about the theoretical possibility of something similar
to help idiots like me compose generics.
You would feed it a method signature, perhaps parsed out similar to
ComparatorCutter, It would ask you some questions.
It would then compose the signature generified.
Is such a beast plausible? If so, what sort of rules would it use?
Such a beast would also be a great learning tool. If you can see
enough examples, the general principles seep in subliminally.
--
Roedy Green Canadian Mind Products
http://mindprod.com
Capitalism has spurred the competition that makes CPUs faster and
faster each year, but the focus on money makes software manufacturers
do some peculiar things like deliberately leaving bugs and deficiencies
in the software so they can soak the customers for upgrades later.
Whether software is easy to use, or never loses data, when the company
has a near monopoly, is almost irrelevant to profits, and therefore
ignored. The manufacturer focuses on cheap gimicks like dancing paper
clips to dazzle naive first-time buyers. The needs of existing
experienced users are almost irrelevant. I see software rental as the
best remedy.
http://mindprod.com/applet/comparatorcuttor.html
It is Applet where you fill in the blanks and it composes you a
complete custom Comparator or Comparable class including generics.
I was wondering about the theoretical possibility of something similar
to help idiots like me compose generics.
You would feed it a method signature, perhaps parsed out similar to
ComparatorCutter, It would ask you some questions.
It would then compose the signature generified.
Is such a beast plausible? If so, what sort of rules would it use?
Such a beast would also be a great learning tool. If you can see
enough examples, the general principles seep in subliminally.
--
Roedy Green Canadian Mind Products
http://mindprod.com
Capitalism has spurred the competition that makes CPUs faster and
faster each year, but the focus on money makes software manufacturers
do some peculiar things like deliberately leaving bugs and deficiencies
in the software so they can soak the customers for upgrades later.
Whether software is easy to use, or never loses data, when the company
has a near monopoly, is almost irrelevant to profits, and therefore
ignored. The manufacturer focuses on cheap gimicks like dancing paper
clips to dazzle naive first-time buyers. The needs of existing
experienced users are almost irrelevant. I see software rental as the
best remedy.