2 ms·
I love both Erlang and PHP, but the philosophy of what to do with errors in requesrs is like diametrically opposed. For PHP, usually it's log, but keep on going
by toast0 6y ago
I love both Erlang and PHP, but the philosophy of what to do with errors in requesrs is like diametrically opposed. For PHP, usually it's log, but keep on going as best you can. For Erlang, it's log and stop, and the request handler will generally be restarted.
I guess where they're similar is that an error is generally going to only affect that one request, the next request will have a fresh handler.
(Of course, these are generalizations, you can always do things differently in either language).