Physics Wallah internal learning

Demo deck

Session 1 and Session 2. Browse the demos in order, or jump to Session 2.

Jump to Session 2

Session 1 — How a website actually happens

1a HTML only — the skeleton
Zero CSS, zero JS. What every site looks like underneath.
2 min
1b + CSS — now it has feelings
Same HTML. Comment out the style block live and watch the room recoil.
3 min
1c + JavaScript — it's alive
Search, filter, cart counter, toast. The third layer.
3 min
2 The Samosa Counter — DOM & events
20 lines. Edit the page live from the Console. Sets up "UI = f(state)".
3 min
3a The cart badge that lies to you
One truth, three copies, one forgotten update. Make them feel the bug.
4 min
3b Same app in React — the bug you cannot write
Invite someone to break it. They can't. Then show the 15 lines.
5 min
4a Components & props — the Maggi packet theory
Six cards, one piece of markup. Add a 7th dish live.
4 min
4b State & effects — the timer that would not die
Live lifecycle log. Flip "Leak mode" and watch a memory leak happen.
5 min
4c Virtual DOM — measured, not claimed
Real MutationObserver counters. Left pane loses by ~50x. Optional if short on time.
4 min
5a CSR vs SSR vs SSG vs ISR — interactive
The dhaba analogy + "what Google's crawler sees". Best block for non-devs.
6 min
5b CSR — press Cmd+U and find the content
Proof, not diagram. Search the source for "Physics". It isn't there.
1 min
5c SSR + hydration — the button that is a photograph
Reload and rage-tap Enroll. Counts your lost taps.
2 min
6 Bhook.com — the finished thing
Loading / error / empty / content. Hit "Break the API" for the punchline.
3 min

Session 2 — Dikhe · Chale · Tike (findable, fast, and survives the crowd)

7 DOM X-ray — the recipe vs the dish
Sharma ji ka khandaan, the HTML the browser silently fixes, and repaint vs reflow — measured.
6 min
8 Hydration — the button that is a photograph
Reload and rage-tap Enroll. Counts the taps the page swallowed.
1 min
9 Googlebot — duniya ki sabse badi rishtey wali aunty
robots.txt vs noindex vs login, the classic mistake, and PW's real robots.txt in a tester.
8 min
10 CLS Lab — the banner that stole your tap ★ you'll do this
Live CLS score. Try to hit Pay, delete your account instead.
4 min
11 Image diet — same photo, a fraction of the bytes
Your browser really encodes PNG / JPEG / WebP and weighs them. Plus a blind test.
4 min
12 Padhlegram — why Instagram doesn't render your whole feed ★ you'll do this
10,000 posts: render all vs content-visibility vs virtualized. Feel the freeze.
5 min
13 Bundle lab — tree shaking & code splitting
Shake the tree, watch chunks download only when clicked, and see why filenames have hashes.
5 min
14 Cache lab — har baar gaay tak mat jao
Fridge → dairy → godown → gaay. The "Welcome, Rahul" leak, result-day stampede, real compression.
8 min

Bonus & homework

B1 INP Lab — one thread, one counter, one queue
Type while clicking the red button. The freeze is the lesson.
4 min
B2 Rendering simulator — the SSG and ISR tabs
The two we promised in Session 1. "What Google's crawler sees" for each.
3 min
B3 Code Review Challenge — 10 problems
Four of the ten need no React knowledge at all. Try it before you peek.
6 min
B4 Bhook.com in DevTools
Elements, Console, Network, throttling, Lighthouse. Hit "Break the API" and triage it.
6 min