Message from JavaScript discussions

February 2018

— I have to know

— 

Sometimes he reads it out, or explains calmly what it should do, and sometimes he just asks "why are you even working?"

— That last one, too funny haha

— There is one style practice that helps me, and also meshes well with the whole speech thing... in a hoisted lang like JS you can do function declaration out of order of dependency, but if you always position them so that nothing above that line is dependent on it, your code structure becomes intuitive and you are always reading downwards. Never scrolling back up

Message permanent page

— 

function ayy() {
lmao();
}
function lmao() {
console.log("ayy lmao");
}

💀

— 

function lmao() {
console.log("ayy lmao");
}
function ayy() {
lmao();
}

👌

— Uhm I do it the other way. We declare requires at the top of the page and our code below so, I write in increasing order of abstraction. Reading should be bottom up

Message permanent page

— Orly

— Ah right

— That's what I do as well

— Oh maybe I did not explain it correctly.... I meant reading the other way around haha

— So you never scroll back *down*