Chris Lattner
๐ค SpeakerAppearances Over Time
Podcast Appearances
You just kind of have to know that.
You just have to kind of know that, right?
And so you roll out version one of the database.
You just kind of have to know that.
Of course, Lex uses his own database, right?
Yeah.
Right, because you built it.
You understand how this works, right?
Somebody else joins the team.
They don't know this.
And so now they suddenly get bugs.
You're having to maintain the database.
You shake your fist.
You argue.
The 10th time this happens, you're like, okay, we have to do something different.
And so what you do is you go change your Python code and you change your database class to copy the record every time you add it.
And so what ends up happening is you say, okay, I will do what's called a defensive copy here.
inside the database.
And then that way, if somebody passes something in, I will have my own copy of it and they can go do whatever and they're not going to break my thing.
Okay.