Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
odo1242
88 days ago
|
parent
|
context
|
favorite
| on:
Prefer duplication over the wrong abstraction (201...
I believe they’re referring to callbacks / dependency injection / higher order functions to customize the behavior of a function?
bhouston
88 days ago
[–]
Mostly just function calling to reduce duplicate code. Dependency injection does start to get abstraction costs again. I use it when necessary but it is annoying and costly when I do.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: