paint-brush
Don’t pay the for-loop taxby@DanHomola
496 reads
496 reads

Don’t pay the for-loop tax

by Dan Homola4mApril 6th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Once, when doing code review on a TypeScript project in my work, I came across several instances when a colleague of mine used a <code class="markup--code markup--p-code">for</code> loop, even though it wasn’t necessary (i.e. a more readable declarative equivalent was available). In a joke I stated that we should impose a “for-loop tax” for every loop used unnecessarily.

Company Mentioned

Mention Thumbnail
featured image - Don’t pay the for-loop tax
Dan Homola HackerNoon profile picture
Dan Homola

Dan Homola

@DanHomola

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite