Hasty Briefsbeta

  • #programming-pitfalls
  • #web-development
  • #performance-optimization
  • HTML and CSS traps include `min-width: auto` overriding other CSS attributes and differences in horizontal vs. vertical behavior.
  • Block formatting context (BFC) can prevent margin collapse and parent height collapse when containing floating children.
  • Stacking contexts affect `z-index`, positioning, and clipping behaviors, created by properties like `transform` and `position: fixed`.
  • Mobile viewport height (`100vh`) issues can be resolved with `100dvh` to account for browser UI bars.
  • Floating-point pitfalls include NaN behavior, negative zero, and hardware-dependent computation differences.
  • Time-related traps involve leap seconds, time zones, and DST, recommending UTC for server configurations.
  • Java and Golang have specific concurrency and equality comparison traps, like `==` vs. `.equals()` in Java.
  • C/C++ undefined behaviors include uninitialized memory access, strict aliasing, and iterator invalidation.
  • Python's default argument mutability and numpy/pytorch differences are common pitfalls.
  • SQL database traps include NULL handling, implicit conversions, and locking behaviors affecting performance.
  • Concurrency issues like TOCTOU and atomic reference counting inefficiencies are highlighted.
  • Linux/bash pitfalls involve unset variables, file name case sensitivity, and command path caching.
  • React hooks misuse and state management errors can lead to bugs and unnecessary re-renders.
  • Git rebase and force push nuances, along with secret leakage risks in public repositories.
  • Networking issues include silent TCP connection drops, CORS, and HTTP method body misconceptions.
  • YAML and Excel data handling pitfalls, like space sensitivity and automatic data conversion errors.