Your form has successfully submitted

One of our teammates will get back to you soon.

Code Battleship

This article presents the fun and useful game of "Code Battleship" to evaluate the quality of your codebase.

If you’ve been involved in software engineering recently, you’ve probably heard of the "Joel Test" of software. I recently ran into a situation where a prospective client wanted to talk about estimates for building certain features, but without a signed contract wouldn’t give out access to the code base.

Obviously any estimates given would be very approximate, and probably dangerous shots in the dark. However for the sake of entertainment, I decided to play along and try to come up with approximate timelines. I thus came up with a list of questions that I could ask so that I could get a rough idea of the code quality that inhabited the invisible code base. I thought of it as a game of sorts - a Code Battleship, if you will. If enough of the answers came back negative, I envisioned the other party yelling in despair, “you sunk my code base!” Without further ado, here are the questions in Code Battleship:

  1. Do you have a staging environment?
  2. Does the application have automated tests? If yes,
  3. Are they currently passing?
  4. Do you have both integration and unit tests?
  5. Is your level of code coverage above 80%?
  6. Do you use continuous integration? If yes, does the code automatically deploy to a staging environment on successful builds?
  7. Do you have a work tracking system? Eg., Jira or Pivotal Tracker?
  8. Have previous developers used code reviews or pull requests for new code added to the system?
  9. Have you always had a developer with more than five years of experience on your team in a leadership role?

Have you ever played Code Battleship? Let us know in the comments if you have other questions that could contribute to sinking enemy vessels.

Published on: May. 25, 2014

Written by:

Software developer

Justin Leitgeb

Subscribe to our blog

Join our community and get the latest articles, tips, and insights delivered straight to your inbox. Don’t miss it – subscribe now and be part of the conversation!

We care about your data. Check out our Privacy Policy.