Live data from Hacker News

Google Maps is a critical dependency for nutrition facts on mcdonalds.com

mastodon.social

31–40 of 110 posts

Re: Google Maps is a critical dependency for nutrition facts on mcdonalds.com

#31
post #20

In other words: blocking random scripts might cause sites to stop working. Who would have thought? This is the equivalent of deleting a random third party analytics library and complaining that your app no longer builds. Sure, there's the concept of progressive enhancement or whatever, but at the same time it's also unreasonable to expect the developer to accommodate the possibility of any third party script getting…

> possibility of any third party script getting blocked I'd say it's not unreasonable. You're giving your third parties the ability to break your business. Third party scripts are blocked or just fail to load all the time, APIs change suddenly, etc.

>Third party scripts are blocked or just fail to load all the time

What's your strategy for dealing with jquery not getting loaded?

>APIs change suddenly, etc.

That's going to be an issue regardless of you check whether the script is loaded or not.

Re: Google Maps is a critical dependency for nutrition facts on mcdonalds.com

#32

Just a guess, but maybe its because there are different sources of the chicken, by region?

Almost certainly this. Not just chicken but breading ingredients, the oil they fry them in, probably salt content. Maybe sauces too?

Almost certainly this. Not just chicken but breading ingredients, the oil they fry them in, probably salt content. Maybe sauces too?

Oil sounds like the likely culprit to me. About a decade ago a bunch of cities, including Chicago, started regulating the types of oil that could be used for frying in restaurants.

Re: Google Maps is a critical dependency for nutrition facts on mcdonalds.com

#33
post #12

Interesting that they won’t infer a location from an IP or other information they have. Seems like they just want the location data and have an excuse to demand it.

Interesting that they won’t infer a location from an IP or other information they have.

Right now, Google maps tells me I'm in suburban Atlanta. It's off by more than a thousand miles.

Re: Google Maps is a critical dependency for nutrition facts on mcdonalds.com

#35

The first couple of months I moved into my new house, many sites and apps were broken to me, as the address wasn't yet on Google Maps, and rather than degrade gracefully, those sites and apps were borked due to inability to pre-populate my address.

I had a very similar situation when I moved not too long ago. I couldn't arrange for gas service before I moved into my home because the gas company's web site would only accept Google-blessed addresses. I had to actually move in, and then go down to the gas company office with a copy of my lease to prove the address exists. Strange, since at some time in the past the gas company payed many thousands of dollars to ru…

> But, like in most big organizations, I suspect the web people and the company data people don't talk to one another.

Sounds like you're trying to assume good intentions, but you sound extremely naive as a result.

The issue is privatized utilities. They are an ordained monopoly. Their failure to "talk to one another" is not a failure at all. They have no reason to even consider the problem in the first place. You're still paying them, are you not?

Re: Google Maps is a critical dependency for nutrition facts on mcdonalds.com

#36
post #12

Interesting that they won’t infer a location from an IP or other information they have. Seems like they just want the location data and have an excuse to demand it.

Because Sites usually have an input box to enter the store address / zip code, otherwise you'd never be able to look up for another location. Probably the case here too

Re: Google Maps is a critical dependency for nutrition facts on mcdonalds.com

#37
post #29

Earlier quoted context omitted.

That’s the wrong attitude. Unless the function of your site completely depends on google maps it shouldn’t break other logic. We’ve been building websites that survive these kinds of things for decades. Some people just don’t engineer their stuff correctly and this is the result. It’s not hard to do it right.

Why should I, the developer go out of my way to accommodate people going out of their way (by installing an adblocker/script blocker) to break my app? If you're going out of your way to create a non-standard execution environment, any breakages is on you.

Ad blockers should not be considered "non standard".

Even if blockers do count as non-standard, random scripts not loading should not be capable of bringing down your site, and this should've been clear even before the npm left-pad debacle.

Re: Google Maps is a critical dependency for nutrition facts on mcdonalds.com

#39

Is there a more detailed explanation? It would be interesting to know how it works

Probably not, given that the post's author was seemingly more concerned about making an outrage post than doing the most basic of investigation. From what I can tell one part of the script is trying to do `google.maps`, which errors out because `google` is undefined. The code in question seems to be initialization related, so it's unclear whether the page actually requires google maps api, or the site was poorly designed and tries to initialize google maps api on every page.

Re: Google Maps is a critical dependency for nutrition facts on mcdonalds.com

#40

Just a guess, but maybe its because there are different sources of the chicken, by region?

Almost certainly this. Not just chicken but breading ingredients, the oil they fry them in, probably salt content. Maybe sauces too?

That's a nice idea, as if these nutrition facts are super specialized to your precise McDonalds location, and don't actually ya know come down to how much the kid in the back of the kitchen is using the salt shaker.

People don't actually believe these are anything more than averages with huge error bars right?

Post reply on HN