It seems all implementation (C, Java, Node.js) share the same behavior, except for the print formatting stuff. This print formatting feature could be extracted into a separate thing (with a PIM model and 3 concrete implementation), and the rest of the behavior could be made 100% platform-independent, without any duplication.
It seems all implementation (C, Java, Node.js) share the same behavior, except for the print formatting stuff. This print formatting feature could be extracted into a separate thing (with a PIM model and 3 concrete implementation), and the rest of the behavior could be made 100% platform-independent, without any duplication.