We Write a Web Server

Java Case Study, Episode 4

By Robert C. Martin & Micah D. Martin

66 minOct 2014

Knock knock.

Who's there?

No, not yet. Let's do this later in the episode.

No, not yet. Let's do this later in the episode who?

No. Stop. ... Oh rats.

In this episode we change directions entirely; and we announce a contest!

The episode begins by reviewing a big refactoring that Uncle Bob did off line. It's pretty cool, and you aren't going to want to miss it.

Then we announce the contest that you can participate in (See Below).

Then we take the whole project in a brand new direction. We begin to write our own simple web server. We got frustrated looking at all the other web servers out there, and decided it would be a better use of our time to write our own.

Have you ever written a web server? Its simple; and it's fun! Watch how we do it here; and listen to the rationale we present.

And then enter our contest...


We ask you to submit a video showing how you would have executed the refactoring that Uncle Bob did. Show it step by step, and keep all tests passing for each step.

The github repository for the Java Case Study is: https://github.com/cleancoders/CleanCodeCaseStudy

Begin at commit: D33B4, and end at a state similar to commit: 72724.

Put your video into a dropbox or something similar, and send a link to Contest@cleancoders.com.

Micah and Uncle Bob will review the videos and select their favorites to be shown as part of an upcoming episode. We reserve the right to edit any videos we present.