News for hackers. Stuff that matters.
Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by emerongi on Friday July 10, 2020 @11:01AM (#23792162)
Maybe lessons will be learned, maybe not.

The industry seems to have very low standards. Let's let these mistakes happen over and over and let's just patch them as we go. No long-term thinking.

Someone should collect all these horrible incidents and start a university course on just plainly what NOT to do.

Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by Dirlewanger on Saturday July 11, 2020 @10:16AM (#23802369)
Industry has low standards because the users have low standards. If the application doesn't start, they are mildly annoyed and go do something else. Eventually the bug will get fixed and they use it again. This has been the case for like 95% of software written in the past decade.
Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by blantonl on Friday July 10, 2020 @11:06AM (#23792222)
Some of the very brightest software engineers in the world work at Facebook. As much as I would love to rip on Facebook, I also understand that integrated software development is hard, and I guarantee you that Facebook is "doing it better" than most.

Don't sit in an ivory tower and throw stones in glass houses. Can you guarantee that your own SDLC house is in order? Because it might be, right up until a sneaky edge case nips you in the butt, and then suddenly it isn't.

Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by emerongi on Friday July 10, 2020 @11:26AM (#23792455)
If an industry leader with "the brightest software engineers in the world" is unable to write their software to a higher than average standard, then I think I am in the very reasonable position to point it out and raise discussion about it. Don't place me in an ivory tower for that.

Why should we just sweep this under the rug and call it a day? There is something very important that can be learned from this. Apparently, FB themselves have not learned, because this is not the first time this has happened. Why was this allowed to happen more than once? Did Apple, Google, Spotify, Facebook etc not take any actions?

"Shit happens" is one way to look at it. Another way is to question whether we as software engineers are really doing our job properly.

Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by mrep on Friday July 10, 2020 @10:07PM (#23798845)
Why are you so angry about Facebook, Apple, Google, and Spotify having a tiny outage? They are not life saving services and only cause a mild inconvenience when they fail which practically never happens for most people especially compared to "average software".

> FB themselves have not learned, because this is not the first time this has happened.

They have tens of thousands of engineers likely split into hundreds of different teams/microservices focussing on different parts of their software stack. A ton of them are new to it and nobody knows every part of the stack so shit can happen.

What is the biggest engineering organization size you have worked for and what was your uptime?

Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by filleduchaos on Saturday July 11, 2020 @09:43AM (#23802148)
> Why are you so angry about Facebook, Apple, Google, and Spotify having a tiny outage?

The linked issue makes it very clear that the "tiny outage" affects literally every app that has the Facebook SDK merely linked, for a frankly dumb reason (static initialization) that they should have learned from the last time it happened.

It's not a SaaS. "Uptime" for a linked library is stupid.

Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by mattgreenrocks on Friday July 10, 2020 @11:20AM (#23792391)
Let's avoid lionizing/denigrating here.

They're using static initialization and it bit them in the ass again. They should stop using it because it is prone to things like this which result in apps not launching at all. I'd like to see them commit to stop using this method to initialize themselves, and take responsibility for the crashes. Then, IMO, we'd be good.

In a scenario like this, I'd hope they'd want to make this bug's recurrence impossible.

Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by tdrp on Friday July 10, 2020 @06:26PM (#23797303)
It was horrifying to see how many config changes you have to do to basically beg facebook not to send back data to their server. Most of these were hidden in various corners of the documentation and I still suspect there's crap being sent back without permission. I would love nothing more than to disable the SDK entirely but we have a few hundred thousand users logged into our app via Facebook.

Here is our Android config in case anyone's interested:

<meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled" android:value="false"/>

        <meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled"
                android:value="false"/>

        <meta-data android:name="com.facebook.sdk.AutoInitEnabled"
                android:value="false"/>
Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by valuearb on Friday July 10, 2020 @12:01PM (#23792886)
Isn't Facebook the place that forces engineers to write code in a open bullpen environment? How can high quality code be written in a madhouse?
Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by saagarjha on Friday July 10, 2020 @12:04PM (#23792920)
Bright engineers sometimes do some very stupid, arrogant things.
Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by damnyou on Friday July 10, 2020 @12:12PM (#23793001)
The brightness at places like FB tends to be diverted towards making money, not ensuring software quality. (This is also true at places like Apple, just differently so.)
Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by jfkebwjsbx on Friday July 10, 2020 @12:48PM (#23793438)
> Some of the very brightest software engineers in the world work at Facebook

Like they work in many other companies.

In any case, this is not about being bright but about being diligent.