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

>> this code makes no sense: why would you create a whole new oven to make a pizza? in real life...

one can rationalize all sorts, but certain real-life metaphors don't have to map closely to the digital realm.

if my CreatePizza function relies on remote/dynamic code/features (realtime functionality), then it's simpler and possibly safer to re-create than re-use. Depends on the use-case.



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

Search: