Debugging: 95% Of Software Engineers Are Lacking In This Skill

  Рет қаралды 11,578

Rahul Pandey

Rahul Pandey

Күн бұрын

Debugging is a huge part of the job for any software engineer. Despite best intentions, software engineers waste tons of time when trying to fix a bug -- it's not just about diving into the code!
Communication video: • I Sucked At This For 2...
📱 Accelerate your career growth: joinTaro.com
💌 Learn how companies evaluate and promote: www.promotions.fyi
➤ Connect with Alex: / alexander-chiou
Hi! I’m Rahul, a software engineer and founder with a passion for teaching.
📹 KZfaq: / rahulpandeyrkp
📝 LinkedIn: / rpandey1234
🐦 Twitter: / rpandey1234
📸 Instagram: / rpandey1234
📂 Github: github.com/rpandey1234/
#techcareergrowth
Timestamps:
0:00 - Why debugging is important
0:30 - The proper mindset for debugging
2:04 - Understand the context around the bug
3:45 - Understand the steps behind the bug
5:40 - Generate a paper trail
6:23 - Top down vs bottom up
7:45 - Take a break!

Пікірлер: 30
@RahulPandeyrkp
@RahulPandeyrkp Жыл бұрын
My actual advice for debugging is to play 'Everything Has Changed' by TSwift on repeat
@gdthegreat
@gdthegreat Жыл бұрын
Just started video, not yet completed, but can say - 100% right - debugging is best skill as you said.
@mnchester
@mnchester Жыл бұрын
Great video! Unfortunately in some companies it's not allowed to input company code into ChatGPT or similar software
@RahulPandeyrkp
@RahulPandeyrkp Жыл бұрын
True, although this will certainly change over time as companies start to leverage AI more and more
@Sanyu-Tumusiime
@Sanyu-Tumusiime Жыл бұрын
nobody talks about how painstakingly diffuclt it is to truly debug. you have no idea how much pain it is
@aldrinseanpereira140
@aldrinseanpereira140 Жыл бұрын
I cant stop thinking about how amazing your advice and Taro is. Its unimaginably helpful. (Although tough to implement practically in this case so far but its still the best)
@RahulPandeyrkp
@RahulPandeyrkp Жыл бұрын
Thank you Aldrin!
@patrickglinski329
@patrickglinski329 6 ай бұрын
Yea brotha, your KZfaq channel is gonna blow up. Very high quality content here. Thanks
@coofzilla
@coofzilla Жыл бұрын
wow the production value of these videos has gone up dramatically. super sick!
@user-kp5td6vk7c
@user-kp5td6vk7c Жыл бұрын
Thanks for the video Rahul i love it ❤
@michaelalls8230
@michaelalls8230 Жыл бұрын
I love debugging. It’s like being a detective or figuring out a puzzle
@RahulPandeyrkp
@RahulPandeyrkp Жыл бұрын
Few things match the elation of fixing a challenging bug :)
@skyhappy
@skyhappy Жыл бұрын
Would like to see a video explaining bottom up and top down debugging
@premalsingh441
@premalsingh441 Жыл бұрын
Pretty well explained. ChatGPT might not always work due to two reasons: 1. Overall complexity is too much to explain it to an AI. 2. Its simply proprietary information. But other than that chatgpt can surely help to understand some basic flows. Like you could say the function executed like this, what could have possibly gone wrong
@RahulPandeyrkp
@RahulPandeyrkp Жыл бұрын
True, although #1 will almost certainly get resolved over time as AI becomes more advanced
@jeffreyqiu5128
@jeffreyqiu5128 8 ай бұрын
good advice
@Reavenk
@Reavenk Жыл бұрын
Not 100% relevant to debugging others' code, but when *writing* debuggable code: - Don't duplicate similar code (DRY), all relevant logic should run through a single bottleneck in functionality. A bug for a single thing should happen consistently, should expose itself fast, and should be fixed everywhere by only fixing it once. - Don't do declarative programming on complex things with many side-effects. Gratuitous declarative programming is a fast way to launder bugs with working code by mixing them all together on the same debug line-step (and a way to make it easy to gloss over using the wrong algorithms and data structures). - Break out code into multiple lines instead of having functions nested in functions (nested in ternaries, nested in linq calls, nested in linq calls). - Feel free to put temporary data into temporary variables. You get to describe it with a variable name (self-commenting code), a debugger step to see its value, and it'll be optimized away when the time comes to release build. - Asserts and defensive programming. And prefer static asserts when possible. These make stepping through code with the debugger (breakpoints, conditional breakpoints, watchlist, callstacks) an order of magnitude easier.
@john_doe_2231
@john_doe_2231 Жыл бұрын
Are there some good books/tutorials/courses to learn the art of debugging ?
@RahulPandeyrkp
@RahulPandeyrkp Жыл бұрын
Even more so than learning to code, learning to debug is best done by doing the act. Just start debugging (if you're totally new, start with pair programming/debugging)
@bopal93
@bopal93 Жыл бұрын
Solid
@tessabloomx8660
@tessabloomx8660 Жыл бұрын
what was the step 1 before chat gpt?
@RahulPandeyrkp
@RahulPandeyrkp Жыл бұрын
Understand the relevant part of the codebase, and ideally be able to repro the issue.
@Abelmengesha-sp6lv
@Abelmengesha-sp6lv Жыл бұрын
I love you man
@RahulPandeyrkp
@RahulPandeyrkp Жыл бұрын
😘😘
@cmg575
@cmg575 Жыл бұрын
I'd be careful pasting in your companies code to chatgpt for interpretation. InfoSec at your company may not like that
@user-kp5td6vk7c
@user-kp5td6vk7c Жыл бұрын
Yeah that's true
@RahulPandeyrkp
@RahulPandeyrkp Жыл бұрын
There are probably 10+ startups that are working to solve this problem!
@skyhappy
@skyhappy Жыл бұрын
@cmg575 this is a paranoid statement, they can't make the next Facebook based off 0.00002% of the code in it. Infosec has other actual problems to worry about
@robbie1290
@robbie1290 Жыл бұрын
Haha, I'm glad I saw the original thumbnail 😂
@RahulPandeyrkp
@RahulPandeyrkp Жыл бұрын
you were here early!
Buy Feastables, Win Unlimited Money
00:51
MrBeast 2
Рет қаралды 97 МЛН
Balloon Pop Racing Is INTENSE!!!
01:00
A4
Рет қаралды 16 МЛН
Becoming A TRUE Tech Lead: 4 Mindset Shifts I Needed At Facebook
8:29
3 High-Leverage Career Skills (From a Principal At Amazon)
13:31
A Life Engineered
Рет қаралды 177 М.
10 分钟 理论 + 实操 搞懂 WebSocket
9:03
FireUG技术社区
Рет қаралды 6 М.
Why The Best Engineers ALWAYS Leave FAANG
9:04
Rahul Pandey
Рет қаралды 16 М.
Debugging Checklist - How To Debug Anything
12:18
Tech With Tim
Рет қаралды 20 М.
What You REALLY Need to Know as A Software Engineer
9:26
Rahul Pandey
Рет қаралды 18 М.
Why Do Software Engineers Work So Little?
11:43
Logically Answered
Рет қаралды 125 М.
Buy Feastables, Win Unlimited Money
00:51
MrBeast 2
Рет қаралды 97 МЛН