3,588 karma · joined December 19, 2009
Yeah kids are so entitled these days. They'll have all the time in the world to have their childhood, when they get to 65.
So I think sandboxing is basically useless against these kinds of attacks. Either they allow apps to elevate their entitlements in an update, or they don't and developers will always out-out from the start (or pick the widest set of entitlements available).
If sandboxing is forced with no opt-out, then users will have to jailbreak their computers so they can install Parallels...
So we just take a sample of 1000 lines, then take the GCD of every pair. The indentation width is simply the most common pair.
If it turns out that one bin is not clearly more dominant than the others, then we default to whatever was used last time for that language.
Right now, "everybody else" is using spaces. So get onboard.
The more lines that are visible on your screen, the less you have to keep in your working memory. Human memory is fragile, so you really don't want to rely on it.
I can only fit 51 lines vertically (damn widescreen laptop) so that one snippet fills a good 1/3 of my screen.
Personally I'd write that as
if (condition_a) {
if (condition_b) do_thing_a();
else do_thing_b();
}
else {
do_something_else();
}Since when have we asked authors permission to add their book to a library? In many places (including the US) if you publish a book it is mandatory to submit it to a library.
There's a referendum coming up to do just that...
https://web.archive.org/web/20090218122324/http://twitterisn...
Also, Apple is not only designing phones for you and me, but for businesses who nowadays are the target of state-level security agencies.
Clearly Apple fudged the implementation of this feature, and it's a PR nightmare, but all evidence points to their intentions being genuine.