7 ms·
The Facebook Method of Dealing with Complexity
- github-cat 11y agoI totally agree with this. Some people may say we need to cover every possible situation in a system, but this is true in theory, but practically we need some trade offs when designing a system. We have to calculate the gains and costs while considering fixing the complexities.
- archgoon 11y agoThe catch tends to be if you're able to detect when you're in a more complicated situation and bail out accordingly. One very useful thing is auto-labeling, which turns out, getting it wrong is more problematic than one would expect. Take for example the 'Gorilla' issue that Google encountered. http://nyti.ms/1JlTBab http://nyti.ms/1JlTBab [www.nytimes.com] Then there was the issue with the bookmarks and suicide categories http://bit.ly/1JFkmCr http://bit.ly/1JFkmCr [productforums.google.com] (This one isn't as big of a problem, as the frustration was probably more due to the compulsory usage of the new bookmarks, but it still shows some hazards of auto-categorization). With social things, it can sometimes be very hard to solve a problem that works for 95% of the population, but doesn't piss off the remaining 5% (often with good justification). Unfortunately, detecting when you're in that situation in the first place is sometimes equivalent to the problem you're trying to solve.
- github-cat 11y agoI don't understand why a big company like Google can put some feature online if it's not thoroughly tested or thought. It is because it is a web product and it wants the users to be the testers?
- archgoon 11y agoWhat would the testing plan look like?
- icebraining 11y agoSimple procedure: take a large sample (1M pictures or so), tag them with the system and then show each picture with the label to a person (using Mechanical Turk or similar) and ask "is this label offensive?" Use simple statistics to identify trouble spots.
- sp332 11y agoPlease don't use link shorteners. They just obfuscate the link target.
- e28eta 11y agoI was hoping for an article about code complexity, but this was good too. This is one of the ideas behind building a Minimum Viable Product, and think it's a big strength that startups have. The product doesn't do everything. People will adapt to the product, and start using it in new and unexpected ways. And it's a lot cheaper and easier to build. I'm curious if there are examples of large companies successfully simplifying existing products. How many features could gmail take away before they alienate too many of their users? Quickbooks, Microsoft office (the ribbon?), or any of the Adobe products?
- lebek 11y agoThe product doesn't do everything But it does everything for some people or some use cases. I think that's an important distinction.
- wmeredith 11y agoI think Apple is the poster child for a big company doing this. They've been stripping away features on their hardware for decades. Now they sell a computer that is literally just a screen with one button and a switch or two. They also sell a single port laptop. Everyone screams bloody murder when they remove hardware features, but then people adjust and the industry follows.
- Buge 11y agoI think code complexity is often caused by feature complexity. Keep on tacking on new features and the code gets complicated.
- herge 11y agoI usually try to tell my boss that there are 3-people shop solutions and 20-people shop solutions, and he's proposing a 20-people shop solution to a 3-person shop.
- izyda 11y agoA related question - how you design a database for something as complex as a tax system? Given that tax laws can (and will change), that changing legislation often adds possible combinations to any field, and that there is surely a every "long tail" of unusual circumstances/combinations. Is this a good use case for a document store, NoSQL database?
- noir_lord 11y agoThe largest issue isn't actually storing the data (though that is a big issue) the biggest problem (from a system point of view) is the 'business' logic. I've worked on some large very heavy business logic heavy systems and often what you find is that the database ends up a dumb store and the logic is entirely handled on the application side, this is fine when the original system only spoke to the one application but becomes a massive problem once you want to allow other applications to access that data store, from experience this is one of the reasons why large enterprise re-writes often fail, the specification on paper vs the massive complexity of edge cases in the application code, years sometimes decades of if/else statements. Of course the inverse is when the database does have all the business logic and the client is dumb while better that does often mean that you can't get the business logic out easily if the database has become obsolete (some of these systems aren't even SQL based or a dialect of SQL that barely looks like SQL, when you have stuff that was written in the 70's all bets are off). It's things like this why IBM still sells zSeries with COBOL support for code that was written 30-40 years ago. Not really sure what the solution is, I'd say some kind of business specific almost domain language that goes beyond SQL or Java (but we tried that, it was COBOL ;) ) As for your suggestion about NoSQL there is merit in that but if you go that route you have all the complexity of the business logic in your application as well as much of the complexity that would have been handled for you in the database via SQL (government systems are mostly amenable to normalisation). Possibly some kind of SQL/Document hybrid (something like Postgres with JSONB) with a business logic layer over the top might work but I've no idea what that would look like (possibly something like SAP's ABAP which I haven't used but people I know who have don't like it very much), most of our current languages care more about pointers, bytes and function than they do about the actual modelling of the system they represent.
- noir_lord 11y ago> A complex system that works is invariably found to have evolved from a simple system that worked. A complex system designed from scratch never works and cannot be patched up to make it work. You have to start over, beginning with a working simple system. - John Gall Mr Gall wrote a book about complex systems and how they fail back in the 70's and most of it (from what I recall it's been a while since I read it) applies as much now as it did then, it's a very good read.
- jalfresi 11y agoThanks for the book recommendation. Just had a Google and it looks great! Added to Amazon wish list
- noir_lord 11y agoYou are Welcome, It's genuinely excellent, be warned though once you've read it you'll see what it discusses everywhere. For large organisations it's a bit like getting a look at Oz behind the curtain :)
- engi_nerd 11y agoAnother Systemantics person! I profoundly wish that I had been exposed to this book during my education. Most traditional engineering education deals with predictable, small, compartmentalized systems. But the real world is none of these things, and engineering is the struggle to bring some semblance of order to chaos. Systemantics really outlines just what you can and can't expect out of any engineered system, and it stays in my head like a little crystal of knowledge that I draw from time and time again.
- andre 11y agoAmazon has three books listed about systems by John Gall that look very similar, is there a specific one that you're talking about? or would recommend to start with? http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords="General+systemantics" http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dap...
- glass_of_water 11y ago> ... decades of dealing with the public and the public servants have led to an accumulation of rules, regulations, practices and traditions clinging to everything like barnacles to a medieval man o’ war. I strongly feel that "garbage collection" is grossly neglected in almost every organization and is part of the reason firms slow down as they grow older. The article mentioned simplification of the Norwegian tax code. Are there governments with garbage collection and simplification of laws built into the legislative process?
- tomp 11y ago> Are there governments with garbage collection and simplification of laws built into the legislative process? I've often been thinking about the same thing. I think that most laws should have an expiration date, especially those that were enacted during "emergency" periods (e.g. everything legislated as a response to the Great Recession). The only reasonable exception are the core laws (e.g. the Penal Code), which should be replaced (not amended) by newer versions every so often.
- simoneau 11y agoThis really bothers me, too. Common Good, started by Philip K. Howard, is one of the few organizations focused on the fact we're "drowning in law": http://www.commongood.org/pages/the-problem http://www.commongood.org/pages/the-problem I'm a supporter.
- redcalx 11y ago> Are there governments with garbage collection and simplification of laws built into the legislative process? Sort of, e.g. see: http://www.bbc.co.uk/news/uk-politics-30334812 http://www.bbc.co.uk/news/uk-politics-30334812
- _greim_ 11y agoPersonally, I'd like to see a US constitutional amendment more or less along the lines of: > Any law that isn't routinely and consistently enforced is invalid. ...since in my view unenforced laws don't do anything except invite corruption.
- 11y ago
- deleted 11y ago[deleted]
- haddr 11y agoI admit that after finishing CS course at the university I had the same mindset regarding software engineering: understand the context, capture requirements (as much of them), and stick to it while developing subsequent parts of the system. In many occasions this is a trap: many details are just secondary, and would have probably never been articulated by the customer. Some of them seem to be important but then they are not. Sometimes some important problems appear somewhere around the end of the development, but we already have spent a lot of time working on some secondary issues. Dealing with complexity by reducing or ommiting some problems are vital also for small and medium projects. This encouranges rapid creation of some working prototype and the overall process tends to shift towards more iterative development.
- deleted 11y ago[deleted]
- jrubinovitz 11y agoThis is how you discriminate against the minority, quite literally.
- eridius 11y agoUnfortunately, yes. It's a shame to see your comment currently at the bottom, since it's the point I wanted to make. I think the example of the Norwegian tax system was a good one, because it demonstrates the article's point without any risk of discrimination. But the earlier example of Gender is a terrible one. Gender is more than just whether you have dangly bits hanging off your pelvis, it's also a very critical part of a person's core identity, and there are a lot of different variations. Lumping everything other than cis-gendered male/female into "its complicated" is a great way to make anyone who doesn't fit into the gender binary feel like they don't belong. Perhaps a more compelling example would be race. I know there's a fairly standard set of racial categories used when asked to self-report race (e.g. in those optional questions you can fill out when doing various standardized tests), which are fairly broad, and I'm pretty sure the last one is "Other". But at least with race, nobody feels like their racial identity is not recognized as legitimate by a large percentage of the world population (which is a serious problem that non-cisgendered or non-gender-binary people have). But even here, imagine if the test just said "White, Black, or It's Complicated". It should be easy to imagine that a lot of people would be pretty outraged over that. All that said, if you capture the main categories, and then have a free-form "Other" that people can fill in the details, that's similar in spirit to "It's Complicated" but a lot more palatable. Heck, depending on why you're asking the question, you might not even need to save the answer to Other (e.g. if you're only ever looking at data in aggregate, although even then you might want to pull out keywords from Other in order to report more groupings than the form offers), assuming the people filling in the form have no way of knowing whether you're keeping that data or not. So in the backend you might still have the equivalent of "It's Complicated". But how you present that to the user is important. --- Edited to add: Looking back at this, I realize that it looks like I'm just talking about whether the user feels fairly represented, which is related to but not the same thing as whether the form actually discriminates against minorities. So on that note, I just want to emphasize the importance of picking an appropriate set of main categories, even if you have an Other, such that very few people should ever resort to using the Other, and those that do should not end up getting unfair treatment as a result. For example, if policy is made based on the demographics of a particular set of people, that policy needs to account for anyone who doesn't fit into the standard groupings. If you just have e.g. "Male, Female, It's Complicated", policy is almost certainly going to be made based on the standard gender binary, without accounting for anyone who doesn't fit. And on a related note to that, it's not even just the person filling out the form who might feel unfairly represented by a poor choice of categories. Anyone else who does fit into those categories is going to see the categories as a reinforcing of their worldview, i.e. anyone who sees "Male or Female" as a set of gender choices will just be reinforcing the incorrect idea that everyone fits into the gender binary, and this helps cause discrimination.
- dredmorbius 11y agoTruth systems: yes. no. it's complicated.