alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 11 months agoSome people just wake up and choose violencelemmy.worldimagemessage-square80fedilinkarrow-up1811arrow-down114
arrow-up1797arrow-down1imageSome people just wake up and choose violencelemmy.worldalphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 11 months agomessage-square80fedilink
minus-squaresik0fewl@kbin.sociallinkfedilinkarrow-up46arrow-down1·11 months agoConsumer just needs to write 4x as many unit tests to make up for lack static typing. Hopefully the library author has done the same or you probably shouldn’t use that library.
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up6·11 months ago 4x as many unit tests Well… the people fighting against TS are simply not testing things thoroughly. So they are not writing those tests. Some times that’s even perfectly ok. But you don’t want to build things over a complex library that has this attitude. (Except for svelte. It’s meaningless for svelte, as TS was always a really bad fit for it.)
minus-squareStumblinbear@pawb.sociallinkfedilinkarrow-up2·11 months agoIt’s ok, just do what my company does and write no tests at all!
Consumer just needs to write 4x as many unit tests to make up for lack static typing. Hopefully the library author has done the same or you probably shouldn’t use that library.
Well… the people fighting against TS are simply not testing things thoroughly. So they are not writing those tests.
Some times that’s even perfectly ok. But you don’t want to build things over a complex library that has this attitude.
(Except for svelte. It’s meaningless for svelte, as TS was always a really bad fit for it.)
It’s ok, just do what my company does and write no tests at all!