2 ms·
There's a ton of these stories around. I think they're great. I don't get all insulted by them; even if they are meant as such. In my experience, robust is sim
by ChrisMarshallNY 6y ago
There's a ton of these stories around. I think they're great. I don't get all insulted by them; even if they are meant as such.
In my experience, robust is simple. The best code is the code I don't write. The eraser is my best friend.
If I want to write code that has the fewest bugs, I need to write the code with the fewest lines possible.
Every line of code is what I call a "trouble node." That's a place where a bug can happen.
I also need to take the simplest, most straightforward approach possible. Horse sense is valuable, and a lot of my horse sense comes from painful lessons.
When I'm writing code, and I find myself starting to rabbithole one kludge over another, I often have to stop and just wipe the slate clean.
Take off and nuke the site from orbit. It's the only way to be sure.
When I was working for corporations, this was never an option, and I (and my team) always paid the price. Since working on my own, I've done exactly this a dozen times over.
It's great.