refactoring help from custom initializers
came across an interesting problem today in refactoring ruby’s osc library. i was in the middle the network message parsing section and needed additional functionality from the Message object that would require changing the initializer. since i didn’t want to break all the old code, i added a custom initializer for the new code. this will allowed me to refactor in small steps, keeping all the old code, and let me easily pull the plug on the old initializer when i’ve completely refactored all the sections that create messages.
3 months ago