Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Robert Maylie
    @rmaylie9560
    :worried:
    Lily Romano
    @Lilyheart
    :hear_no_evil:
    Robert Maylie
    @rmaylie9560
    😂
    Michael Irwin
    @dcpking_twitter
    Naw! fortran :)
    Robert Maylie
    @rmaylie9560
    nice!
    So I have a recusion question...
    Michael Irwin
    @dcpking_twitter
    go for it Robert
    (again and again and again )
    Robert Maylie
    @rmaylie9560
    the validations when using if statements. How do the 1 (true) -1(false) stop the loop but still retain the value?
    does that question make sense? I worded it weird.
    Lily Romano
    @Lilyheart
    talkin’ fortran?
    Robert Maylie
    @rmaylie9560
    Java script but the process is pretty much the same across languages, right?
    Michael Irwin
    @dcpking_twitter
    You have a function and inside it you're saying "if variable then call me" ? You have to have some way for the variable being used to obtain a value
    Or else you can decide that you'll only go 10 deep (for example) and pass in the depth as a parameter as you invoke then function. Inside, it does its thing and then says "if depth < 10 then { depth += 1; call me(depth)" (pardon the pseudocode
    Michael Irwin
    @dcpking_twitter
    btw, Did that make sense?
    Robert Maylie
    @rmaylie9560
    function factorialize(num) {
        if (num < 0) {
            return -1;
        }
    
        else if (num === 0) {                                       // returns true when "num" hits 0 and breaks? does this hold true to all methods? 
            return 1;
        }
        else 
            return (num * factorialize(num - 1));  //in this case the end equation will be 5*4*3*2*1=120
    
    }
    
    factorialize(5);
    whoops
    \ not //
    Lily Romano
    @Lilyheart
    Are you coming tomorrow @rmaylie9560 ? If so I can walk you thru recursions.
    Robert Maylie
    @rmaylie9560
    i cant make it. i have my brothers graduation.
    Lily Romano
    @Lilyheart
    bummer! Have fun tho.
    Robert Maylie
    @rmaylie9560
    id rather watch paint dry
    but its my baby brother. i have to be there for him on his big day
    Michael Irwin
    @dcpking_twitter
    That looks ok - although equality is "==", not "===", isn't it?
    Lily Romano
    @Lilyheart
    javascript has a ===
    2 == “2” is true
    2 === “2” is false
    Robert Maylie
    @rmaylie9560
    === is the strict operator
    Lily Romano
    @Lilyheart
    what the man said!
    Who asked about consoles in CodePen? What that @rmaylie9560 and @davidjcastner ?
    Michael Irwin
    @dcpking_twitter
    implicit conversion and implicit conversion forbidden.
    Robert Maylie
    @rmaylie9560
    what the woman said!
    caster
    castner
    fat fingers
    Lily Romano
    @Lilyheart
    So we all be blind and there is a dang button that says CONSOLE at the bottom of the screen. /sigh
    I’ll let him know tomorrow.
    Robert Maylie
    @rmaylie9560
    that is super awesome info tho.
    i love chromes dev tools tho
    @dcpking_twitter :laughing:
    Lily Romano
    @Lilyheart
    Oh, I found the conversation. @lantech19446 asked and @davidjcastner already knew about but said it works differently.
    Robert Maylie
    @rmaylie9560
    super dave!
    :laughing:
    Lily Romano
    @Lilyheart
    The advantage to CodePens is that you can share a link to the pen with the console data https://blog.codepen.io/2016/01/27/new-feature-javascript-console/
    new playlist time Rob
    Jonathan Herman
    @lantech19446
    @Lilyheart you should check out a tribe called red
    Robert Maylie
    @rmaylie9560
    ok thats trippy
    Michael Irwin
    @dcpking_twitter
    Hi @Lilyheart, I was looking at starting the javascript course ... do you really need the whole of that huge HTML first? (I coded HTML for about 6 years!)
    Lily Romano
    @Lilyheart
    Depends on what your goal are! If you are just doing it to learn, then just complete what you want to learn!