News for hackers. Stuff that matters.
Re:Polyscope: a C++ viewer and UI for the rapid prototyping ... by dTal on Monday July 29, 2019 @06:36PM (#20560190)
Anecdotally, message-passing OO style is great for code reuse where there's a lot of state to manage - you tie together the state and the functions that operate only on that state, and you get a nice clean reusable module. Inheritance-style, however, I've never found especially useful - it seems like the layers just end up depending on each other in an opaque fashion.

Polyscope, however, seems sufficiently ambitiously abstract that "code reuse" might be too narrow of a concept. It's a great example of the fuzzy distinction between "writing a library" and "inventing a DSL".

There are no comments on this comment yet.