Skip to content
memoDwarves Foundation

Writers/Fellow

leduyhien152

Former Frontend

3 notes since 2022, 0 in the last 12 months.

Written at Dwarves

Latest
  • 10 Jun 2024
    Gang 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 2023
    When 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 2022
    Liquidity 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