How Do I Use Cake Pattern in T-Code-Engine
T-Code-Engine is a project to build a Japanese IME for T-Code input method, which does: (Direct input) Takes key strokes and generates corresponding Japanese characters (e.g. kd => の and hj => 連) (Kanji composition) Combines multiple Japanese characters and provides combined characters based on rules (e.g. 工 + 頭 => 項) (Mixed conversion) Converts into phrases in Kanji/Kana from Kanji/Kana mixed segment (e.g. き者 => 記者) Also, T-Code-Engine is designed for multi platform, the abstraction is paramount. In this article, we will explore how to use the Cake pattern to achieve abstraction and ensure the ease of testing with working example, rather than classic example with service and repository. ...