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.
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
Why should you try IntelliJ IDEA ?
This thread has been viewed 1136 times.
All times above are in ranch (not your local) time.
The current ranch time is
Jul 20, 2018 00:37:20.