Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Robert Maylie
    @rmaylie9560
    Search
    Not such, that doesn't make any sense
    David Castner
    @davidjcastner

    @rmaylie9560 yea js has its annoyances, like if you you want to add an item to an array you don't need to assign it, but it you concat two lists you do, get me everytime

    var myArray = [1, 2, 3];
    var item;
    item  =  4;
    myArray.push(item); //works
    item = [5, 6, 7];
    myArray.concat(item): //doesn't work
    myArray = myArray.concat(item); // have to do this instead

    I have wasted many hours at work over this

    Lily Romano
    @Lilyheart
    Imma go to bed. None of it makes sense right now!
    Robert Maylie
    @rmaylie9560
    😕
    Lily Romano
    @Lilyheart
    CONCAT I HATES! EVERYTIME! E V E R Y T I M E I D O I T W R O N G
    Robert Maylie
    @rmaylie9560
    Lol
    Lily Romano
    @Lilyheart
    makes me doom levels of angry :rage2:
    David Castner
    @davidjcastner
    haha me too :rage:
    Robert Maylie
    @rmaylie9560
    Yea, that's a bug waiting to happen
    i wish I could bookmark that
    in the convo...
    David Castner
    @davidjcastner
    I'll put it in a gist
    Robert Maylie
    @rmaylie9560
    ty, hopefully I'll just remember but it's doubtful. I have a memory similair to a goldfish.
    Lily Romano
    @Lilyheart
    apparently you can fork gists! FORKED THAT PUPPY UNTIL IT WAS DONE
    David Castner
    @davidjcastner
    GitHub :heart:
    Lily Romano
    @Lilyheart
    Never a truer statement was made dear. :heartpulse: for all the Git.
    Robert Maylie
    @rmaylie9560
    😂 the name got me
    David Castner
    @davidjcastner
    There are reasons for why javascript works this way, but this has caused me much pain so I won't defend it right now
    Robert Maylie
    @rmaylie9560
    hahahaha :laughing:
    Jonathan Herman
    @lantech19446
    just getting online for the day and reading what I missed, @rmaylie9560 the whole thing with replace() I wonder if this holds true with reference types also?
    Robert Maylie
    @rmaylie9560
    Like a a=b kinda thing?
    Jonathan Herman
    @lantech19446
    no like strings are normally primitives so they would copy their content and then modify it but the assigned value doesn't change, like as soon as you finish that function it goes back to whatever it was where reference types can constantly change. If you're doing replace on a primitive and console.log it immediately you might get an output with the new value but as soon as that function is completed it would resume it's original value where with a reference replace() might do exactly what you want it too
    Robert Maylie
    @rmaylie9560
    Hmm, I'm going to have to read up on that one later. Sounds interesting. Can you show me a quick example and comment the code?
    I might be able to grasp the concept better.
    Jonathan Herman
    @lantech19446
    trying to work one up, new concept for me too from sitepoints lessons
    Robert Maylie
    @rmaylie9560
    Nice! How do you like the lessons? Can you share the link?
    Thanks Jon
    Jonathan Herman
    @lantech19446
    var myPrimitive = 5; var example = myPrimitive; console.log (example); example= myPrimitive + 5; console.log(example); console.log(myPrimitive);
    this is the guy who's like Ben Stein and I started Khan's as well not sure which I like better yet
    Robert Maylie
    @rmaylie9560
    Ahh, ok I see it now. Is either covering any cool projects?
    Jonathan Herman
    @lantech19446
    I've barely gotten into khan, I did a couple hours in sitepoint but it's very dry, I don't know that there's any projects associated at all
    Robert Maylie
    @rmaylie9560
    You check out the new boston yet?
    bucky's pretty funny.
    David Castner
    @davidjcastner
    Complete bs, you have to pay for crappy internet in flight
    if they charge for it, should make it fast at least
    Robert Maylie
    @rmaylie9560
    How much did they get ya for?
    David Castner
    @davidjcastner
    $19.95 for the flight (5hours)
    but I need it because I was planning on doing work
    David Castner
    @davidjcastner
    can't even run npm install :cry:
    Alex H.
    @Alexander-Huh
    @davidjcastner i just installed ubuntu on my external hardrive and now I'm setting up the drivers. to do so i need a atom. which version should I download .ded or .rpm
    also how do I update my kernal, or check what version it is? @davidjcastner
    Robert Maylie
    @rmaylie9560
    Thaaaaaat suuuuuucccks @davidjcastner that's how I feel when Comcast chokes my bandwidth when I'm late on a bill. I thought The open web act solved all that non sense
    David Castner
    @davidjcastner
    @Alexander-Huh you need to get the .deb (debian) version
    @rmaylie9560 npm install finally ran after I edited my dependencies to make it a lighter installation. Still took like 15 minutes to run, at home it's like 2 seconds
    @Alexander-Huh regarding the kernal, if you are having to play around on the kernal or check what version it is, I think you are doing something wrong. If you need to update packages, you can run
    sudo apt-get upgrade
    # followed by
    sudo apt-get update
    David Castner
    @davidjcastner
    Besides I don't know enough about the kernal to feel comfortable giving you suggestions on it
    Robert Maylie
    @rmaylie9560
    all that speed for a low low price of an arm and a leg.