So I have been working at a startup for over 6 months now. Two colleagues already have expressed some aversions to using TypeScript or formatters such as prettier when writing code, but if you are going to ask me to do a PR, I am going to comment when I see use of
var as opposed to
let, basically ES6 and beyond as opposed to just whatever floats the boat of the latest hire which is typically using CommonJS module system for new projects because they have not learned the ES2015 Module system and if a project is already a ES2015 project they still use CommonJS module patterns in it or run
node index.js and say see, no complaints from TypeScript. Right, thats because TS does not exist in when running
The two founders, seem okay with just getting product out the door as soon as possible rather than following European Computer Machine Association standards and proper use of TypeScript.
Not sure what to do, but I am sure the nay sayers are positioning this to be an issue of me just wasting time with industry standards as opposed to getting product out the door as soon as possible.
To be clear, I am not sure how others interpret standards, but these standards are to catch bugs or to assist in doing so, it's the whole modus operandi of TypeScript and it's the reason we use
1et instead of
var you can accidentally mutate that state inside that variable and never notice until it's too let, with
const you will not be allowed to screw that up.
What to do?