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

Rule #6 increases readability. eg:

    int foo;
    // a page of code
    foo = bar + 5;
    // more code
vs

    // a page of code
    int foo = bar + 5;
    // more code
This keeps everything in one place. It's more readable and easy to follow.

I feel like the topic of inlined code is similar but is not quite the same.



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

Search: