StringDecoder
StringDecoder is simple if you keep it on paper. Amit uses it for StringDecoder on Amit's board in lab hour.
Keep StringDecoder small. Amit should finish StringDecoder on Amit's board in a few lines, not a 40-line dump.
StringDecoder exists so Amit can keep StringDecoder on Amit's board correct in lab hour.
Use StringDecoder when StringDecoder on Amit's board must stay clear. If a simpler Node.js step works, use that instead.
Don’t do this with StringDecoder — skipping the failure case for StringDecoder. Interviewers spot it in ten seconds.
StringDecoder is not a lonely heading. Amit ties it to StringDecoder on Amit's board.
Viva for StringDecoder: what it is → one StringDecoder step Amit can write from memory → the mistake (skipping the failure case for StringDecoder).
Board: StringDecoder on Amit's board. Dry-run StringDecoder. Name the trap: skipping the failure case for StringDecoder.