Yeah, it’s actually fairly easy to build one yourself in most cases
s
stalbert
10/28/2020, 4:21 PM
buy why? why would I want to waste time rewriting ANY function that has already been written, battle tested, and has real unit tests?
s
scottvonduhn
10/28/2020, 4:42 PM
I wouldn’t for an existing function, only if I was creating it to be memoized in the first place. It really depends upon what point in development I am at. And, if you already have a library loaded that can do it, though, it’s hard to argue against using it.
s
stalbert
10/28/2020, 4:46 PM
many years of experience has taught me to constantly strive to not write code :)
s
scottvonduhn
10/28/2020, 4:51 PM
A wise choice. Speaking of writing code, our company finally decided to look into adopting TypeScript. No decisions yet, we are just in the discussion phase, but it seems like more and more JS developers are familiar enough with it (or are coming from another strongly-type language), so there is less argument against TS. The only concern is whether or not we’d want to take the step of rewriting any older code when we touch it, or just leave it alone and use TS for new development only.
s
stalbert
10/28/2020, 6:20 PM
Good luck with the TS! Also note that you should be able to incrementally adopt TS
stalbert
10/28/2020, 6:21 PM
supposedly you can just rename a .JS file to .TS and ta-dah, TS will accept it.. then incrementally TypeScriptify it.