Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Writing code against IList instead of ArrayList, or IDatabase instead of PostgresDatabase unambiguously decreases coupling.


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: