Skip to content
pratyushkamalHome

0 to 1

Sharing my thoughts on what I learn, while I learn.

  1. Aug 2026/5 min read

    nums.size() vs int n = nums.size() in a For Loop: Which One Should You Actually Use?

    Why caching nums.size() into an int isn't about speed. It's about dodging an unsigned-integer wraparound bug that only shows up the moment your input is empty.

    Read
  2. Jul 2026/5 min read

    NULL vs Empty String: Why "No Data" Isn't Always the Same Thing

    NULL and '' both look like "no data" at a glance, but they answer different questions, and mixing them up quietly breaks aggregates, filters, and BI tools.

    Read
  3. Apr 2026/3 min read

    Slowly Changing Dimensions (SCD): What They Are and How to Actually Choose the Right One

    A practical walkthrough of SCD types 0 through 6, and a simple decision tree for picking the right one instead of memorizing all of them.

    Read
Local time--:--:--Mumbai · IST
© 2026Pratyush Kamal
PRATYUSH KAMAL
esc
    ↑↓ navigate↵ selectCtrlK toggle