Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
piehole8106yWhat 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". -
@piehole It seems like none. This is what you get when you contract bank accountants, take them to a course of an old software's programming language and teach them to copy /paste code in order to create a hybrid java web application. And this is just the tip of the iceberg
-
This is classic yo-yo code, though it takes extraordinary stupidity to do it that blatantly.
-
@Fast-Nop And this is all over the place in this project. Did you even notice those variable names? it's not like its version 4 of variable zcount, there also zcountv1, zcountv2 and zcountv3. Its just a fucking counter to distinguish them.
Related Rants
I know that if something looks stupid but it works, it ain't stupid... but this is just plain borderline.
Basically, a cast from int to String to int to String from some legacy code I'm working with
rant
legacy code