Skip to content
Katabench
Try free

Split the Escaped Frame Decoder

Hard About 55 min Katabench Pro

A serial protocol decoder mixes framing, escaped bytes, bounded buffering, checksum decisions, and chunk state in one method. Extract a recoverable parser without changing its wire behavior.

The full brief is part of Katabench Pro

Pro opens this kata's brief, its starter code and its grader. To see how the track works first, try Gilded Rose, which is free.

How it is graded

Behavioral tests have to stay green while the grader measures complexity, nesting, and method length from your source.

C# refactoring exercises →

What it practices

Extract class
Move a cohesive set of fields and the behavior that uses them out of an overloaded class into its own.
Extract method
Pull named steps and named conditions out of a long method so each piece does one thing.

Do these first

Related katas