Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dustingetz
on Jan 4, 2016
|
parent
|
context
|
favorite
| on:
Overcoming Intuition in Programming
Writing code against IList instead of ArrayList, or IDatabase instead of PostgresDatabase unambiguously decreases coupling.
Hermel
on Jan 5, 2016
[–]
Not if you explicitely configure the IList to be an instance of ArrayList and expect it to behave like an ArrayList. In that case, just taking an ArrayList is the more honest and more readable option.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: