So I've inherited a codebase. And pretty much everywhere that an object returns an int, where a String is desired, I find code like this:
Is there some sort of advantage to that code, that I don't understand? I mean: why not just this:
It's possible that the advantage was simply that the original programmer knew how to write that code but didn't know how to write your suggested replacement.
This thread has been viewed 1158 times.
All times above are in ranch (not your local) time.
The current ranch time is
Oct 17, 2018 01:19:22.