Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

117,659 Aufrufe • vor 2 Monaten •via X (Twitter)

26 Kommentare

Profilbild von Ryan Fleury
Ryan Fleuryvor 2 Monaten

Related:

Profilbild von Phil
Philvor 2 Monaten

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

Profilbild von uɐllɐdnɹɯɐᴉ
uɐllɐdnɹɯɐᴉvor 2 Monaten

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.

Profilbild von Nicolas Craske
Nicolas Craskevor 2 Monaten

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

Profilbild von ASE
ASEvor 2 Monaten

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.

Profilbild von Gordon Leete
Gordon Leetevor 2 Monaten

Debugger is the only way to have more power than root

Profilbild von gaussie
gaussievor 2 Monaten

This is why ITS had a DDT as a shell.

Profilbild von Cyber Ximas
Cyber Ximasvor 2 Monaten

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.

Profilbild von lderait Menlinden
lderait Menlindenvor 2 Monaten

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.

Profilbild von banzaan
banzaanvor 2 Monaten

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

Profilbild von Ticker St.
Ticker St.vor 2 Monaten

gdb + AI

Profilbild von Conny Brunnkvist
Conny Brunnkvistvor 2 Monaten

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. 🧐

Profilbild von Abhishek🌱
Abhishek🌱vor 2 Monaten

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

Profilbild von Wolfgang Josef Lughofer
Wolfgang Josef Lughofervor 2 Monaten

Step-by-Step — uh, Baybayy 👊

Profilbild von Rajath
Rajathvor 2 Monaten

Thanks got sharing this. Will watch and sleep

Profilbild von Name
Namevor 2 Monaten

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.

Profilbild von SiRiUS CoOp
SiRiUS CoOpvor 2 Monaten

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

Profilbild von Gabbar Singh
Gabbar Singhvor 2 Monaten

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

Profilbild von Jon Kakaley
Jon Kakaleyvor 2 Monaten

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

Profilbild von RMS Ministries
RMS Ministriesvor 2 Monaten

Like explaining the internal combustion engine to a dog.

Profilbild von Javier Neira
Javier Neiravor 2 Monaten

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

Profilbild von David Reinig
David Reinigvor 2 Monaten

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

Profilbild von Robert Baker
Robert Bakervor 2 Monaten

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! 😃💙

Profilbild von Carlos Tecnico
Carlos Tecnicovor 2 Monaten

Spent more time in GDB this week than writing code 🙄

Profilbild von Sonny Sunshine
Sonny Sunshinevor 2 Monaten

Debooger

Profilbild von Tu
Tuvor 2 Monaten

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

Ähnliche Videos