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

I came to say the same thing. I appreciated the blog post but the example was overly contrived. The addToCart method should have been passed the objects the ids were representing and should not have been responsible (even via delegation) for resolving the ids.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: