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

I can't edit my comment anymore, but I wanted to add some more detail.

Building larger programs is about clean abstractions. What your doing only needs basic functions for abstraction, but when you try to do something larger you'll begin to need/want more ways to abstract your code. Then the differences will become clear.

But, you punted by not actually handling the errors. As others comments show, your example may need more abstraction tools once you try to handle the errors :)




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

Search: