Writers/Fellow
leduyhien152
Former Frontend
Written at Dwarves
Latest- 10 Jun 2024Gang of Four design patterns, notes on seven creational and behavioral patterns
Working notes on Singleton, Builder, Prototype, Strategy, State, Observer and Command, each with its problem, structure, examples, trade-offs and use cases.
- 1 Mar 2023When should we use useReducer instead of useState?
Imagine we have a component with multiple states. It is simple enough not to use state management libraries. `useState` is surely a choice for the sake of brevity and clarity. But are there any issues we have to deal with? In this article, I want to make some improvements on `useState` hook and how we can replace it with `useReducer` as an alternative solution.
- 24 Mar 2022Liquidity pool
A comprehensive guide to understanding liquidity pools in blockchain, covering their definition, functionality, the role of automated market makers (AMM), arbitrage, pool depth, slippage, how to provide liquidity, and the concept of impermanent loss. This article provides insights for both beginners and experienced users in decentralized finance (DeFi)
All notes
3- 10 Jun 2024Gang of Four design patterns, notes on seven creational and behavioral patternsResearch notesArchitecture
- 1 Mar 2023When should we use useReducer instead of useState?Research notesProduct engineering
- 24 Mar 2022Liquidity poolResearch notesDigital assets