by rsj_hn · 9y ago · 0 comments
I don't want to discourage any company from setting and documenting coding standards, but this particular document feels a bit rushed and could use adherence to best practices of its own. For example,
1. If making an opinionated mandate, provide a link to an explanation
2. Consistently provide links to examples
3. Maybe do some spell-checking: "Hallo"?
4. Try to maintain a uniform level of specificity
E.g. in the section on URL security, there is this vague comment: "Attackers can tamper with any part of an HTTP request, including the URL, query string,"
Which, while a true, doesn't describe what the programmer should or shouldn't do. It's just hanging there. Compare with the weird specificity of listing git commands in section 1.
That tells me the author knew a lot about checking stuff into git, but was a bit out of his/her league when it came to Security, so they just made generic security statements while giving precise instructions for using git.
This document should rather be called:
"Some practices for JavaScript projects that work for devs at Hive but might not necessarily work for you."
The use of TC39 proposals IN PRODUCTION. The authors of that document aren't serious.
I figured the string was German.
This way I can develop standards for my team, which as of now really doesn't have any.