Tag apple

Thanks Steve

I don’t generally care much at all about the deaths of famous people, but I feel profound sadness at the passing of Steve Jobs. As I type this on my Macbook Air and my iPhone buzzes next to me with texts and calls and GroupMe messages, I find myself thinking back to playing Zork on my first computer, an Apple II.

That was my first experience with a personal computer and although I didn’t realize it at the time, I was already hooked and destined to spend a large portion of my life in front of, tinkering with, and writing software for, computers. While a game was my first experience, it wasn’t long after that I was fiddling with Basic and Logo and logging into BBSes and manually upgrading an Apple IIgs to 768kb of ram (you had to insert the chips -no simms or dimms – yourself back in those days, kids).

I disagreed with a tremendous amount of Jobs’ philosophies and decisions (most recently with a lot of how iCloud works), but in many ways, that’s great: the things I thought he was wrong about helped as much in forming my own opinions and mental constructs for the “new,” as the things I thought he was right about. And those stances showed me the value of sticking your neck out and being passionate, even when sometimes it might be unpopular or even wrong.

People throw the word “visionary” around an awful lot with Steve Jobs and I feel like only some of them have really absorbed what that means. It’s much more about imagination than it is about technology. It’s incredibly difficult to envision something new in your mind’s eye and then communicate that to others and get everyone on the same page to go out and actually make that idea into a reality. He did that. It’s hard to think of many people who have had as profound an effect on human civilization in the last 30 years (yes, I just said that). Certainly not many (any?) politicians, even though in theory that’s kind of their job.

I am unaware of Jobs ever saying anything to this effect, but one of the things I learned from watching Apple over the years is that it’s incredibly important to try and make the complex into the simple. Or the easy. And doing that is way harder than it sounds. When our tools are simpler and easier to use it frees us up to not have to think about using them or how they work. 20 years ago we had to memorize phone numbers. Now we tap on someone’s photo to call them. Think about that. That’s completely fucking incredible. But we actually have to take a step back to appreciate it because it’s so simple that we’ve stopped having to think about it. We’ve been freed up to focus on the next thing. We’ve been moved forward.

It’s hard right now not to think about this quote that Jobs made at the 2005 Stanford commencement:

No one wants to die. Even people who want to go to heaven don’t want to die to get there. And yet death is the destination we all share. No one has ever escaped it. And that is as it should be, because Death is very likely the single best invention of Life. It is Life’s change agent. It clears out the old to make way for the new. Right now the new is you, but someday not too long from now, you will gradually become the old and be cleared away. Sorry to be so dramatic, but it is quite true.

Your time is limited, so don’t waste it living someone else’s life. Don’t be trapped by dogma — which is living with the results of other people’s thinking. Don’t let the noise of others’ opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.

Steve Jobs died way too young and a colossus has been stolen from us, leaving a hole in the worlds of technology, software, communications and innovation. When the mourning has passed, the best thing the rest of us can all do to try and honor what Jobs accomplished is to try to be that New: Go out and try to make great things that change the world and make it a better place.

Identity, SSO, and networked namespaces

Jud Valeski had a notable observation about how potentially powerful an OS level namespace and single sign-on capability could be for internetworked applications:

Everyone’s talking about the power of Twitter and Apple’s native single sign-on model in iOS 5. While this is a phenomenal coup for both Twitter and Apple, it’s only the tip of the iceberg. Having a widespread, networked, account namespace (Twitter) baked in at the operating system level is one of the few things that can truly revolutionize the network again.

I am certainly not going to be one to criticize this desire at all. But (of course there’s a “but”), I have no real reason to believe that a big company team-up is going to actually enable this desire. The history of big software companies’ attempts at some kind of unified, distributable identity is littered with bungles, with everything from Passport to Apple’s own MobileMe.

There, is of course, the big advantage that there are already a lot of integrations and knowledge about Twitter auth and users, but is that enough?

I’ve always thought that “user-awareness” was incredibly key to making applications powerful and much more user-friendly, but I don’t write about it enough. So, here goes the following…

I still think the solution to this “who is the user/omfg passwords everywhere” nightmare has to be something that provides “connectedness” and an extra layer of security that is used pretty rarely at the moment.

