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

My pet peeve is code along the lines of:

    if err != nil {
        // handle errors
    }
Or:

    try {
        // something that can fail
    } catch (Exception e) {
        // handle exceptions here
    }
It's usually laziness from the author, but not stating _what types_ of error may occur and how should typically handle them is a plague on documentation and tutorials.


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

Search: