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.
Always look on the bright side of life. At least this ad is really tiny:
Thread Boost - a very different sort of advertising
This thread has been viewed 1121 times.
All times above are in ranch (not your local) time.
The current ranch time is
Apr 20, 2018 13:59:17.