felixge / felixge/node-style-guide

Object.freeze

Open
#67 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
893
PR merge metrics
No merged PRs in 30d

Description

Great guide, thank you!

I was sad to see Object.freeze at the bottom, included in the 'Crazy shit' group. I've been using it in some of my projects lately, but only by using the constant naming convention, like enums. There are also some speed optimizations appearing when using Object.freeze. Any further thoughts on this? Would it make sense to take it out of the 'Crazy shit' group, when used with a naming convention?

A little more info with a small example:
http://stackoverflow.com/a/31906266/2280394

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.