Menu

#Iterator

10 posts

Feed·
10 of 10 posts
Java Tricky Question: Why Does Removing From an ArrayList Inside a for-each Loop Crash Only Sometimes?
📰
0Read More

Java Tricky Question: Why Does Removing From an ArrayList Inside a for-each Loop Crash Only Sometimes?

DEV Community: tutorial·Vishnu B·about 18 hours ago
#VeifcLpj
#devtotutorial#devto#dev#iterator#java

Here is a scenario that surprises people in interviews and in real code. Look at this tiny program...

15s
Stop Writing `for` Loops in TypeScript. 2026 Way to Pipeline Data.
📰
0Read More

Stop Writing `for` Loops in TypeScript. 2026 Way to Pipeline Data.

DEV Community·Gabriel Anhaia·7 months ago
#NbfqqFUx
#when#typescript#javascript#loop#const

Array methods, Object.groupBy, generators, and ES2025 iterator helpers replace 90% of your TypeScript for loops. Here is what to keep, and where the loop still earns its keep.

15s
Stop Writing `for` Loops in TypeScript. The 2026 Way to Pipeline Data
📰
0Read More

Stop Writing `for` Loops in TypeScript. The 2026 Way to Pipeline Data

DEV Community·Gabriel Anhaia·7 months ago
#H2WBkkPh
#when#typescript#javascript#loop#const

Array methods, Object.groupBy, generators, and ES2025 iterator helpers replace 90% of your TypeScript for loops. Here is what to keep, and where the loop still earns its keep.

15s
Go's range-over-func: 4 Footguns the Compiler Won't Warn You About
📰
0Read More

Go's range-over-func: 4 Footguns the Compiler Won't Warn You About

DEV Community·Gabriel Anhaia·7 months ago
#aewUDahE
#footgun#go#programming#yield#func

Stored yields, post-break calls, parallel yields, error-as-second-return. All compile. All blow up at runtime. Here's what to do instead.

15s