What does that mean? Glad you asked. I think it looks something like this:

  1. A user connects to an Internet service (through a browser, mobile app, desktop app, anything).
  2. A hashed key is provided to the service along with that request. The hash initially blinds the service from the user’s identity.
  3. The service sends the hash off to a third party.
  4. The third party then contacts the user, most likely through a mobile app: “The service MyHotNewThing wants to connect with your information, do you want to share the following info?…”
  5. The user says Yes (or No and the process stops and the user gets a “not logged in” view of the service), makes any customizations to what info they want to share with the service, and the third party then provides a key to the service that allows them to access the user’s information.
  6. The user is logged in to the service and any approved content or other connections(!) are also now available to the service.

Boom. It’s a bit similar to OAuth, but not the same: No browser required, no bouncing through URLs, no confusion about who is asking for what.

A few additional key points:

  1. Those hashes have to include, behind the scenes, devices. In normal language this means something like “User X has approved access to Service Y from Device Z.” Now, implicitly, the user is probably approving this for all the user’s devices, but all of those keys are different. This lets a user completely disable access from a (stolen, lost, broken) device for everything in one action. It also lets the user disapprove access from an unknown (hacker) device.
  2. This also makes all the keys and hashes different for the triple combo of service/user/device as opposed to most current schemes, which are just service/user.
  3. By handing off the approval process to a third-party this opens the door to things like social authentication (my friends trust this, so I will too) and content-sharing without conflict of interest.

Getting back to the original post, I’m not saying that possibility isn’t there, but I don’t see the big players thinking about this problem in this way.

Thoughts?

How to keep your software awesome

tl;dr: Fix bugs quickly, write features and core slowly, use github. Or just scroll through the graphs.

We’re either at, or past, my 30 year anniversary (I was a kid, can’t remember okay?) of either using, writing or managing software. I have over those years, developed some impressions and, ahem, opinions. What follows is a framework for thinking about a piece of software’s awesomeness.

For the purposes of this post we’re going to define “awesomeness” as a very general sense of “useful quality,” meaning a qualitative appraisal of the overall balance of usability, utility, and bugginess. This is inherently a qualitative analysis, but I’m making extensive use of graphs for the purpose of providing a framework for visualizing and thinking about where a particular piece of software sits on the Awesomeness Curve.

So, what does the Awesomeness Curve look like?

This is a graph mapping software quality and usefulness over time

Essentially, we have the green area, which is early (or beta) software that is interesting and gaining users who are most likely early adopters and more likely to be adept at finding and utilizing working arounds for bugs or missing features.

The blue area represents software which has enough features to make it really useful, has few enough bugs to not make you want to toss your computer out the window and (hopefully) has large user-adoption and/or sales.

The red area is where you don’t want to be: bloatware. This is software that’s got more features than any one user could ever find, much less make use of. It’s most likely also slow because it’s trying to do more than it’s original design ever intended. Finally, software in the red zone is quite possibly even buggier than it was when it was the green zone. Simple things that used to work perfectly now suddenly cause it to crash or get slow in the latest version.

So, now that we’ve got our framework, let’s look at some examples. You may very well completely disagree with my assessments of one or more of these. That’s fine, this is a framework to think about software and guide its management. It’s okay to want to place particular software products or versions in different places. This is a qualitative framework.

Graphing how awesome the current versions of various software packages are, as of May 2011

It’s clear in the above that I am a big fan of Github and Etsy and not so much of Facebook and MS Office. Why?

Github and Etsy both have stable, extremely useful offerings for their audiences. Sure, they are not perfect but when I ask myself “what software do I think is the most awesome?” they are both at or near the top. Their bugs and/or outages are tolerably rare, their UI quirks are not impenetrable and, certainly in the case of github, I spend a good portion of my day using their software without any issues.

On the flipside would be something like Facebook, which I use every day and sometimes it works right… sometimes not. But it certainly always confuses and annoys me and it’s utility has decreased dramatically over time. It went from “oh wow, there’s such and such from jr high!” to “oh, someone I haven’t talked to in 20 years sent me a virtual tree.” Having said that, Facebook does, if nothing else, constantly – and without any warning I might add – evolve. For example, there is finally a My Apps button on the developer site so I know longer have to search Google (I literally used to do this) to find the FB apps I have created.

