Re:Show HN: @smoores/epub, a JavaScript library for working ...
by smoores on Friday December 13, 2024 @10:26PM
(#42414449)
Thanks, yeah I agree. The vast majority of the code in this library lives in a single class definition. Is it possible to move the implementations into separate files? Totally. Would that make the codebase more legible? I think at the moment, I would argue no, it would actually hurt legibility. If the class needs to grow dramatically, then maybe we’ll need a different approach, but I think this is actually the right thing to do for now!
[ Parent
| on HN ]
There are no comments on this comment yet.