2
When DRY goes wrong (hackeryarn.com)
you are viewing a single comment's thread
view the rest of the comments
[-] steph@lemmy.clueware.org 1 points 1 year ago* (last edited 1 year ago)

The example is more of an issue with using the right tool for the job: using classes inheritance and overloading would properly deal with the employee/manager/c-suite distinction.

[-] hackeryarn@lemmy.world 1 points 1 year ago

For sure there are better abstractions that would help. I still think that they only help with over abstraction to a certain point. Digging 5 classes deep just to figure out what's actually happening is just as, if not more, frustrating than digging 5 functions deep.

this post was submitted on 11 Jun 2023
2 points (100.0% liked)

Programming

13250 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 1 year ago
MODERATORS