3 ms·
The rangeCheck slide is somewhat cringeworthy. What are they supposed to do, not throw exceptions when it's outside the range?
by TazeTSchnitzel 15y ago
The rangeCheck slide is somewhat cringeworthy. What are they supposed to do, not throw exceptions when it's outside the range?
- saintfiends 15y agoIt really is, does that imply that we must obscure things just to be on the safe side, even though it is the most common-sensical thing?
- BrandonM 15y agoI thought so, too, at first, but rangeCheck is a private method. It's used in implementing a public API. Calling a non-API method "rangeCheck" and using the same variable names is clear evidence of a non-clean-room implementation, in my opinion. And in the next slide, the engineer even refers to referencing the Sun code.
- TazeTSchnitzel 15y agoIt's also quite possibly from Sun's open-source code, which they surely couldn't be held liable for.
- BrandonM 15y agoThat depends entirely on the license.