Showing posts with label lean startups. Show all posts
Showing posts with label lean startups. Show all posts
Tuesday, June 30, 2015
Lean advertising for startups
My friend (and STAQ advisor) Brent Halliburton is writing a book called Lean Advertising for Startups, and he's running a Kickstarter campaign to support it. I've known Brent for a long time and he is an expert on advertising, so this is going to be a really useful book. It fills a hole in startup literature opened by the promise of books like The Lean Startup, which encourages businesses to experiment and learn what works while avoiding waste. I don't think anyone since then has written extensively about what how to actually do this in practice when you don't have a huge budget, using currently-available technology. That's where Brent comes in! I backed his project and hope everyone else does too!
Tuesday, November 5, 2013
Staying fast and good when making enterprise software
My startup Staq builds enterprise software using the techniques I've learned from building consumer web apps. As we bring more customers on and our revenue increases, we have more to lose when there's a bug in our code, and there's pressure to revert to a more traditional development process where the developers have less control. Specifically we're debating whether to move away from our current fast-paced "manual continuous deployment" process (where we're pushing code throughout the day, every day, and getting immediate feedback) to a more traditional commit-review-QA-release cycle. I have pretty strong feelings against going in that direction that I wanted to document here.
I know from experience that a process like that will inevitably slow us down, which we can't afford during this phase of hyper-growth. It can produce a boring, toxic work environment in the long run. Code you wrote today doesn't end up getting in front of a user until next week, and you've already forgotten the context to explain why you wrote that code the way you did. When there's a bug, you have to start from scratch when figuring out the problem. Feedback gets delayed, if you get it at all.
So how we stay fast while keeping the software quality high? How do we stay fast and good?
I intend to establish a core value at Staq where we never, ever stop deploying. We make software at such a high level of quality, and our cluster immune system is so awesome, that it's nearly impossible to kill the app. When defects occur, they are so obvious and so easy to correct, that users rarely notice the problem.
In the early days there may be times when we have to compromise on this value. When that happens, I want it to feel like an ugly compromise. I want the situation to become a sign that we need to improve our systems to get back to the platonic ideal of Always Be Deploying. ("Coffee is for committers!")
Here's a partial list of strategies we came up with to make this work, most of them drawn from the lean startup movement:
- Work in small batches: smaller changes are less likely to cause a disruption, and are easier to pinpoint when they do cause problems.
- Don't take shortcuts: skipping tests and hacking things together ultimately add unacceptable risk and technical debt.
- Practice five whys/root cause analysis: don't make the same mistake twice; gradually develop a cluster immune system
- Expect 100% unit test code coverage, backed by appropriate integration and feature tests: catch problems as early as possible
- Setup a continuous integration server: we have too many modules for any one developer to test all of them at once, so this server will become a backstop, alerting us when there is a problem in one of our modules.
- Use Feature flags: while we are testing new features, hide them from users until they are fully baked.
- Build staging environments that make it easy for developers to double-check their work
- Since we're on Heroku we plan to use their awesome pipelines lab for this
- We can also fork our database to create a sandbox for features that depend on database changes
- This should never be construed as a required step before code can be released to production
- Code reviews
- Two times a day I review every commit in our system, really helps spot issues before they become problems
- Build informative, actionable alerting systems
What else should we add to the list?
Saturday, December 11, 2010
The OtherInbox Pivot
We turned a sharp pivot this year at OtherInbox, shifting away from the product I initially built (now called Defender 1.0) to a newer, easier-to-adopt product called Organizer. I had a lot invested in that product; I cut my teeth in the startup world while building it. We worked hard to write the code and I even dressed up as a superhero at SXSW to promote it. I gave a lot of technical talks about the technologies we used, and I really loved the whole process, but the fact is we could not build a sustainable business with Defender.
I'm really proud of us for pivoting to Organizer and don't feel the least bit bad about it (though I am sorry for anyone inconvenienced by the need to upgrade to our Google-hosted alternative, called Defender 2.0 - it really is a lot better for everyone in the long term, though).
Josh Baer gave a great explanation of how we reached this conclusion which I think really captures the decisionmaking and guesswork of entrepreneurship:
The good news is, Organizer is doing really well and we're making it better every day! Check out the full post; it's a great case study!
I'm really proud of us for pivoting to Organizer and don't feel the least bit bad about it (though I am sorry for anyone inconvenienced by the need to upgrade to our Google-hosted alternative, called Defender 2.0 - it really is a lot better for everyone in the long term, though).
Josh Baer gave a great explanation of how we reached this conclusion which I think really captures the decisionmaking and guesswork of entrepreneurship:
We had to pivot and focus our attention on Organizer, even though Defender was our first love.
It took too long
Nobody wanted to hear this. I certainly didn't want to admit that the "great idea" we started with was not going to be successful. We probably should have began this process six months earlier than we did but it was hard to swallow.
That put us in a situation where we had more than 500,000 users signed up for Organizer and less than 20,000 for Defender. Only about 1000 were paying $20/year. Yet Defender was about half of our code base and 80% of our customer support issues. It was hard to put many resources into improving Defender because 95% of our users were using Organizer. Yet everyone on the team believes in Defender and uses it ourselves. It hurt the morale of the entire team to see a product stagnate from lack of attention. We needed a way to combine our resources so that all of the effort we put into the product can be benefit both Defender and Organizer users and so that we could deliver a more reliable service.
The good news is, Organizer is doing really well and we're making it better every day! Check out the full post; it's a great case study!
Wednesday, August 11, 2010
Why You Might Not Want That Cybersecurity Job
Update: I receive occasional inquiries for cybersecurity career advice because of this post. I haven't worked in this field in years, so I recommend you read this advice if you're trying to get a cybersecurity job.
Cybersecurity, while offering lucrative job opportunities, might not be an ultimately rewarding career for Maryland technologists. I worked in this sector for about eight years as a military officer, government civilian, and government contractor in a variety of different roles, and here's what I want to say about it.
Maryland's business press, government officials, and various tech organizations have lately been enthusiastically banging the gong for cybersecurity. I can appreciate why - there's a lot of money at stake, and a lot of it comes from Maryland's foremost benefactor, the federal government. This is a recession-proof, guaranteed-to-grow industry, and Maryland is already home to many successful cybersecurity companies like Sourcefire. The government and private companies employ many thousands of people and contribute many millions of dollars to our tax base.
So it makes sense for our government to be pursuing these opportunities, but does it make sense for you, Maryland hacker? Here are some things to consider; these are obviously generalizations extrapolated from my experience. Feel free to leave comments if you feel this is a gross distortion.
UPDATE 8/16/10: Please check out @NetSecGuy's post where he further elaborates on these issues.
POSTSCRIPT FOR MARYLAND GOVERNMENT AND BUSINESS LEADERS
I applaud you for positioning the state to take advantage of the "cyber doom boom". I'm sure it will help many of my fellow citizens in the short term. But I wonder how much wealth you think cybersecurity is ultimately going to create in Maryland, especially if it accrues to big consulting companies like Booz-Allen that aren't even based here. Also, what's going to happen when this sector matures, when Internet security gets better, and spending declines? Who's going to fill up those office parks and abandoned SCIFs?
I implore you not to neglect other parts of Maryland's Internet tech economy, because it's product companies like Advertising.com, BillMeLater, Millenial Media, Localist, Ipiqi, Common Curriculum, Figure53, Replyz, Deconstruct Media, and a bunch of others I can't think of right now that are building a new, sustainable post-industrial base in our state.
Cybersecurity, while offering lucrative job opportunities, might not be an ultimately rewarding career for Maryland technologists. I worked in this sector for about eight years as a military officer, government civilian, and government contractor in a variety of different roles, and here's what I want to say about it.
Maryland's business press, government officials, and various tech organizations have lately been enthusiastically banging the gong for cybersecurity. I can appreciate why - there's a lot of money at stake, and a lot of it comes from Maryland's foremost benefactor, the federal government. This is a recession-proof, guaranteed-to-grow industry, and Maryland is already home to many successful cybersecurity companies like Sourcefire. The government and private companies employ many thousands of people and contribute many millions of dollars to our tax base.
So it makes sense for our government to be pursuing these opportunities, but does it make sense for you, Maryland hacker? Here are some things to consider; these are obviously generalizations extrapolated from my experience. Feel free to leave comments if you feel this is a gross distortion.
- Cyber defense is often the opposite of a creative activity; in many of these jobs you're going to find yourself acting as an enforcer, a mere gatekeeper. You'll be telling the creative people in your organization all the things they can't do or aren't allowed to have. Often you'll be restricting them not because of policy reasons but because it's too hard to figure out how to allow them to do what they want within the regime you are enforcing (Naturally this does not apply if you work for a company that builds the tools the enforcers use) or because it's just easier to say "no".
- In classified settings, you are severely restricted in the sources and kinds of technologies you use. You'll be leaving your smartphone and your iPad in your car or in a locker outside the SCIF. You won't have admin permissions on the machine you're working on. Forget installing Chrome with the latest extensions, you'll be lucky to get version 2 of Firefox! Or you might not have access to the Internet at all! Also, forget about telecommuting or riding your bike to work; your job will be in a well-defended federal facility or an anonymous office park in the suburbs.
- Because cybersecurity is so tied to "the enterprise", you'll almost certainly be living in Microsoft land, which may or may not be a problem for you.
- Many of the government organizations in this field are gigantic, top-down, and super-hierarchical. You will made to turn as a soulless cog in a giant machine. There are plenty of smaller, more enlightened companies out there, of course, but the highest paying jobs will probably be offered by big contractors.
- The federal government has crazy monopsony power over this sector. Besides the usual and expected bureaucratic games you'll endure, if you work for a private company that does much business with the government you are going to see some brutally depressing market distortions that arise from this monopsony. You may find yourself working on a product or a program that nobody in your client agency cares about, or wants to succeed, except that they need to spend up their budget dollars so Congress doesn't take the money away next year. Or you might find your job in limbo because the sales cycle for getting government contracts is so long, and it can take forever for the company to actually have money in hand. There's some truth to the myths about the Pentagon spending $10K on toilet seats - it probably does cost about $9950 in sales salaries to sell a $50 toilet seat to the Department of Defense!
UPDATE 8/16/10: Please check out @NetSecGuy's post where he further elaborates on these issues.
POSTSCRIPT FOR MARYLAND GOVERNMENT AND BUSINESS LEADERS
I applaud you for positioning the state to take advantage of the "cyber doom boom". I'm sure it will help many of my fellow citizens in the short term. But I wonder how much wealth you think cybersecurity is ultimately going to create in Maryland, especially if it accrues to big consulting companies like Booz-Allen that aren't even based here. Also, what's going to happen when this sector matures, when Internet security gets better, and spending declines? Who's going to fill up those office parks and abandoned SCIFs?
I implore you not to neglect other parts of Maryland's Internet tech economy, because it's product companies like Advertising.com, BillMeLater, Millenial Media, Localist, Ipiqi, Common Curriculum, Figure53, Replyz, Deconstruct Media, and a bunch of others I can't think of right now that are building a new, sustainable post-industrial base in our state.
Wednesday, November 11, 2009
Lean startup tools for Rails apps
A few months ago I was invited to dinner with the Geeks on a Plane crew when they stopped in Washington, and had the opportunity to meet one of my heroes, Eric Ries, author of the Startup Lessons Learned blog. His descriptions of lean startup techniques and philosophies have had a big influence on the way I design and build software.
Eric asked me what specific tools Rails developers could use when building a lean startup. Here's a revised version of what I emailed in response, garnered while building OtherInbox and other Rails apps:- First and foremost, I find Rails itself to be very useful for building a product for a lean startup; the expressiveness of Ruby and the conventions of Rails help developers more quickly build a minimum viable product. I'm still able to surprise people who have worked with me for awhile with how quickly I can turn their feature ideas into
something they can play with and show customers. - For continuous integration, like many Rails shops, we use CruiseControl.rb - it's easy to install and customize, but I don't think people are especially enamored of it. But it works. Two very promising alternatives to rolling your own CI server are Devver and RunCodeRun. I've tried both but our app has grown too complex for either of them (we use a lot of gems and have a pretty customized test environment). For Github users, RunCodeRun exposes a post-commit hook so the tests run automatically after every commit which is pretty useful.
- Speaking of Github, I'd love for them to implement pre-commit hooks, because then you could prevent developers from making commits any time the build is broken, which prevents people from ignoring problems in a large code base and just tunneling on building their one little feature. Right now if you want to implement this, you need to setup your own source control repository that can talk to the continuous integration system.
- To monitor exceptions, we use the excellent Hoptoad app. This tool adds a lot of context to bug discussions, because nonprogrammers can reference the exact Hoptoad URL containing all of the information a programmer needs to fix a bug (including backtraces). Because it has an RSS feed, one could also use "Unresolved Hoptoad Errors" as a metric influencing the continuous deployment system. If a release goes out and suddenly there are new errors, that's a sign that the batch was bad and needs to be reverted. There's a drop-in Rails plugin but this service could be used with any language.
- There are two A/B testing plugins for Rails: 7 Minute ABs and A/Bingo. I haven't used either and am not sure there are any better than rolling your own. Update: Charlie Park in the comments mentions the new plugin Vanity which came out just after I wrote this.
- There are several good unit testing frameworks for Rails, each with their own devotees. What comes with Ruby and Rails is plenty good enough but some people like the greater expressiveness afforded by things like Rspec and Shoulda. For my next product I'd like to try Shoulda because it uses Ruby's built-in test facilities (making for one less dependency to worry about, as is the case with Rspec) and because I really like the examples I've seen on the Thoughtbot blog.
- We love Cucumber for higher level testing. When coupled with Webrat, which simulates a real browser, you get a pretty nice mechanism for exercising the entire app in a test environment before deployment. Webrat even has a Selenium adapter, so you actually can run your tests inside of a browser to make sure all is well before deploying a change.
- This isn't Rails-specific, but we use SimpleDB for dumping a lot of important metrics data, like performance measurements, which we then turn into metrics. This keeps us from having to hit our database too much. The RightAWS gem makes interacting with SimpleDB pretty easy.
- For our metrics we mainly use Graphite, the graphing and analysis system open-sourced last year by Orbitz. Our whole team is falling more in love with it every day.
- New Relic has a nice plugin for Rails that reports all kinds of useful data to their service, which could become part of a cluster immune system for Rails apps. They measure average responsiveness and compute an aggregate statistic called Apdex which can be a good indicator of site health (at minimum, any significant changes to Apdex should be investigated, and they will email you alerts about such changes).
- Capistrano is still the standard way most developers are deploying Rails apps (but also check out Vlad the Deployer), but I think there's an opportunity for someone to build a Ruby library to facilitate continuous deployment that would work better than Capistrano. It would definitely be built using Rake like Vlad does.
- Update: I haven't used Heroku, but as Ryan points out in the comments it definitely belongs on this list as a compelling, get-up-and-running fast deployment platform.
Subscribe to:
Posts (Atom)