Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
piehole8183yWhat problem does this solve?
We got an int...
We convert that to String...
We take that, convert that from String to Integer, subtract 1, create a new Integer object unnecessarily, and then convert that Integer object to String..?
If it works, but you could simplify it and have the same functionality, it's just stupid, not "street smart".
7Raiden9153yEven if what it did was sensible, the style totally invalidates it!
This is classic yo-yo code, though it takes extraordinary stupidity to do it that blatantly.