|
|
|
|
|
by sly010
3640 days ago
|
|
It's hard for me to imagine why would you want to .map() on a list of 3rd party tracking modules but let's go with your example. That sort of thing should not be handled by a low level utility library, because at best it will only do the right thing 50% of the time. It should be handled explicitly on a single interface between your software and the tracking module. I would probably wrap it and explicitly ignore things in the wrapping code if the tracking module is missing. And yes, I would rather see an empty page so I know to temporarily disable the adblocker, than have a page (e.g. seamless) that silently fails to order your food at the very last step. You will argue that it's better for the users. No it's not. If the site is broken, it's easy for them to understand. They can at least go somewhere else to order food. If everything looks like it's working but it isn't is very-very frustrating. I can also catch and log errors and fix them, but hidden bugs will just stay longer and frustrate users, because they will think they did something wrong. |
|