Y
Hacker News
new
|
ask
|
show
|
jobs
by
lucbocahut
2170 days ago
Abstractions have other purpose than deduplication. They make it easier to reason about your code as well. It might be the smartest thing sometimes to abstract away the first occurrence in a method imho.