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.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards
This thread has been viewed 1110 times.
All times above are in ranch (not your local) time.
The current ranch time is
Jan 21, 2018 15:49:15.