top | item 36120283

(no title)

JustSomeNobody | 2 years ago

Given a domain, code generally changes similarly. For example: You have an app that interfaces with a scale to weigh widgets. At first you support one scale and so you just write code to solve the problem of reading the weight and sending it to the weight processor. After some time, there is a new scale. You now add some abstraction so that they both report a generalized weight message to the weight processor. When you later have to add a third, because you have that generalization, you can tell a new Junior dev "just follow what the code is already doing" and they should have no problem doing just that and add support for the third scale.

That is enough abstraction.

discuss

order

No comments yet.