跳过导航
This is why I spend more time inside GDB than I do writing code, and so should you.
0:00 / 3:05

This is why I spend more time inside GDB than I do writing code, and so should you.

tetsuo

@tetsuoai26万 位关注者

在 X 上查看
1,025 个赞下载原帖

117,910 次观看

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

26 条评论

评论来自 X (Twitter) 上的原帖

  • Ryan Fleury 的头像

    @rfleury

    Related:

    86 个赞

  • Phil 的头像

    @nonRealBrandon

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

    18 个赞

  • uɐllɐdnɹɯɐᴉ 的头像

    @iamrupallan

    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.

    18 个赞

  • Nicolas Craske 的头像

    @nicolascraske

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

    5 个赞

  • ASE 的头像

    @ofmyslippers

    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.

    4 个赞

  • Gordon Leete 的头像

    @GordonLeete

    Debugger is the only way to have more power than root

    2 个赞

  • gaussie 的头像

    @gaussie

    This is why ITS had a DDT as a shell.

    2 个赞

  • Cyber Ximas 的头像

    @sh1m4s

    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.

    2 个赞

  • lderait Menlinden 的头像

    @KChXexqiRYuheUe

    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.

    2 个赞

  • banzaan 的头像

    @_banzaan

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

    2 个赞

  • Ticker St. 的头像

    @ticker_st

    gdb + AI

    2 个赞

  • Conny Brunnkvist 的头像

    @connyb

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

    1 个赞

  • Abhishek🌱 的头像

    @Abhishekcur

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

    1 个赞

  • Wolfgang Josef Lughofer 的头像

    @wolfengange

    Step-by-Step — uh, Baybayy 👊

  • Rajath 的头像

    @SurapurRamesh

    Thanks got sharing this. Will watch and sleep

  • Name 的头像

    @canonicalmodel

    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 的头像

    @SiRiUSCoOp

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

  • Gabbar Singh 的头像

    @desiflaneur

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

  • Jon Kakaley 的头像

    @JonKakaley

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

  • RMS Ministries 的头像

    @rmsmin

    Like explaining the internal combustion engine to a dog.