Menu

#Iterator

7 posts

Feed·
7 of 7 posts
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·6 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·6 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