Exercise 26. hexdump

You’ve done a warmup with xargs and are now working in the cycle of code then audit. You are now going to try to complete the next challenge with a “test first” approach. This is where you write a test that describes your expected behavior, and then you implement the behavior until the test passes. You are going to be copying the hexdump utility and attempting to match your version’s output to the real version’s. This is where test first development really helps since it automates the process of mimicking another piece of software.

This technique is very useful when you need to write a replacement for a terrible piece of software. A common job in software is to work on a project that aims to replace an older system with a ...

Get Learn More Python 3 the Hard Way: The Next Step for New Python Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.