4 ms·
I think about reuse in a couple of different ways. I do not copy paste the same exact code multiple places. Then i use the same code. If the code is not exact
by danielovichdk 7y ago
I think about reuse in a couple of different ways.
I do not copy paste the same exact code multiple places. Then i use the same code.
If the code is not exactly the same, it's not a copy, hence it's not up reuse.
I do not generalize code before 3rd strike and refactor can be applied, and then I still use a lot of time thinking if it might a premature optimization.
I write microservices the same way as i write methods. If i copy and paste the exact same microservice, it might be up for reuse (3 strikes). If it's reuse, the same specifics applies as when programming a method or type.
I would never ever write any new code with reuse in mind. It's arrogant to think one can forsee the future, and that's exactly what writing for rejse is about. Start small, evolve.