These are chat archives for FreeCodeCamp/Help

20th
Feb 2019
zootechdrum
@zootechdrum
Feb 20 05:53
Hello I need some css help
I cant seem to get rid of the right padding
on mobile devices
Screen Shot 2019-02-19 at 9.25.26 PM.png
zootechdrum
@zootechdrum
Feb 20 06:13
here is the link to the hub
Niraj Nandish
@Nirajn2311
Feb 20 10:03
Yesss, i finally got Docker for Windows to install in Windows 10 Home
kinopotato
@kinopotato
Feb 20 10:44
so, when did everyone stopped writing spaghetti code and how did they manage to do it?
May Kittens Devour Your Soul
@diomed
Feb 20 12:30
answer is no. and never
Niraj Nandish
@Nirajn2311
Feb 20 12:39
:cat: loves spaghetti
Daniel
@dkapexhiu
Feb 20 13:51
Hello! I am getting this error:
dbhelper.min.js:138 Uncaught (in promise) TypeError: Cannot read property 'forEach' of undefined
on this file: https://github.com/dkapexhiu/mws-restaurant/blob/master/js/dbhelper.min.js
psyperl
@psyperl
Feb 20 15:27
yeah reality is people are trying to stop writing spaghetti code after they are unable to read their code years later.. but no matter how hard they tried .. they still end up seeing spaggetti code
Victor Popescu
@VicPopescu
Feb 20 15:34
@psyperl actually I think this "Agile" methodology is part of the spaghetti code... The client is asking for a potato, that later should be a tomato but in the end why is not a house that can fly under water in space
psyperl
@psyperl
Feb 20 15:35
:laughing:
Victor Popescu
@VicPopescu
Feb 20 15:36
And companies encourage clients to think like that
psyperl
@psyperl
Feb 20 15:38
yeah i can see how target can change during several iteration, i also see how engineering debt accumulate after several iterations
kibablu
@kibablu
Feb 20 18:01
@zootechdrum try use chrome debugger and set your website to responsive layout and play around with it ... till it fits your needs
sudipt dabral
@sudipt1999
Feb 20 20:24

Kindly Help me Out !
I am trying to implement something like this
`
function head (){
console.log("HEAD")
/ Some more logic that goes down here then will return function /

return function body(arg){
    console.log(arg);
    function inner()
    {
        console.log("INNER METHOD");
    }
    return 'SOMETHING USEFUL' ;

}

}

let p = head();
p("HELLO BODY")//will print "HELLO BODY"
p.inner()//will give error but how can i implement it !!!!!`

`
Thanks for Help!!!!

Victor
@abeledovictor
Feb 20 21:46
Victor
@abeledovictor
Feb 20 21:56
Thats the theory
I had to turn on my computer to code it up bc it's difficult at the cellphone
let head = (arg) => {
    console.log(arg);
    return (() => {
        console.log('inner method');
        return (() => 'something useful')
    })
}
usage: head(2) logs 2 to console and returns a function
head(2)(); prints 2 and inner method to console
and returns a function
head(2)()()
prints 2, inner method and returns a string : something useful
@sudipt1999
dot notation is for objects only
you CAN assign a key to the function and return that object
Victor
@abeledovictor
Feb 20 22:01
I'll let that as an exercise for you :)