DIFF.BLOG
New Following Discover Jobs
More
Top Writers Suggest a blog Upvotes plugin
Report bug Contact About Privacy
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 software development programming techniques developer insights
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
A faster Easter date function
Ben Joffe · Nov 10, 2026
software development Algorithm Optimization
Why can't i implement a trait for a single function?
Users Rust Lang · Nov 10, 2026
software development Traits
Restore SwiftUI Menu Icons on macOS 27 with One Line
James Montemagno · Nov 8, 2026
macos icons
AI tools I use (2026)
Fredrik Meyer · Nov 7, 2026
AI programming
Read, don't copy: replacing file feeds with OpenSharing - Part 2 (How to Implement)
Mooncake · Nov 6, 2026
engineering Tutorials
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.