Skip to content
Fireship
×0.4YouTube short

This rubber duck can debug your code

FFireship@Fireship · 4.3M subscribers
Views
485K
485,352
Outlier
×0.4
Median 1.3M
Length
0:41
Published
Sep 9, 2024
Monday
Comments
334
30.7K likes
Shares
0
6.4% engagement

Script

No transcript

Scout reads the transcripts of shorts for channels that only post shorts. This channel's long-form videos have them instead.

Description

It's 3:00 a.m. Your code is broken. You have no idea where your kids are. And

you're starting to wonder if building your own operating system kernel from

scratch was a bad idea.

When this happens, it's time to whip out your rubber duck. What you do is teach your imaginary friend how your code works line by line. The duck is a great listener who won't judge and criticize you.

Normal people will think you're crazy (which you are) but verbalizing your thought process out loud is a weirdly effective way to trigger a higher level of cognitive functioning.

Even Senica knew this 2,000 years ago, who said: 'while we teach, we

learn'. Magically, that missing semicolon on line 6,233 becomes glaringly obvious.

Not only does rubber duck debugging make you more productive but it's also a great way to prepare for all your upcoming technical interview failures.

#coding #programming #debugging #code #softwareengineering

🎨 My Editor Settings

Atom One Dark

vscode-icons

Fira Code Font

More from Fireship

Search Scout

Search creators, videos and pages, then press Enter to open one.