Ashish@mastodon.social to Linux@lemmy.ml · edit-21 year ago[@linux](https://lemmy.ml/c/linux) [@programmerhumor](https://lemmy.ml/c/programmerhumor) !programmerhumor@lemmy.mlfiles.mastodon.socialexternal-linkmessage-square27fedilinkarrow-up1367arrow-down148file-text
arrow-up1319arrow-down1external-link[@linux](https://lemmy.ml/c/linux) [@programmerhumor](https://lemmy.ml/c/programmerhumor) !programmerhumor@lemmy.mlfiles.mastodon.socialAshish@mastodon.social to Linux@lemmy.ml · edit-21 year agomessage-square27fedilinkfile-text
minus-squareyouRFate@feddit.delinkfedilinkarrow-up5arrow-down1·edit-21 year agoUsually variables like that can be avoided with itterators nowadays. If they can’t I like to use idx, if they are nested I name them after what they index, like idx_rows, idx_cols.
Usually variables like that can be avoided with itterators nowadays. If they can’t I like to use
idx
, if they are nested I name them after what they index, likeidx_rows, idx_cols
.