DEV Community

Discussion on: Why avoid Ruby's for .. in?

Collapse
 
renannobile profile image
Renan Lourençoni Nobile

Firstly, thank you for the explanation.

Secondly, I really like the for .. in syntax, although in Ruby (don't know if it's the same for JavaScript), counter cleanup is non existent.

Thirdly (is that a word?): What is rubocop?

Collapse
 
briankephart profile image
Brian Kephart

Rubocop link. Rubocop can analyze your code, alert you to syntax errors, and suggest style improvements.

Thread Thread
 
renannobile profile image
Renan Lourençoni Nobile

Awesome! Is there a plugin version for VS Code?

Thread Thread
 
briankephart profile image
Brian Kephart

Almost definitely. I use Atom, and there's a package for it in that editor. I'd be shocked if VSC didn't have one.

Thread Thread
 
renannobile profile image
Renan Lourençoni Nobile

Thank you very much for the tip, I'll make sure to look for that