4 ms·
It's worth mentioning regarding the IFoo example that in a single project you can always just find/replace FooBase with IFoo or even FooBaseV2. I feel like a l
by sfn42 3y ago
It's worth mentioning regarding the IFoo example that in a single project you can always just find/replace FooBase with IFoo or even FooBaseV2.
I feel like a lot of people blow this up like it's so e huge problem when in reality this is a pretty trivial refactor.
- lamontcg 3y agoNot if you're writing a library/framework that other people use though. If all you do is consume other people's library/frameworks then yeah, nothing really matters, do whatever you want, refactor at will.
- sfn42 3y agoYeah, that's kind of my point. I agree that api design is important if you're publishing a library, even for internal use - that's why I said "in a single project". It seems to me that a lot of people obsess a bit too much about this stuff in places where it doesn't matter.