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
I help first year Computer Science students at my uni. In the first few weeks I reviewed someone's code to find he had 253 variables called var1, var2, var3 and so forth. The even worse part: he made the same if-else structures for every variable without using a loop.
if (var1 == something) {
//huge chunk of code here
}
else if (var1 == something) {
}
else {
}
... var2... var3
The funniest thing about this is that we had a discussion about this, because he claimed this was the right way to solve his problem.
undefined