minus-square8hob@programming.devOPtoJavaScript@programming.dev•Assertions in If-Clauses in Unit Tests: Tips and Best PracticeslinkfedilinkEnglisharrow-up3·20 days agoThe post talks about how to avoid ifs ;) linkfedilink
8hob@programming.dev to JavaScript@programming.devEnglish · 21 days agoAssertions in If-Clauses in Unit Tests: Tips and Best Practicesplus-square8hob.ioexternal-linkmessage-square2fedilinkarrow-up16arrow-down12
arrow-up14arrow-down1external-linkAssertions in If-Clauses in Unit Tests: Tips and Best Practicesplus-square8hob.io8hob@programming.dev to JavaScript@programming.devEnglish · 21 days agomessage-square2fedilink
minus-square8hob@programming.devOPtoTypeScript@programming.dev•A Type-Safer Alternative to Type Guards in TypeScriptlinkfedilinkEnglisharrow-up3·26 days agoUsing a third-party library when it’s applicable definitely works. Much of this post is for those who can’t add a heavy dependency :) linkfedilink
8hob@programming.dev to TypeScript@programming.devEnglish · 26 days agoA Type-Safer Alternative to Type Guards in TypeScriptplus-square8hob.ioexternal-linkmessage-square2fedilinkarrow-up119arrow-down10
arrow-up119arrow-down1external-linkA Type-Safer Alternative to Type Guards in TypeScriptplus-square8hob.io8hob@programming.dev to TypeScript@programming.devEnglish · 26 days agomessage-square2fedilink
minus-square8hob@programming.devtoTypeScript@programming.dev•Tsdocs.dev: Type docs for any JavaScript librarylinkfedilinkEnglisharrow-up1·26 days agoOops, seems like already dead :\ linkfedilink
minus-square8hob@programming.devtoTypeScript@programming.dev•Google TypeScript Style GuidelinkfedilinkEnglisharrow-up1·edit-226 days agoI would just use the part that I consider good. linkfedilink
The post talks about how to avoid ifs ;)