正在加载视频...

视频加载失败

This is why I spend more time inside GDB than I do writing code, and so should you. Lex Fridman || John Carmack

117,803 次观看 • 2 个月前 •via X (Twitter)

26 条评论

Ryan Fleury 的头像
Ryan Fleury2 个月前

Related:

Phil 的头像
Phil2 个月前

Imagine how much better of a programmer Carmack would have been if he had known about print statements.

uɐllɐdnɹɯɐᴉ 的头像
uɐllɐdnɹɯɐᴉ2 个月前

John Carmack was right. -> Stop `printf` debugging. Open the debugger and watch your code run step by step. -> On Mac just type: `lldb ./your_program` You’ll understand your code better in 10 minutes than hours of print statements.

Nicolas Craske 的头像
Nicolas Craske2 个月前

Tracing and stepping through taught me so much about how OOP works AND how many algorithms behave. Debugging is an art form.

ASE 的头像
ASE2 个月前

Would be useful to see more agent workflows that treat the debugger as a first-class loop, not just “write → hope → read the stack trace.” Carmack’s point still stands: if you’re not inspecting the running program, you’re guessing.

Gordon Leete 的头像
Gordon Leete2 个月前

Debugger is the only way to have more power than root

gaussie 的头像
gaussie2 个月前

This is why ITS had a DDT as a shell.

Cyber Ximas 的头像
Cyber Ximas2 个月前

I remember when the "boss" from the worst "company" (glamourized personal project) I ever worked for, who really believed he was some sort of genius, was not able to install a useful debugger and stated, "It is better to use prints". Stupidity at its finest.

lderait Menlinden 的头像
lderait Menlinden2 个月前

The thing about 3d engines are you have to balance a lot of tradeoffs. It makes you appreciate the complexity of reality, that you get for free.

banzaan 的头像
banzaan2 个月前

would a team of three agents for programming debugging and qc work better?

Ticker St. 的头像
Ticker St.2 个月前

gdb + AI

Conny Brunnkvist 的头像
Conny Brunnkvist2 个月前

I spent years inside WinICE .. I never want to go back, but I feel like it provides a very sound basis for almost all other work. 🧐

Abhishek🌱 的头像
Abhishek🌱2 个月前

thats why I spend more time in flamegraphs, perf., nsysy, ncu, i don't believe until i see through my naked eyes lolll

Wolfgang Josef Lughofer 的头像
Wolfgang Josef Lughofer2 个月前

Step-by-Step — uh, Baybayy 👊

Rajath 的头像
Rajath2 个月前

Thanks got sharing this. Will watch and sleep

Name 的头像
Name2 个月前

The world is just in such poverty when Lex is the best humanity can offer as an interviewer. Then again, it's free, so I guess it indeed has no value.

SiRiUS CoOp 的头像
SiRiUS CoOp2 个月前

I learned to code in QBasic. Had a built-in debugger—and built-in hyperlinked docs. It was pretty awesome.

Gabbar Singh 的头像
Gabbar Singh2 个月前

Gnu DDD helped me get thru college and complete my thesis.

Jon Kakaley 的头像
Jon Kakaley2 个月前

I can’t believe there are actually people who claim to not use debuggers

RMS Ministries 的头像
RMS Ministries2 个月前

Like explaining the internal combustion engine to a dog.

Javier Neira 的头像
Javier Neira2 个月前

but some people continue using *only* print("**** I have been here ****")

David Reinig 的头像
David Reinig2 个月前

Any debugger that does the job. But GDB (with plugging for nicer visualisation) is actually really nice

Robert Baker 的头像
Robert Baker2 个月前

The other day I had to solve a problem with camera angles being wrong when switching from FP to orbital and back and AI one-shotted the fix in about 30 seconds. I often use the debugger but man is it nice to have AI! 😃💙

Carlos Tecnico 的头像
Carlos Tecnico2 个月前

Spent more time in GDB this week than writing code 🙄

Sonny Sunshine 的头像
Sonny Sunshine2 个月前

Debooger

Tu 的头像
Tu2 个月前

He doesn't argue for using GDB, he essentially says it's the last resort that's better than nothing.

相关视频