These are chat archives for FreeCodeCamp/Help

20th
Feb 2019
zootechdrum
@zootechdrum
Feb 20 2019 05:53 UTC
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 2019 06:13 UTC
here is the link to the hub
Niraj Nandish
@Nirajn2311
Feb 20 2019 10:03 UTC
Yesss, i finally got Docker for Windows to install in Windows 10 Home
kinopotato
@kinopotato
Feb 20 2019 10:44 UTC
so, when did everyone stopped writing spaghetti code and how did they manage to do it?
May Kittens Devour Your Soul
@diomed
Feb 20 2019 12:30 UTC
answer is no. and never
Niraj Nandish
@Nirajn2311
Feb 20 2019 12:39 UTC
:cat: loves spaghetti
Daniel
@dkapexhiu
Feb 20 2019 13:51 UTC
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 2019 15:27 UTC
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 2019 15:34 UTC
@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 2019 15:35 UTC
:laughing:
Victor Popescu
@VicPopescu
Feb 20 2019 15:36 UTC
And companies encourage clients to think like that
psyperl
@psyperl
Feb 20 2019 15:38 UTC
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 2019 18:01 UTC
@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 2019 20:24 UTC

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 2019 21:56 UTC
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 2019 22:01 UTC
I'll let that as an exercise for you :)