TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Stop Using I++ in Your Loops

2 pointsby johnnyApplePRNGover 3 years ago

1 comment

mytailorisrichover 3 years ago
The danger here is to assume that the pseudo-code in the article has <i>anything</i> to do with how the code is actually compiled.<p>In general for a &#x27;for&#x27; loop the difference is only when the variable is incremented.<p>I would focus on what makes sense for the task at hand and what is easier to read and reason with.