4 ms·
Perhaps avoid lodash if possible, i.e. prefer the new built-ins. Otherwise it becomes yet another way of doing a simple thing. Typescript is another language l
by somewhereoutth 4y ago
Perhaps avoid lodash if possible, i.e. prefer the new built-ins. Otherwise it becomes yet another way of doing a simple thing.
Typescript is another language layer, devs will tend to write even more code for a given problem - often not helpful. It should be possible to do a lot of static type checking without annotations.
- zelphirkalt 4y agoIt should be possible, but probably is not very well due to how crazy JS does implicit type conversions and other footguns.
- yamtaddle 4y ago> Typescript is another language layer, devs will tend to write even more code for a given problem - often not helpful. That "even more code" is communication. It's documentation that you ought to be recording somewhere anyway, for the most part. The nice part about using TypeScript for that particular documentation is that then your tools can help you with both the reading and the writing.