DIFF.BLOG
New Following Discover Jobs
More
Top Writers Suggest a blog Upvotes plugin
Report bug Contact About Privacy
+
Create new post Create new blog
Add your blog
Sign up
Topics
Follow your own topics →
Menu
New Following Discover Jobs Top Writers
More
Suggest a blog Upvotes plugin Report bug Contact About
Sign up
Privacy Policy
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS

Choosing Wisely: for vs. forEach in Kotlin (A Thinking Dev’s Perspective)

· Paul Blundell · April 4, 2025, 2:34 p.m.
reference androiddev Kotlin Kotlin programming techniques for vs forEach software development
Summary
This blog post explores the differences between using 'for' and 'forEach' loops in Kotlin, questioning whether 'forEach' is always the best option despite its convenience in IDEs. It encourages developers to think critically about their loop choices and offers insights from the author's perspective.
Read full post on blog.blundellapps.co.uk →
MORE POSTS LIKE THIS
A New Way to Think About Borrow Checking (In Reverse)
Evan Ovadia · Oct 18, 2026
programming-languages Vale Programming Language
The best thing agents built for me wasn't an app, it was the tooling around my apps
Flaviocopes · Nov 24, 2026
Coding Agents development tools
Verifying Fortran code with Lean
Fortran Lang Discourse · Nov 25, 2026
Fortran numerical methods
Airbnb just gave away its Skipper
Thestack · Nov 20, 2026
airbnb Open Source
Rebuilding the Metabase MCP server: lessons for MCP tool design
metabase · Nov 17, 2026
engineering mcp-server
How can I pass more than one parameter to co_await?
Raymond Chen · Nov 12, 2026
Old New Thing Code
Discover more posts →
AUTHOR
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub Continue with Google
By continuing, you agree to our Privacy Policy.