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
-
Parzi86635yTI-BASIC? "S". (Why? ...iunno, it just started as S and hasn't changed since.)
Python? "loopnum". -
i, j, k, n, m, a, b, c, _
Also:
f, g, h for lambda,
e, entry, item, thing, stuff etc. for foreach when I only use the retrieved variable on the next line to get something meaningful. -
suprano38145yLast time I saw someone use ‘x’ in their loop, I had no idea what was going on until I replaced it with ‘i’. 😂
-
@damleadwait this actually applies to myself for not knowing what it stood for all these years and all those “developer” tutorials stating that they don’t know why people chose that convention 😂😂😂
-
As people are adding lambda and foreach, both of my conventions are similar.
s, str ==> string
c ==> char
r, row ==> DataRow via DataTable enumeration
d, f, i, x, n, s, w, z ==> lambda searches, finds, casts, where, etc
<object>_item, temp_<object> ==> foreach objects from a list of complex structures -
The reason for loops indices starting with 'i' is because some ancient languages (can't remember which) had fixed variable names and integer vars started at 'i'
Related Rants
Been programmed to write the loop this way
joke/meme
loops
iterators