Live data from Hacker News

The Let It Crash Philosophy Outside Erlang

stratus3d.com

31–35 of 35 posts

Re: The Let It Crash Philosophy Outside Erlang

#31
i'm a huge fan of erlang and i'm familiar w/ this philosophy and tend to have a hard time w/ applying it. when i develop software, i read man pages for the functions i call. i intently study their return values and do my best to address whatever conditions i can at that moment. if i'm unable to handle the fault, i generate a message with the intent to add context to the error and let it bubble up. that context is important. it's _very_ beneficial when a failure does occur because i can quickly ascertain the root cause due to my diligence in annotating the _BAD_ path with context--all the way to the top of the function stack.

i've noticed that when erlang programs crash, the error message and stack trace is a WTF moment. i hate that. so yes, there are all these benefits when focusing on the happy path, but there are down sides, can we explorer those? once software is written, it's how the _BAD_ path is presented to maintainers that matters. this philosophy, in my current understanding, throws those people under the bus.

Re: The Let It Crash Philosophy Outside Erlang

#32

This is my biggest criticism of JavaScript: it fails silently quite often. `{}.foo` returning `undefined` is the most common culprit, but there are many other possible causes. Django templates also do this, which causes all sorts of debugging problems.

Time to plug my favorite Javascript video!

https://www.destroyallsoftware.com/talks/wat

Re: The Let It Crash Philosophy Outside Erlang

#34

Earlier quoted context omitted.

It reminds me of how people love , for marketing purposes, to have technology, say in vehicles, that is "adaptive". In software in general, but particularly in cars, there is nothing I hate more. Because "adaptive" makes people think of a partner that anticipates your needs, but it can't do that, not being intelligent so adaptive ends up being the opposite of responsive .

"unexpected acceleration" in cars comes to mind.

I was more in mind of steering and transmission algorithms.

Re: The Let It Crash Philosophy Outside Erlang

#35

This is my biggest criticism of JavaScript: it fails silently quite often. `{}.foo` returning `undefined` is the most common culprit, but there are many other possible causes. Django templates also do this, which causes all sorts of debugging problems.

Time to plug my favorite Javascript video! https://www.destroyallsoftware.com/talks/wat

This is hilarious in this video, but infuriating when you actually have to debug production-grade software.
Post reply on HN