0016 - C++ programming: "Legacy Code" testing and refactoring

Опубликовано: 10 Апрель 2026
на канале: Rhymu's Videos
661
8

This is #16 in my series of live (Twitch) coding streams, working on writing my own web server and service framework in C++.

This stream I continued working on importing some "legacy code", a library names SystemAbstractions. I got through four more parts: NetworkConnection, DynamicLibrary, Subprocess, and Clipboard.

A viewer had a really good suggestion on how to test something like Clipboard, and it worked out really well. We made a shim layer between Clipboard and the underlying operating system, that could be swapped out with a mock for testing.

This refactoring might not be the most fun or interesting, but I need to get through it, to make a solid, well-tested base for my web server. Thank you for sticking with me through this tough part! -- Watch live at   / rhymu8354