Tag view

#patterns

Cross-subject tag search for related interview cards.

Clear

Results update as you type. Press / to jump straight into search.

Tagged with patterns

5 cards

Python Medium Theory

Nested dictionaries, get, setdefault, and update

Nested dictionaries represent hierarchical data, and helper methods like `get`, `setdefault`, and `update` make access and merging cleaner.

  • get avoids immediate KeyError
  • setdefault initializes missing keys
  • update merges another mapping in place

Nested dictionaries, get, setdefault, and update

React Medium Theory

Higher-order components, controlled vs uncontrolled components, and good component quality

Higher-order components wrap behavior, while controlled and uncontrolled components describe where important state lives.

  • HOCs enhance components via composition
  • Controlled components receive value and change handlers from state
  • Good components stay predictable and testable

Higher-order components, controlled vs uncontrolled components, and good component quality

React Hard Theory

React patterns: compound components, provider pattern, custom hooks, container-presentational, and headless UI

React patterns help organize how behavior, layout, and state are shared across components.

  • Compound components coordinate related pieces
  • Providers expose shared capabilities
  • Headless UI separates behavior from styling

React patterns: compound components, provider pattern, custom hooks, container-presentational, and headless UI