minus-square8hob@programming.devOPtoJavaScript@programming.dev•Assertions in If-Clauses in Unit Tests: Tips and Best PracticeslinkfedilinkEnglisharrow-up3·11 days agoThe post talks about how to avoid ifs ;) linkfedilink
8hob@programming.dev to JavaScript@programming.devEnglish · 12 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 · 12 days agomessage-square2fedilink
minus-square8hob@programming.devOPtoTypeScript@programming.dev•A Type-Safer Alternative to Type Guards in TypeScriptlinkfedilinkEnglisharrow-up3·17 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 · 17 days agoA Type-Safer Alternative to Type Guards in TypeScriptplus-square8hob.ioexternal-linkmessage-square2fedilinkarrow-up118arrow-down10
arrow-up118arrow-down1external-linkA Type-Safer Alternative to Type Guards in TypeScriptplus-square8hob.io8hob@programming.dev to TypeScript@programming.devEnglish · 17 days agomessage-square2fedilink
minus-square8hob@programming.devtoTypeScript@programming.dev•Tsdocs.dev: Type docs for any JavaScript librarylinkfedilinkEnglisharrow-up1·17 days agoOops, seems like already dead :\ linkfedilink
minus-square8hob@programming.devtoTypeScript@programming.dev•Google TypeScript Style GuidelinkfedilinkEnglisharrow-up1·edit-217 days agoI would just use the part that I consider good. linkfedilink
The post talks about how to avoid ifs ;)