Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Eric Phy
    @SimplyPhy
    i’ll try to find a new challenge for you soon :P
    Eric Phy
    @SimplyPhy
    flexbox is finally really making sense
    just requires some touch that none of the cheatsheet/blogposts show
    Lily Romano
    @Lilyheart
    Eric Phy
    @SimplyPhy
    ha that’s awesome
    no time right now but i’ll definitely give it a go xDD
    that’s seriously so awesome
    Lily Romano
    @Lilyheart
    I love it but haven't found the time to finish it yet xD
    It's been sitting in my bookmarks for months.
    Michael Karpinski
    @karpimpski
    @Lilyheart that website is so cool! adding it to my bookmarks
    Lily Romano
    @Lilyheart
    @lantech19446 did you find flexbox froggy and post it? I can't remember where I found it from.
    it's a great way to learn css positioning
    JBC944
    @JBC944
    hey everyobe
    everyone
    Lily Romano
    @Lilyheart
    Howdy Jimmy
    JBC944
    @JBC944
    I finished my project
    Lily Romano
    @Lilyheart
    woot woot!
    Jonathan Herman
    @lantech19446
    @Lilyheart nope wasn't me might have been phy or dave possibly even rob but it was so long ago I don't quite remember
    Eric Phy
    @SimplyPhy
    ugh.
    Lily Romano
    @Lilyheart
    What’s up Eric?
    What are you…. reacting to?
    Eric Phy
    @SimplyPhy
    i’m stuck on a react/babel error…no idea how to fix it
    ha
    Lily Romano
    @Lilyheart
    So is … babel… not talking to react? How is react reacting? I’m going to go now…
    Eric Phy
    @SimplyPhy
    ha, it just tells me that it cannot read “props” of undefined. Problem is, even when i explicit define the prop, it still tells me that
    i’ll figure it out………………………………….
    Lily Romano
    @Lilyheart
    That’s odd. Time to get even.
    Eric Phy
    @SimplyPhy
    i have a feeling this is really going to be a pain in the ass
    primary issue is that i don’t know react well enough, no doubt
    Lily Romano
    @Lilyheart
    It seems react is like that. In some ways, I’m dreading learning it
    Eric Phy
    @SimplyPhy
    it really feels simple. i feel like i understand it, but i also feel like my app should work :’(
    Lily Romano
    @Lilyheart
    you’ll figure it out and it’ll be some weird esoteric nonsense.
    Eric Phy
    @SimplyPhy
    i was using this to point to props inside stateless functional components :smh: :P
    David Castner
    @davidjcastner
    This message was deleted
    Eric Phy
    @SimplyPhy
    question time!
    I have the following situation:
    function myFunc() {
      myArray.map (function(entry, index) {
        for (var i = 0; i < 9; i++) {
          if (this < that) {
            if (i === 0) {
              return “yay”;
            } else if (i === 1) {
              return “nay”;
            }
          }
        }
      })
    }
    the return value isn’t being returned
    the conditions are being met (console.log confirms), everything is running fine, except return "whatevs”; just isn’t actually returning anything.
    Lily Romano
    @Lilyheart
    maps are more @davidjcastner 's thing. I've only knowledge, I've never actually worked with them.
    Eric Phy
    @SimplyPhy
    same problem when i substitute map with forEach
    okay..i’m gaining insight…and i didn’t put enough information
    there..issue appears to be related to the fact that the inner function is returning that value to the outer function, but then the outer function doesn’t return it
    Lily Romano
    @Lilyheart
    oooh i see whatcha mean.
    Eric Phy
    @SimplyPhy
    yup got it working :D just had to do this:
    Lily Romano
    @Lilyheart
    /drumroll
    Eric Phy
    @SimplyPhy
    function myFunc() {
      var supaFreaky;
      myArray.map (function(entry, index) {
        for (var i = 0; i < 9; i++) {
          if (this < that) {
            if (i === 0) {
              supeFreaky =  “yay”;
            } else if (i === 1) {
              supaFreaky =  “nay”;
            }
          }
        }
      })
      return supaFreaky;
    }
    Lily Romano
    @Lilyheart
    That is one way! woot!
    does this work?
    function myFunc() {
      return myArray.map (function(entry, index) {
        for (var i = 0; i < 9; i++) {
          if (this < that) {
            if (i === 0) {
              return  “yay”;
            } else if (i === 1) {
              return  “nay”;
            }
          }
        }
      })
    }
    This message was deleted