3 ms·
Reduce code complexity by restructuring (case study)
- divip 5y agoThis is my case study about how to reduce the code complexity of the one-line text editor with categorical combinators which are explained in the Appendix. Corner cases (~15) are handled by the composition of 5 reusable, independent building blocks. As a bonus, cooperative-editing is supported by default.