I’m estranged from my extended family because they’re mostly Trumpistas, and I have no desire to be the crazy uncle who shows up when there’s food; but I’m a fairly extreme introvert, so that’s actually OK with me.
It’s possible for me to get bored, however; so just for lulz, I decided to translate my rational number into Java.
I haven’t done any Java work since I retired, and so I don’t have javac on either the Windows or Linux partition on my home computer. It’s probably out there somewhere on the VPS that I rent, but I haven’t found it yet. The result is that, as I write this, the code hasn’t even been compiled, let alone tested; and we know how that can go.
If anybody out there might actually find this useful, would you care to be my tester? 😎 You’ll find the current version of the source in this ZIP archive.
Update: 2024-12-26 20:00−6:00: OK, I found javac on my VPS and, after fixing a bunch of stupid mistakes, got a clean compile. For the sake of my sanity, I’ve added the requirement that the one-argument Rational(double) not be passed a subnormal value; and I’ve put the new documentation and the ZIP file containing the new source at the links above. Now for some testing…
Update: 2024-12-28 09:00−6:00: I found some bugs just by desk checking the code some more, and I reorganized the documentation a bit. OK, now for some testing…
Update: 2024-12-30 20:30−6:00: OK, I think it’s done.

