PinnedThor CheninJavaScript in Plain EnglishDependency Injection for Serverless ApplicationsA brief introduction to DI and Serverless with example setup using node.js, TypeScript and AWSJun 14, 20231Jun 14, 20231
PinnedThor CheninBits and PiecesRethinking Code ReuseAvoid Wrong Abstraction through Encapsulation and CompositionJan 5, 20231Jan 5, 20231
PinnedThor CheninBits and PiecesReact Design Patterns: Return Component From HooksA Potential New Pattern Inspired by “Partial Application”: With practical examples using Material-UI and TypeScriptFeb 17, 20229Feb 17, 20229
Thor CheninJavaScript in Plain EnglishWhy Mutating Input Parameters of Functions in JavaScript is BadRecently, I received a merge request containing code where multiple functions share the same object as an input parameter, treating it as a…Nov 4Nov 4
Thor ChenTypeScript, Zod, and MongoDB: A Guide to Data Access Layer without ORMEmbracing New Paradigms for Enhanced Data Consistency and Type SafetyJun 14, 20233Jun 14, 20233
Thor CheninJavaScript in Plain EnglishStream Chat Completion with OpenAI API using JavaScript FetchBuild your own ChatGPT with React in a typewriter styleMay 9, 20232May 9, 20232
Thor CheninBits and PiecesThe Pitfalls of Using <Guard> or <If> Components in ReactUse Logical AND Operator (&&) or Babel Plugin InsteadApr 12, 20231Apr 12, 20231
Thor CheninAWS in Plain EnglishDeploy React Web App on AWS S3 and CloudFront using CloudFormation (via AWS SAM CLI)Feb 28, 20231Feb 28, 20231
Thor CheninJavaScript in Plain EnglishUnderstand Google reCAPTCHA with Diagrams and Code ExamplesCode examples are written in React, TypeScript, and Node.jsDec 11, 2022Dec 11, 2022
Thor CheninJavaScript in Plain EnglishPolyfill CSS using styled-components mixins in ReactWith an example of flex gap polyfillFeb 7, 2022Feb 7, 2022