News for hackers. Stuff that matters.
Re:When you combine two things that are close, but not the same by giraffe_lady on Thursday April 13, 2023 @11:12PM (#35565109)
Yes, the way I phrase this when defending it in review is "these things have different reasons why they would change, despite being the same right now." Thanks Sandi Metz.
Re:When you combine two things that are close, but not the same by hinkley on Friday April 14, 2023 @01:34AM (#35565859)
'Idiomatic' is another good word.

Some people are so addicted to DRY that they want to write helper functions for every 3 lines of code that appear together. Nobody else can figure out what the fuck their code does, but only 3 of them will tell them to their faces.

Re:When you combine two things that are close, but not the same by camgunz on Friday April 14, 2023 @02:30AM (#35566197)
Sandi Metz is a great resource for working through some of the dogmas out there. She's fully bought into OO and design patterns so it's not a situation where an outsider is assailing your whole worldview, and she puts into words what my intuition is about these things super well.