3min chapter

Lex Fridman Podcast cover image

#309 – John Carmack: Doom, Quake, VR, AGI, Programming, Video Games, and Rockets

Lex Fridman Podcast

CHAPTER

Do You Know What Go-to Statements Are?

John Carmack: I was always told in the beginning that, you know, a lot of these go-to statements. That's really bad programming. Is this correct or not? Jumping around code. Sometimes they're the right thing to do. Usually it's because there's a language feature missing like nested breaks. It can sometimes be better to do a go-to cleanup or go-to error rather than having multiple flags,. Multiple if statements littered throughout things. But it is rare. If you grip through all of my code right now, I don't think any of my current code bases would actually have a go-To.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode