Scott Becker's Blog

Tech startup experiences and lessons learned

If I were to make an entrepreneurship potion, it would have:

with 2 comments

The drive to solve real problems for other people, a sense of urgency to solve those problems ASAP, a healthy irreverence for how things are done now, creativity to find a better way, self-confidence to disregard naysayers, and ultimately the mental endurance to outrun the rare few who chase your idea.

Written by scottb

March 3, 2013 at 7:17 pm

Posted in Uncategorized

Video #3: My overview of a virtual screen Schrödinger completed on Amazon

with 2 comments

Written by scottb

October 26, 2012 at 9:11 pm

Posted in Uncategorized

Video #2: An interview with me and TNW

with 3 comments

Written by scottb

January 18, 2011 at 7:24 pm

Posted in Uncategorized

Engineer Tip #1: Software Architecture Links

leave a comment »

Written by scottb

December 16, 2010 at 8:11 pm

Posted in Development

Video #1: Advice for beginning entrepreneurs

with 6 comments

Here is a talk I gave to college students in Mansfield, PA.  It discusses my startup history and a framework for founders interested in B2B to figure out what product/service to build.

Video can be found here

Written by scottb

October 2, 2010 at 2:33 pm

Posted in Uncategorized

Startup Tip #3: Testing. Just Do it™

with one comment

Why Test?

ugghh! Testing… so lame.  Do we really have to do this?!

But you know what sucks more than testing:

  • Losing customers & partners after a massive outage
  • Having to figure out what brought your system down at peak while clients and partners are yelling at you (aka debugging).
  • Finding out too late that your last release has a huge memory leak and spending days constantly restarting downed servers.

I have learned the hard way how important testing is.  Lets just say… that I didn’t test a production push in my early days and… brought down a whole site for a few million people for an hour.  Oops, there goes that partner. :-(

If customers can be affected by the code, it needs to be tested thoroughly.

How to Test

Here are all the tests that are worth your time in the long run (in chronological order within a dev cycle).

  • unit tests:
    • Answers: Does this function work?
    • Besides catching bugs, unit testing is for your fellow developers to understand your code.
    • It’s also a quick memory aid if you have to come back to your own code in 2 months.
    • Aim for at least 70% code coverage.
  • integration tests:
    • Answers: Does the business logic of this feature work?
    • Here use cases from product specs are converted into automated tests.  These tests should exercise code from as many components as would be realistic on a production system (e.g. UI logic, backend logic, and database logic).
    • Sample bug that would be caught:  “The UI team called a field ‘foo’ but the backend assumed it would be ‘Foo'”
    • Integration tests should be clear enough for the product manager to read through.
    • To run quickly and with minimal setup, integration tests should be ran in a single process.  e.g. use sql lite through mocking instead of connecting over tcp to a real database.  (see mock objects and dependency injection)
  • smoke tests:
    • Answers: Does the server boot?  Does a basic request go through without throwing an error?
    • This test (often manual) is a quick sanity check before handing a feature off to a dedicated QA team.  Trust me, you will piss off your QA team if you say you are done and the server won’t even start.
  • code reviews:
    • Answers: Was proper testing done? Were coding standards followed? Where should the QA team be most concerned, especially around performance?
    • Code review can become a heated topic (see points #8/#9 from this pdf).  As lame as it sounds, I believe its critical to maintain a positive culture that more bugs found in code review generally means that a developer’s task was more complex.
    • Suggested Tool:  Review Board
  • ui / backend manual testing:
    • Answers:  Does the feature work?
    • Here you run through  use cases by hand on a clone of the production system (aka a staging stack):  using the UI and making requests.  Do you get the correct results?
    • These are essentially a repeat of integration tests.
    • UI testing automation:  If you are confident that parts of your UI layout won’t be changing soon, go ahead and build automated tests for them with selenium.
  • system testing and load testing
    • Answers:  Does the new feature work after a long period of load?  Do we have a memory leak?
    • Here you set up a staging stack and try to simulate the real world as much as possible using the feature.  The goal is to leave the feature running smoothly for a few hours.
    • Replay production traffic or a set of traffic designed to test specific features.
    • I recommend having a big script that populates your database with an object to be affected by each core feature.  For example, at Invite, our test script would generate campaigns that should only serve to US traffic and campaigns that had specific dollar budgets.  After you run traffic, run through a saved check list of what the system should look like if old and new features are working properly.   At Invite, this meant that campaigns didn’t go over budget and served to the correct geographies.
    • Watch out for rapid rates of memory growth (aka memory leaks)
    • Don’t forget to review error logs post testing.
    • Suggested Tools:  apache benchhttperf, something custom to log and replay traffic (twisted makes building this easy)
  • fuzz tests (aka negative tests):
    • Answers: Do lots of malformed requests bring down the system? (Hint: they shouldn’t)
    • Verify that malformed requests are logged gracefully and don’t bring down the system.  For low latency systems, you likely don’t want every error to be written to disk as this causes lots of lost cpu time to IO operations.
  • performance test:
    • Answers:  Has performance degraded too much in this release? (Will serving costs get too high?)
    • Replay a repeatable set of traffic.   It can be custom or a replay of production traffic.  The important part is that its the same set of requests used in each release for comparison purposes.
    • Suggested Tools:  apache bench, httperf

Continuous Integration (CI):

  • The sooner you catch bugs in the development process, the easier they are to debug and fix.  e.g. you know immediately which commit is the culprit of a breakage.
  • Suggested Tool: Hudson

Who should be testing what?

Unit tests through code review (listed above) should be done by the development team.

“ui / backend manual testing” and down can be done by a dedicated QA team.  Product managers should be involved in the UI / backend manual testing step.

What do you automate? Unit, integration, and some UI tests should go into your CI system.  System, fuzz, and performance should leverage scripts but are tough to automate and run with CI.

Written by scottb

September 17, 2010 at 10:45 pm

Posted in Development

Startup Tip #2: Talk to people early, talk to people often

with 5 comments

While, and more importantly before, you “release early, release often“, talk to your customers, advisors, and partners early and often.  This is a great way to prevent yourself from building the wrong thing.  Coding is hard, talking with people is easy.  [Though, many engineers might argue the opposite.  :-)  ]

Customers:  Pitch customers your ideas and get their feedback.

  • Will they pay for the new product?
  • Which features could they live without?
  • Try to have a basic demo/walk-through so that everyone can see what you are thinking.  White boarding works too.
  • Be sure to talk to a decent number of potential clients;  Early on, you don’t want to waste time building features that only one client will use (of course, eventually, you may want to do so for your biggest clients).

Advisors:  You need a solid set of experts to bounce ideas off of.  People who have been where you want to go.  You would be surprised just how friendly and helpful people can be, especially when you give them a piece of equity.  [I’d like to take a moment to thank David Brussin, Brian O’kelley, and Mike Nolet;  These guys are fantastic advisors on the product / management side].

Strategic Partners:  Be sure to get your partners on board with what you are doing.  You don’t want to develop something only to find that you can’t get access to a critical relationship.

Vendors:  If you can pay someone (a reasonable price) to supply a component of your system, don’t build it!  Oh boy are you going to save time.

  • Try to lease/pay monthly and avoid long term contracts off the bat;  You may want to drop the vendor in a few months.
  • Be very cautious though if you plan to rely on an early stage startup for something… they could shift their product focus and leave you stranded.

At Invite Media, we lost a year of work because we didn’t talk enough.  We iterated in a bubble and essentially developed a product without talking to a significant sample of  potential customers and critical partners.  We finally did figure it out though and shifted the product to something customers wanted.  Josh Kopelman compared our journey to a heat seeking missile.  I must admin that initially, we even made the mistake of developing with a single client in mind.  We lost time working on features that only a single client ever used.

Written by scottb

September 6, 2010 at 10:49 pm

Posted in Product Management

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: