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
-
balheru186yIs there any advantage to the traditional? Compiled efficiencies or whatnot to justify this?
-
Don't know why you need to call him a retard. It might be he wants longhand for readability, in case another dev will take over maintaining your code should you ever leave.
-
@Kairpooph because its a meme
Also readibility would be a perfectly valid option if this wasnt dead simple android code where you basically just display stuff -
sSam15016yThere's a huge fucking difference between indexed and enhanced ("short") loops. Enhanced loop uses iterator, try looping through big LinkedList and you'll see the difference easily.
-
sSam15016y@sharktits it wasn't the point, I just provided it as an example. Also yes, I use if it makes sense.
This is one from i was an intern
Me: writes some logic, using
for(String s : something)
Senior: holds a 30 minute talk on why short loops are bad and we should always use the traditional one
Me: ok retard
Me: havent used traditional loops ever since then
rant