4 ms·
> In theory but in theory any application could crash at an unexpected time That’s a terribly unsatisfactory answer. > In my experience on a half decent code
by pushpop 8y ago
> In theory but in theory any application could crash at an unexpected time
That’s a terribly unsatisfactory answer.
> In my experience on a half decent code base these sanity checks never trigger during production in normal code; they're designed to get triggered during tests. They're there to make it easy to track down the root cause of bugs.
There are a lot of conditionals attached to your statement. ;)
> The times when they did get triggered on production code I did it intentionally as a way to debug a train-wreck of an application in production.
If you hadnt relied on type checking in your runtime then you might not have needed to get to the stage where you were debugging something in production.
> I've been doing this for 10 years - on many projects that have had millions of users. You're not special.
I didn’t say I was special. I was just making a point that I have used Python on important services just in case I was coming off as a Python hater.
Btw ive Been doing this for 30 years - though most of that hasn’t been in Python but most of the last 20 years has been high availability systems. Which may explain why I’m less willing to push buggy code to production and rely on exceptions than you.
- pytester 8y agoYour answers are exactly in line with the views usually espoused by a developer who skimps on TDD and automated testing and thus over relies on compiler type checking to catch trivial bugs. The idea that you've been doing it like this for 30 years is somewhat depressing.
- pushpop 8y agoWeird how you've come to that conclusion when I've been the one talking about testing and you keep shrugging it off with "well I prefer exceptions" because "sometimes you have to debug things on production". I honestly don't think you know the first thing about writing stable software so are now just lashing out at me.
- dang 8y agoThis also crosses into personal attack, which is also not ok here. If you would also please review https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html and follow the rules when posting to HN, we'd also be grateful. Basically (and this goes for both of you as well as the rest of us), when you find yourself unable to keep from replying as irritation mounts, it's best to wrest oneself away from the internet for a bit.
- pushpop 8y agoI wasn't irritated. I just assumed that kind of tone was permitted because this place is full of people taking to each other like that.
- dang 8y agoThis comment crosses into personal attack, which is not allowed here. If you'd please review https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html and follow the rules when posting to HN, we'd be grateful.