3 ms·
This feature has such a positive effect on code quality in JS. It makes it easier to give consistent names to variables, and harder to use inconsistent names. Y
by zarzavat 5y ago
This feature has such a positive effect on code quality in JS. It makes it easier to give consistent names to variables, and harder to use inconsistent names. You really notice when you write { foo: bar } instead of { foo } and it becomes somewhat of a code smell. Could variable bar be changed to foo? If yes then great, that's one less naming variation you have to remember for 'foo'. Across a whole codebase that can be a significant improvement.