And then there’s Microsoft Office. Oh Office, you’ve changed so much and yet… so little over the years. Office, and Outlook in particular, may be on its way to becoming “the” case study on how to feature creep or uselessly revise software to death. Sure, there are worse offenders, but are there worse offenders that have so much market adoption? How many features in MS Office do you use that didn’t exist in say… 1998? Of those new features, how many do you think work well? How many things that used to be simple make you want to punch your monitor? And the interface changes! It’s like Microsoft is saying “Pay us to learn our confusing new interface!”

Okay, enough Office bashing, next up is another favorite target of mine: Photoshop.

Photoshop

When I first discovered Photoshop in college (circa 3.0 or 3.05) I thought it was the single most awesomely impressive software I had ever encountered (until Quake anyway, but that’s another story). Nowadays, it is the bane of my existence every time I have to open it. My copy of CS3 is so buggy it has never stayed open long enough for my preferences to actually get saved. Think about that. I have literally never closed the app, it has always crashed first. Which, of course, is compounding madness, since I then have to reset all the preferences (yes, I could just close it now, that’s not the point, the point is it crashes a LOT). I know a lot of web developers and designers and nearly all of them feel the same way: their old swiss-army-knife of web design started going horribly wrong around the “creative suite” change and has only gotten worse since.

Enough whining, let’s talk about what this all means and what we can do about keeping our software awesome.

I am making the argument that this is the natural evolution of a piece of software: In the same sense that Information Wants to be Free, I am arguing that Software Wants to Become Bloatware. As soon as software becomes interesting and useful it gets pulled in a lot more directions: Customers and users want features, investors want constant growth and sales, and developer turnover occurs.

If this is the natural state of things, then what is to be done besides just letting software die once it gets into the red zone? Well, that is “a” solution. And an important solution to note, because just as software can die in the red zone, it can also be killed when it’s in the red zone. The best example of this, of course, is the Friendster > MySpace > Facebook progression. Both Friendster and MySpace sped over the Awesome Curve into the red zone as fast as they could and got blown away by something better.

Happily, this is not the only way to combat the crapware trend. The simplest way is the self-reboot (or “software suicide reincarnation” if you want to stick with the metaphor). This is essentially what Steve Jobs did with Mac OS when he returned to Apple and, unlike with Office, this is essentially what Microsoft did with Windows recently. Let’s look at Windows, up and to, Vista:

You can make your arguments about where XP should fall on the curve, but only the most diehard MS’ folks will try to defend Vista. In fact, many people would argue that Vista was way down the page in the negative.

But, Microsoft fixed a lot of that with Windows 7:

They restarted their curve in such a way that Vista could be thought of as being Win7′s “green” precursor. This is the most simple and obvious way to avoid software death. I would argue that it is also, the least appealing. For one thing, it’s a bit like amputation: You’re taking a big risk to save the organism, but if you wait too long it might end up dying anyway.

So what’s better? Essentially you want to make the Awesomeness Curve smaller, both vertically and horizontally. Once you’re in the blue zone, you want to be jumping to the next green zone before you can get anywhere near the red. You also want those (now smaller) bumps to be over shorter intervals of time.

Ideal for awesomeness, more bumps that are shorter

How do you accomplish this? First, the four principles:

1: Resist new features.

There’s a whole school of thought that quantity of features is directly proportional to what you can charge for software. While clearly this is true in practice, that doesn’t mean that it’s not incredibly stupid. Every new feature makes your software more complex to use. If that lets you sell “training” then well, kudos to your current quarterly revenue, but somewhere along the way somebody is going to come out with a competitor product that’s easier to use and you’re going to find yourself in that red zone. And never, ever, ever impose a new feature on your entire user base because one big customer asked for it (more on this later).

I always feel like Apple’s new software presentations are campy and simplistic and, well, they are but they say something important about the company’s priorities. If Steve Jobs is bothering to walk you through seemingly simple features, that means they thought really long and hard about what features they were including and they “got rid of the crap.”

The one big exception to this rule is if many of your users are making the same complaint about something missing. I’m looking at you, lack of “Mark as Read” on the iPhone.

2. Attack bugs and slow performance like you are eradicating smallpox.

Per the above, if a new feature is taking priority over problems for your users, then your software is speeding its way into the red zone like a bad TV police chase.

3. Roll out changes fast.

There isn’t a whole lot of point in fixing bugs if you aren’t getting them to your users quickly and in the least intrusive way possible. Also: if you’re holding fixes hostage so you can “sell upgrades” with new features, I hate you.

4. Put yourself in a position to gather and measure as much data as you can.

Does anyone ever use feature X? If this button color is changed, do more people click on it? Can you, currently, answer these types of questions?

Okay, but how do I accomplish this?

First of all, the same formula isn’t going to work for every piece of software or organization. You simply have to experiment and tweak and tailor to your own needs and technology stack. Having said that, here are the seven practices I have found work pretty well:

1. Use an open source model

Even if your software isn’t licensed as open source, there’s no reason why you can’t follow the same open practices internally. Essentially this means having a really open and transparent process with good, integrated tools. It also means that your process should never, ever get in the way of someone wanting to make your software better. Do they have to ask permission or get approval to fix a bug? Really? Do they have to justify and sell their idea to you even if they’re willing to work on it in their own time? If the answer to any of these questions is “yes” then your process is working against, rather than for, your software. (Note: if you don’t trust your team at this level than either you shouldn’t have hired them or You Need to Let Go).

This essentially means making it as easy as possible for your team to check out, fork, commit, and do pull requests, as possible. If your software is complicated to run, this means keeping your docs and wikis up-to-date. If you fall under any kind of regulation, make it clear to your developers that they have to open a Bug Report/Issue and reference it in the code commit.

The other big advantage is that if you use your source control management well, you’re actively making multiple Awesome Curves that are running in parallel, so hopefully your users are only seeing the peaks.

2. Make your software extensible.

How do you resist writing a new feature for that customer who represents 20% of your sales but .5% of your installed base? You make your software extensible or modular. If your software is built to support this customization then you can simply write this feature just for this customer. But even better than that, you’ve enabled anyone to tailor your software to their needs. You have to set the ground rules and find ways to encourage good contributions, but you’re still better off working this way. An example of too much restriction is probably the iOS App Store. Too little restriction and modularization? Probably something like Drupal.

For websites, this means writing an API and client software. See any of Foursquare, Instagram, Twitter, etc.

If you’re really clever, you take the best of your module/component ecosphere and just absorb them into your main product. It’s like an achievement: “our feature was so useful, they bought us and made our feature part of the main software!” (Note that this is not dissimilar to the forking/pull request model in open source software.)

3. If at all possible, use interpreted languages

This point could be rewritten as “try not to use anything that’s compiled, built, or otherwise bottled up in a black box.” Obviously this isn’t an option for say, PC games, but it certainly is for websites and even lite desktop apps. If you do have to distribute compiled code, try to make use of app store type models such as Steam or Apple’s app stores. These models let the “store” handle the updating automatically and unobtrusively. Bouncing an icon on your user’s desktop every time they open your app is NOT unobtrusive. Obviously there are rare cases, but the point is that they should be rare, not every time the user opens the app. They’re trying to use your software for crying out loud, get out of their way!

On the web, you’re simply going to have more flexibility using Ruby or Python or PHP than you will having to say, put together a WAR, deploy it and pray. It’s 2011, the performance differences aren’t even worth discussing. Nearly everything has been shown to be scalable in some way or another. The value of those CPU cycles is pennies compared to the Ben Franklins of keeping your users happy.

Note that a lot of compiled programs make use of interpreted languages to manage or direct their compiled code. EVE Online and Firaxis’ games both make extensive use of Python to make easy, fast changes to gameplay (like changing an opponent’s hit points or something) that don’t have to involve say, the 3D rendering. This model can be, and has been, applied to the web world by writing core business logic in say, Scala and letting PHP or Django handle the actual web UI.

4. Stay focused on your stuff under the hood

If some core piece of your software is causing a lot of problems – either it’s causing bugs or making it hard to add (one of those that you thought long and hard about) features – then rewrite it! “But it’s stable, I don’t want to mess with it!” you say. To which I say, “okay, well it’s going to get worse, so you may as well minimize the pain by dealing with it now.”

One of the bigger design mistakes I have made in my career was using XML for a layout engine, essentially because the app was written in Java and everyone said “use XML!”. I think I can say, quite definitively, that the app was slower, buggier and MORE difficult to change in the future than if we had just used tables or even some kind of custom persistence object. Tons of time that should have been spent on cleaning up UI instead got spent on debugging and fixing moronic problems cross-platform parsing problems.

This type of work isn’t sexy for business owners or your sales force, but it still makes your product a lot better. Never lose sight of the fact that responsiveness and stability are every bit as much a part of your user experience as whether you used the glossy or the flat buttons.

5. Experiment

This may sound contrary to the “resist features” principle, but it’s actually not. You don’t want to resist trying features. You want to resist rolling every single one of those features out to your entire user base. You want to encourage your team to try new features and roll them out internally or to small user sets. This lets you test and experiment more and spend less time arguing about features in meetings.

The idea here is to try features quickly with small groups (or even just yourself) so you can rapidly identify and drop features that aren’t useful enough and spend lots of time awesomifying the ones that are, well, awesome. There are now “feature management” packages for most of the popular web frameworks. Pick one and use it.

6. Custom measurement and analytics

I really defer to Etsy on this. They do it really well and they’re happy to share how they do it.

7. Easy deploys

This only really applies to websites. Desktop software is its own world.

You want to make it as insanely easy and consistent to deploy code to production as possible. Last summer and fall, working on the Gardner Nelson + Partners website, we were deploying new code 10-20 times a day. That rapidly tapered off since the site isn’t that interactive (it’s essentially just a marketing site), but I wouldn’t hesitate to do that many deploys to the site if it had discussion or voting or some other high usage feature.

None of the tools out there are, as yet, perfect, but they’re a lot further along than Zip Up, FTP, Unzip, Cross Fingers. Look at things like Fabric or Capistrano or just role your own.

Deploy tools will help you with speed, but they won’t necessarily help you with consistency and predictability. For that, you want to run VMs locally. With the power of the modern desktop computer, you can replicate most production environments locally by running multiple Virtual Machines. The only things you should really need to change are CNAMES (locally via /etc/hosts) and mounting a drive to your dev workspace.

I hope this helps you think about your software, where on the Awesome Curve it lives as of today, and how to keep it in the Awesome zone.

Disagree? Did I make a factual mistake? Let me know in the comments!

Dear Apple and Google, Please Fix…

A long overdue return to technical stuff…

If you use Google Analytics and actually look at your visitor data, you will be familiar with this phenomenon, which is the reported Safari browser version in GA:

Safari versions in Google Analytics

Those are in fact, not Safari version numbers, but WebKit version numbers. Now, you might just be saying, “oh, stop whining, you can just correlate those!”

But, in fact, you would be wrong: For example, the WebKit version 533.17.8 is used in both Safari 4.1 and 5.0.1. For my purposes, this is not the end of the world as I tend to care more about the WebKit version than the browser version.

However, I do occasionally need to explain these numbers to like… clients, in which case, the above sucks. And it’s been broken for awhile. People have posted up various filters and such that you can use to improve the situation, but seriously, that’s an epic waste of time, so I’m whining about it on teh interwebs.

Python 2.5 distutils, snow leopard and xcode making gcc happy

As many Python folks have discovered, upgrading to Snow Leopard can cause some pain for development. For the most part, this involves reinstalling a bunch of things (macports, python itself and whatever python packages you use). This has been a hassle for me, but up until today it was just time consuming, rather than actually difficult. Apparently if you upgrade xcode (like I did for the new iphone stuff), unless you explicitly choose the old SDK, xcode blows it away.

So today, while trying to compile multiprocessor on Python 2.5, I got this:

Compiling with an SDK that doesn’t seem to exist: /Developer/SDKs/MacOSX10.4u.sdk
Please check your Xcode installation

Which left me staring at the screen thinking “how the f**k do I fix THAT?” After poking through every file in multiprocessor and then googling quite a bit I finally found this message on the epd-users mailing list, which got me to the promised land.

From what I can gather there are two ways to fix this. One is to reinstall xcode and choose to include the older SDK. The other (and possibly scarier, depending on your taste for mucking around inside installed stuff) is to point distutils at the newer SDK. I did the latter: in a text editor, open up:

/Library/Frameworks/Python.framework/Versions/Current/lib/python2.5/config/Makefile

Then find all the instances of MacOSX10.4u.sdk and change that to something you do have installed. To see them just do

$ ls -la /Developer/SDKs/

If there’s nothing there, well, then you need to install xcode or you’re SOL. There should be four places to make the change in the Makefile. Finally, the newer compiler doesn’t seem to like the “-Wno-long-double” flag, so I had to the delete that as well. And voila, multiprocessor compiled (and I hope any other Python package that I try to install that needed the gcc).

Is it me, or are monitor and hdtv aesthetics backwards?

I’ve been poking around looking at 24 and 30 inch monitors. A few things jump out quickly in this kind of search, the first is that there aren’t actually very many 2560 res monitors out there (because really, what’s the point of a 1920 res 30″ monitor?) I have no idea what’s up with that, but there’s basically five or six choices and none of them are particularly new.

The second point that just baffles me is the disparity between the new HDTVs and large monitors. You basically have the really good Dell 24 and 30 inch screens, the Apple 24 inch LED and a whole bunch of 24 inch screens from everyone under the sun, and the aforementioned dearth of 30 inch monitors.

Samsung has multiple lineups of gorgeous LED HDTVs. Now, I get it, going higher res is harder and more expensive (or maybe it isn’t? I actually have no idea, it just like HAS to be, right?) but you’re already at 1920×1080. You’re telling me you can’t squeeze that to 1920×1200 in a 24 inch format that looks like this beauty??? Really? Look at that thing and then look at every other monitor out there and explain to me why a 24″ version of that wouldn’t be by far and away the best selling thing around? What am I missing? Why does my monitor still look like it was designed by an engineer at IBM in 1982 and my TV looks like it came off a Porsche drawing board? My aesthetics are completely the opposite. I don’t care what my TV looks like anymore. My TV went from a depth of two FEET to a depth of 2 INCHES in one purchase. And you know what? I can’t tell – cause I’m looking at the TV. My monitors are a completely different story. I have three on my desk and I also use my desk to read/write upon (yes, I mean with paper). The point is that the monitors are sharing their space with my other work aesthetics and it would be great if they didn’t look like they belonged in an M1 Abrams.

/rant

iPhone 3.0 still no lock screen options except for Rock Your Phone and not even that for 3GS

I kind of went crazy with iPhone software after I got a 3GS. The speed increase of the GS is staggering compared to the original iPhone and visibly faster than the 3G. With the speed bump I found my phone much more useable and I went on an activation and app downloading craze, including activating my work Exchange account. Exchange support seems to work quite well. I basically just turned it on, set it to sync mail, calendar and contacts and, aside from now having 2 of every contact everything just worked.

Now I felt all set, I could finally discard my work blackberry (surely someone else at the office could use it…) cause I had my work mail and calendar on my phone. I could even provision new cloud servers and SSH to our VPN’d production servers, if needed. Everything was great and amazing, a mobile technology and productivity marvel.

But something was missing. At first I wasn’t sure what. I knew I kept checking my phone for new mail and that it felt annoying. So I looked at the Blackberry on my desk and it was obvious. The iPhone, even 3.0, doesn’t update the lock screen with any information. Surely this must be a setting or something I thought. No. After searching endlessly through the settings and in Google it would seem the only good solution out there at the moment is Intelliscreen. Oh well I’ll just get Rock Your Phone and jailbreak my phone and get that! Nope. Rock Your Phone doesn’t support the 3GS, at the moment anyway.

One has to think that either Apple or Rock Your Phone will rectify this in the next 12 months, but it’s still quite annoying and it makes the Exchange support seem kind of half-assed. Apple is clearly aiming at Microsoft’s enterprise dominance and leaving out something as simple as better indication of whether or not one has new mail almost feels like a silly oversight.