- vừa được xem lúc

This rubber duck can debug your code

0 0 8

Người đăng: Fireship

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

Bình luận

Bài viết tương tự

- vừa được xem lúc

Quy hoạch động - một thuật toán thần thánh

. Bài viết gốc: https://manhhomienbienthuy.bitbucket.io/2017/Aug/24/algorithm-dynamic-programming.html (đã xin phép tác giả ).

0 0 58

- vừa được xem lúc

"this" trong JavaScript

Bài viết gốc: https://manhhomienbienthuy.bitbucket.io/2016/Mar/28/understanding-and-mastering-javascripts-this-keyword.html.

0 0 37

- vừa được xem lúc

Tìm hiểu về Dotfiles

Đã bao giờ vào 1 ngày đẹp trời, máy tính của chúng ta bỗng tự nhiên lăn đùng ra chết. Và sau đó ta phải cài lại 1 hệ điều hành mới, toàn bộ phần mềm, setting cho các chương trình cũ đều bị mất? Chúng

0 0 50

- vừa được xem lúc

Async Await try-catch hell

Async Await is heaven... until error handling comes into play. Learn how to avoid try/catch hell when writing async JavaScript code

0 0 80

- vừa được xem lúc

25 VS Code Productivity Tips and Speed Hacks

Learn 25 VS Code tips and tricks that will help you write code faster. Try out awesome new features and extensions that turn your editor into a full-blown IDE. https://fireship.io/pro.

0 0 59

- vừa được xem lúc

Closures Explained in 100 Seconds // Tricky JavaScript Interview Prep

What is a JavaScript Closure? Learn the how closures allow functions to "remember" outside their local scope https://fireship.io/tags/javascript/. . #js #programming #100SecondsOfCode.

0 0 32