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

In Ruby, I prefer exceptions for most errors because they make the error handling more visible and explicitly defined, but if performance is an issue, returning a value (or setting an error on an ActiveRecord model) is much faster than raising an exception.




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

Search: