THTing Haoinshineve.hashnode.dev·Feb 28, 2023 · 3 min readJavaScript Style GuideIn JavaScript, we usually use camelCase for naming variables, functions, and object properties, but for naming classes, we use PascalCase. This helps to differentiate between classes and regular variables and makes the code more readable and easier t...00
THTing Haoinshineve.hashnode.dev·Feb 11, 2023 · 3 min read5 Tips for Writing Cleaner CodePrevent unnecessary nesting Too much nesting can make the code harder to read and more prone to errors, so we can return early to avoid excessive nesting. // Bad function deleteItem(item) { if (item != null) { console.log('Deleting item'); ...00
THTing Haoinshineve.hashnode.dev·Feb 22, 2021 · 3 min readSimplify your animations with Lottie now!Background I trust many front-end engineers feel that reproducing animations with CSS is really hard. Let me introduce you a really nice library which can save you from that, Lottie (produced by Airbnb). Lottie is not restricted to Web development bu...00