InBetter ProgrammingbySunny SunMigrate a Cypress Cucumber Project To Use TypeScriptA step-by-step guide to migrate a Cypress Cucumber project from JavaScript to TypeScriptNov 9, 20212Nov 9, 20212
InBetter ProgrammingbySunny Sun4 Simple and Effective Ways To Avoid Too Many Ifs With TypeScriptIf…else is not bad — excessive usage isSep 21, 20211Sep 21, 20211
Sunny Sun6 TypeScript Code Patterns To Make Your Code More RobustSimple and practical solutions you can apply in daily workOct 6, 202110Oct 6, 202110
InJavaScript in Plain EnglishbySunny SunDeep clone an Object and preserve its type with TypeScriptEverything in JavaScript world is an Object. We often need to clone an Object, and when working with TypeScript, preserve the object type…Oct 5, 20203Oct 5, 20203
InCodeXbySunny SunFactory pattern - Type script implementation with type mapAs one of the common creation patterns, the factory pattern makes application loose coupling by hiding the implementation details from…Apr 4, 20217Apr 4, 20217
InBetter ProgrammingbySunny Sun6 TypeScript Typing System Tricks You Should KnowWhat I’ve learned from using TypeScript’s typing systemJul 19, 20212Jul 19, 20212
InJavaScript in Plain EnglishbySunny SunTypeScript Infer keyword ExplainedWhat is the infer keyword? What are the use cases?Jun 25, 20212Jun 25, 20212
InJavaScript in Plain EnglishbySunny SunUse Cases For TypeScript Discriminated Union Types and GenericsOne reason I really like Typescript is its Type system, it is practical and feature rich. Applying the types in right use cases can make…Feb 28, 2021Feb 28, 2021
Sunny SunPath to functional style: a TypeScript refactoring exampleThis article talks about how to refactor a function with imperative style into functional style. The function is refactored in a few…Jan 5, 20194Jan 5, 20194
InBetter ProgrammingbySunny SunTypeScript’s Record Type ExplainedEverything you want to know about the Record utility typeJun 18, 20211Jun 18, 20211