Hacker News new | past | comments | ask | show | jobs | submit login

> you just take your delivery out of the truck

Sorry, I accidentally took the delivery out of the email. You made them both have a deliver_to(address) method, you spent most of your comment talking about emails and the computer surely didn't stop my underslept human self from confusing an email address from a physical one.




then you should complain and check what's in your mail. The fact that a delivery method is generic isn't a problem, delivering things from A to B is a generic task. The recipient of the packet handles the content, the deliverer doesn't care what's in the box. deliver_to ought to be reusable, there shouldn't be 50 versions of it.

When we send json over the wire do we rewrite methods globally to make sure we're all in sync about the content? No, you as the message recipient make sure that what you got makes sense and how to deal with it.


> then you should complain and check what's in your mail

Now you've wasted time and resources.

> deliver_to ought to be reusable, there shouldn't be 50 versions of it.

Reality almost never pans out that way.

> No, you as the message recipient make sure that what you got makes sense and how to deal with it.

Indeed! May I introduce you to typed parser combinators?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: