Naming Things

github logo ・1 min read

So I was implementing a forEach method and asked my co-worker, "is there a name for a for-loop that iterates backwards? Something like:"

for (let i = myObj.length - 1; i >= 0; i--) { ... }

Of course, there wasn't one. So I set out to create one.

Meet rofEach and the rof loop. It's not only the word "for" backwards, it also means "Reverse Order For".

You're welcome, world. πŸŽ€β¬‡οΈ

twitter logo DISCUSS (2)
Classic DEV Post from May 10

Why I ignore the hype (and you should too)

It’s been 20 years since I made my first website. I've been burned by the hype ti...

Mike S profile image
Software Developer at GameGlass

Sore eyes?

dev.to now has dark mode.

Go to the "misc" section of your settings and select night theme ❀️