NeverSayDie will let you rescue from SEGV's and is evil
github.com
github.com
If of course made debugging effectively impossible, not to mention catching all segfaults, not just those triggered by a DOM parsing error.
[Edit] Why downvote a genuine question instead of informing me why you think it's inappropriate? I would never have expected someone to write a fatal-signal-ignoring-handler for a scripting language, even as a joke, so I was curious as to whether Ruby/Rails processes did semi-regularly crash.
Of course if you're the type to install random C extensions from github you might not always be so lucky.
I can tell the author is aware of the risks, but I'm sure there are ruby users out there that think this is a good idea.
This is exactly what is wrong with the Ruby community. Rails has an option called "disable whiny nils".
To paraphrase that old quote, "Those that trade correctness for convenience will get neither"
I'm literally rolling my eyes at this. You're actually "begging the question" — in the correct sense of the term!
Besides, going off on a tangent and randomly bashing the Ruby community stopped being cool like six months ago.
I'm not "randomly" bashing the ruby community. This is a clever hack, but an extremely bad idea to use in production, and it comes fully packaged as a ruby gem that is ready to be deployed with "gem install".
The problem's actually more subtle than that. The implication of what you said is that this is a problem with the Ruby community more so than some other communities. You provided no evidence for that claim at all. The disable whiny nils thing, by the way, doesn't do what you think it does.
I'm not "randomly" bashing the ruby community.
Sure you are. You're taking one library that happened to be written in Ruby and using it as an excuse to generally bash Rubyists.
This is a clever hack, but an extremely bad idea to use in production, and it comes fully packaged as a ruby gem that is ready to be deployed with "gem install".
This library is literally a joke. Although maybe not. I think Aaron is also a big fan of using Enterprise Ruby in production, which is why he released this: http://github.com/tenderlove/enterprise/tree/master
whiny_nils is an option to provide additional information with an error, not an option to disable errors. It's not remotely related to this and you clearly have no idea what you are talking about.