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
-
Welcome to devRant, green dot. I’ve got a tip for you before you get peeps here angry: learn to use the correct tags from the start.
The devrant tag is for posts relating to the platform itself. This particular one should be tagged joke/meme, I gather. -
C0D4669023yi is short for index, so no!
Because for(index = 0; index <= eyes; index++){}
Is longer.
Use foreach() or similar instead. -
C0D4669023y@TheCommoner282
I was waiting for someone to say it.
It's an iterator, and used as an index for arrays, which is about the only real time you would use a for() anymore anyway.
For(i .....){
data[i]
}
So, really it's declared as an iterator, and used as an index, but historically we blame Fortran. -
@TheCommoner282 when shall the stoning of this blasphemer commence?!
*huffs in righteous indignation -
@C0D4 In C++ it's perfectly normal to do
for (Foo::Iterator i = foo.iterator(); i.next(); i.end()) {
...
}
I don't remember what the iterator API used to look like in cpp but that's how you'd use it. -
I don't see the problem with variable name that is credit to math. It's a tradition.
-
Fine, fine, we’ll do it your way.
For(let OwO = 0; WhatsThis(OwO); OwO++){
// code
} -
@Demolishun it is only imperative to use fully qualified variable name in iteration that is planned to be extended. Well, sorry for pointing out some middle ground here, can't help it.
Related Rants
Stop using 'i' in loops
devrant
rant
funny
loops
python