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

When did I say I didn't use the convention for namespaces?

I'm talking about simple code structure.

You need a function.

Do you put it in a var or not.

I have nothing against closures or namespaces or object declaration or many of the million other things you can twist objects in js to do.

What I hate is this:

    var checkValid = function(item) {
        return item!= blah;
    }
When it should be:

    function checkValid(item) {
        //blah
    }
Stop accusing me of a position you've made up in your head.


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

Search: