Showing posts with label project management. Show all posts
Showing posts with label project management. Show all posts

Wednesday, October 29, 2008

6 Days: Making It Right First

So, what's the right answer to yesterday's question? Do I push out my launch date, do I cut things, or what? This is one of the rare times I've received clearly conflicting advice. The advice splits along the following lines:

  • Stick with your date, launch with what you have.
  • Way too much software ships before it's ready. Don't make that mistake.
Gee, that helps.

Right now, I'm just below the threshold of "it's actually useful" and I feel like I'm going to get there any minute. Once I get there, I think it'll be downhill. Kernighan and Plauger famously wrote:
Make it right before you make it fast. Make it clear before you make it faster.
That's the biggest piece of advice, modified slightly, that I'm following right now. I'm trying to make it right and clear before I make it fast, before I optimize my code, before I make it pretty. (Of course, making software pretty wasn't much of an issue in the '70s, so that's my addition.) There's a lot that I want to do that isn't absolutely essential to the launch and I'm trying real hard to focus on just the essential stuff. Making it right means it works, it does what it's supposed to do, and users won't lose their data.

So, despite the rather large speed bump that I just went over, I've resumed my countdown toward November 3rd, but I don't know for sure if I'll be able to launch then or not. I'm certainly going to try.

Tuesday, October 28, 2008

?? Days: Timeframes

If this is Tuesday, it must be ...

Actually, I'm not sure what day today is. I got back from Michigan last night, where I helped move my father-in-law into his new home, an Alzheimer's care facility. It was hard and difficult (and exhausting). Sad to say, a lot of people who move their loved ones into facilities like this do little more than move them there. We did the opposite, moving his own furniture, his own art, his own books, his own bedspread. The "apartment," as we call it, looks like a miniature version of his house. The number of things that had to happen to pull this off in the short timeframe available was daunting and it absolutely had to be on time. It took all of my project management skills, not to mention design and box hauling skills, to pull it off, and we did. I completed my last trip to the facility to finish things up two hours before we took him there.

Now that I'm back, I don't know if I can pull off shipping Groupthink on time. I knew I'd be busy on the trip, but I thought that I would get maybe five hours a day to work. The reality was that I got about five hours during the entire trip, entirely on Sunday and Monday. And that's quite a step down from the typical ten to twelve hours a day I've been working. So, on my list of tasks for today is to evaluate whether I can stick with my original schedule of launching on November 3rd or if I have to push it back a bit. And do I need to cut anything else? One complication is that I am heading out to the Hackers Conference on November 7th, so I don't have a lot of flexibility in slipping my date.

You might ask, why say something now? Why not just wait until I know for sure? Well, first of all, I believe in transparency. Through the transparency, I hope to be able to help others doing similar things, and I also receive advice from people. If I limit my disclosure, both are significantly less useful.

Thursday, October 23, 2008

12 Days: Cut Early

When I built Puzzazz, I built a mobile version of it, with pages specially designed for small screens. I also let you switch which version you get if you prefer the desktop version on your cell phone. Building the mobile version of Puzzazz took me, literally, a few hours. A fair number of users visit Puzzazz from their mobile phones,when they have a minute or two and decide to solve today's puzzle.

For Groupthink, I think mobile usage will be even more important. However, because Groupthink relies heavily on client-side code in JavaScript and many cell phones don't support JavaScript, supporting mobile browsers properly is a lot more work. Among other things, the mobile version requires more (and different) server support.

Today, I decided to cut the mobile version for my first launch. It's a cut that I hate to make, but it's the right time to make it. So far, I have written almost no code for the mobile version and none of the code that I have written is a problem -- it can all remain unchanged. It's one line of code to cut the mobile version, but, by cutting it, there's a bunch of new code that I don't have to write yet. And, the desktop version will still work on many mobile phones, so I'm not abandoning those users. In the meantime, I'll continue to note places where I have to do a mobile-specific branch and I may even write some of the code, but the big piece of work -- the mobile-only work -- I will defer.

Far too often, particularly at large software companies, cuts are made helter skelter. They have 5,000 features they want in the application. That's a problem in the first place -- they're looking at feature lists instead of the big picture. They pare that list down to "only" 500 features, which they start to implement. A few months in, they realize they're behind, so they cut some features that are half-implemented. They repeat this process a few more times. By the time, they're done, they have 400 partially-implemented features that they've tossed and a 100 actual features they plan to ship. Now, if they had back all the time from those 400 killed features -- if they would only cut features before they start implementing them -- they could have made the features they actually did ship better.

I really want to launch on time and I know that time is tight. I'm not positive that I actually need to make the cut, but I'm being conservative and I'd rather cut it now than cut it later. By cutting it now, I'm freeing up time to finish everything else. I can use the remaining time that I have more wisely and I don't feel too bad about the few hours that I've spent on it so far. And, it's a clean cut, with no repercussions in the code. And, just to be clear, Groupthink will absolutely have a mobile version -- it just won't happen as soon as I'd like.

Family First

Speaking of the time that I have, I'm going to be absent from this blog for a few days because of a family obligation. Tonight, I'm flying to Michigan to help move my father-in-law to an Alzheimer's care facility. It's sad that we have to do it, but the time has come. Originally, we had thought that my wife could do it on her own and I would stay here and work. But it became clear in the last few weeks that she couldn't do it without me. And, even when I'm in the midst of a crazy 30-day project, family has to come first. I'm taking my laptop with me and I will try to work as much as possible. Unfortunately, I probably won't have an internet connection (and the 15" screen is no match for the 24" one I normally use).

I get back on Monday, but may not blog until Tuesday.

Sunday, October 19, 2008

16 Days: Working in Groups

Today's Six Hour Startup was near my house on the Microsoft campus today. So, despite the fact that I'm pretty busy, I stopped over to check out the last few hours. It looked like this one was more successful than the last one, but it still seemed like the group didn't work together as well as they could have. I think in-project communication was better this time (probably helped by the fact that it wasn't in a noisy bar), but it could have been better still.

In many ways, a six hour startup is like a microcosm of a real company with some of the same problems on a smaller scale. A whiteboard might work when you only have six hours and I know of at least one startup doing all of their project management using Post-It notes, but I keep seeing signs that I'm on the right track -- that there's a need for something better than a whiteboard but not as large or complicated as a typical project management or task tracking system and which is aimed at small business and other small groups. I'm also currently leaning toward calling the product itself "Groupthink Projects." That's not definite by any means and I'm interested in your thoughts.

And, on the project itself, right now, I'm still in the midst of a stage where I've written a lot and everything's broken. My plan is to emerge from that stage sometime tomorrow.

Tuesday, September 16, 2008

The Six Hour Startup

On Sunday, I joined a bunch of people at a bar in Seattle to build a new web site from start to finish in six hours -- the Six Hour Startup.

One premise of the Six Hour startup (or at least this one) is that the project is decided on at the beginning of the six hours. Before I went, knowing very little and just having a link to a previous result, LunchLuck, I thought about what might a good project. One thing that I concluded was that data was an issue -- a good quick project needs a minimal amount of data.

After some discussion at the start, we settled on creating a web site to help people do the "one hundred push up challenge." The idea is that you spend six weeks doing push ups three times a week, working up to doing one hundred in a row. On the surface, it seemed pretty simple. You sign up, the site tracks your progress, maybe draws a graph or shows how you're doing relative to your friends.

Unfortunately, the data turned out to be an Achilles heel. The data itself was easy enough to get. But, the data imposed all sorts of requirements on the system that were more complicated than we thought. You see, the hundred push up challenge isn't simply about tracking how many push ups you're doing. You're trying to build up strength, so each day that you exercise, you're supposed to do specific sets of push ups -- between five and nine sets of push ups, with each set being a different number of push ups. And which set of sets you're supposed to be doing depends on how well you did last week.

Three hours in, we were still learning this. The schema, the user interface plan, pretty much everything, was based on assumptions that were wrong. That meant compromises. Had we all known the true scope of the requirements, we probably would have picked a different project. After all, six hours isn't a lot of time.

At the end of the six hours, I, and a number of others, didn't get to see working code (and it's not live now), so, in some sense, we failed. And the compromises meant that we failed in another way. Compare that with my experience at the Google App Engine Hackathon where, by myself, I built a working web site from scratch in about the same time, using technologies and a language I'd never used before. What was the biggest difference? Good scoping.

The moral of the story: What seemed like a very simple thing turned out to be much more complicated than we thought. The "elevator pitch" for the project was a lot simpler than the actual requirements. It seems like that's the case a lot of the time, even when we have a lot more than six hours.

So, was this a negative experience? Not at all. Not everything we do can be a success. It served as a good reminder on scoping, the people were interesting, and I learned some things. I'd do it again.

Monday, March 24, 2008

Dates vs. Quality

Haven't posted in a while because we are in ship mode. Fortunately, it's not the 25 hours a day / 8 days a week no-sleeping no-eating ship mode, but it's hectic nonetheless. At the end, it always seems to come down to meeting a date versus delivering the quality that you want.

What's the best way to avoid problems?

  • Work at a small company (or in a small group) so you can set your own dates. Large organizations tend to be top down and impose schedules without any idea of what is actually happening.
  • When you start out, set the date based on what you hope to accomplish. Or, set the date first, then pick a feature set you can implement in the time available. Or, iterate back and forth. But, whatever you do, don't set them independently of each other. I know this isn't news to anybody reading this blog, but it still seems to get ignored a lot.
  • Be willing to cut anything -- anything -- if you have to make your date. Even features that are almost done. You can always ship them later. If you have an immovable force and an irresistible object, the dev team explodes.
  • Be willing to change the date if you can't get the quality you want (my wife and I slipped our wedding date because we weren't going to have the quality we wanted on the original date we picked).
  • Stay calm. No matter what, you will be dealing with the issue at the end.
They say, on the Internet, nobody knows you're a dog. Similarly, nobody has any idea what you were going to ship or (hopefully) when you were going to ship. They only know what you actually do ship. And, if you don't ship in the first place, it's pretty hard to ship updates.

Wednesday, March 12, 2008

To Fork or Not to Fork

... that is the question. You're working on a big project and you start a new version, but you have to keep the old version alive. Do you fork?

I have to say that I hate this question. Neither answer is right and it's a bigger problem today with internet services than it was with monolithic apps shipped on CD. You might deploy a new rev of the old version at any time to fix a security hole.

If you fork, maintaining the old version can be a royal pain. Bug fixes don't automatically roll back (or forward) and maintaining two independent copies of the source code on dev machines is always confusing.

If you don't fork, you end up with lots of places where you're checking which version it is. There are lots of places where it's easy to screw up, like config files and data files. You'll probably end up forking individual files and classes. Do your new classes inherit from the old version of the equivalent classes? Either way you answer that, it can play havoc with inheritance. And you need a way to build or deploy the old version without it being corrupted by the new version.

Most of us use source code control systems. Why don't they help? Source code control systems are really pretty trivial systems. I've written two myself and neither was brilliant software. Just to note: both systems were built more than ten years ago and, each time, we had needs that couldn't be met with off-the-shelf systems, of which there far fewer. Both systems are long dead.

It seems to me that source code control systems are built as if the biggest problem is the database. Well, certainly that's a big problem, but it's pretty much a solved problem at this point. The real problem is the interface to the database (and by that I mean any GUI as well as any shell commands).

The Missing Features

There are at least two large features that source code control systems seem to be lacking.

Semi-fork. Why can't I start a fork for a codebase and specify, on a file-by-file basis, decide which ones get forked? Whenever I edit a file, I can choose whether that file gets forked or not. Even better, drop it below the file level. If the source code control system is integrated into the development environment, why can't I pick on a class-by-class or method-by-method basis? Instead of having if (v2) or #if V2 sprinkled throughout my code, why not build this ability deep into the dev environment? Allowing the user to switch between showing the different versions isn't rocket science -- even Microsoft Word can toggle between showing different versions of a document.

Lightweight fork. I haul a laptop back and forth from work and I have all my current code on it, including stuff that I haven't checked in yet. I've hauled hard disks and flash drives as well, but syncing is a pain and, of course, it's "cheating" as far as source code control goes, which means that I can't check in when I'm using my home machine because the records on my work machine will get screwed up. The alternative is to enlist twice and check out code at work and at home independently. But, if I do that, I can't easily take work home that I haven't checked in. And I really don't want to check in code I'm in the middle of working on. It might not be tested -- hey, it might not even compile at the moment. A fork would solve the problem but forks are heavyweight and, generally, can only be done by an administrator.

Why can't I have a lightweight fork that I can create at any time? In fact, whenever I start making changes, it could instantly be a lightweight fork. I can commit that fork and I have a backup that I can also get on any other machine. When I commit the changes into the main branch of the codebase, the fork is automatically removed (though it's remembered for historical purposes). The underlying systems probably support this already. We just need the UI to catch up.

Moving Forward

It seems to me that the feature set of source code control systems hasn't changed much in a long time. What's your favorite missing feature in source code control systems? What features are needed for the needs of constantly updated, always live services? And how do we move source code control systems forward so they incorporate features like these?

Thursday, March 6, 2008

Software to Die for

Software development teams track a lot of statistics. Lines of code, tests, bugs, etc. But there was one project I worked on with a very unusual statistic: deaths.

Fortunately, the death count was zero for the project -- nobody had died during the development. But that wasn't true of every project the company had.

The company in question was a power company and I was a usability consultant on a large software project. At power companies, people get electrocuted and succumb to carbon monoxide poisoning. Things like that happen. Obviously, the goal is always zero deaths and nothing the company ever said implied otherwise. Still, they tracked the statistic for every project, including software projects.

Not all of the developers got it (some were too wrapped up in database schemas, business rules, and UI widgets), but it certainly put my work in perspective. My job was to make sure that the software did its job quickly and effectively, enabling the employees to do their jobs, so customers would have power and nobody would die. Not all of our software can make the difference between life and death, but, sometimes, I think maybe developers ought to act like it does.