jacebot's recent activity

  1. Comment on Usability Suggestion: Mobile sidebar closing. in ~tildes

    jacebot
    Link
    I don't think what you're asking for is too far off. I believe UX/UI best practice would have the side nav close on navigation/click event. Even if it is on the same page.

    I don't think what you're asking for is too far off. I believe UX/UI best practice would have the side nav close on navigation/click event. Even if it is on the same page.

    2 votes
  2. Comment on Programming Challenge: Merge an arbitrary number of arrays in sorted order. in ~comp

    jacebot
    Link
    The magic that is JavaScript ES6... when working through this, I had a similar real world problem this week, so still rather fresh. Get a messy array => into new array of arrays with groups of 3...

    The magic that is JavaScript ES6... when working through this, I had a similar real world problem this week, so still rather fresh. Get a messy array => into new array of arrays with groups of 3 obj. Fun times.

    • Don't hate on the web dev... we program too. Sometimes.*
    let overallArr = [];
    const arr = [[1,2,3], [3,4,5,], [5,6,7,8]]
    
    function sortArr (current, arr) {
      let currentArr = current;
      let tempArr = [];
      
      for (let i=0; i < arr.length; i++) {
        let innerArr = arr[i];
        tempArr = [...tempArr, ...innerArr]
      }
    
    // Not the most efficient in large sets
    // https://gist.github.com/telekosmos/3b62a31a5c43f40849bb#gistcomment-1739870
      return overallArr = new Set(tempArr.sort())
    }
    
    sortArr(overallArr, arr)
    console.log(sortArr(overallArr, arr))
    
    2 votes
  3. Comment on Programming Challenge: Merge an arbitrary number of arrays in sorted order. in ~comp

    jacebot
    Link Parent
    This is pretty sexy too. 3 lines and done. 2 if you don't count the import. Nice.

    This is pretty sexy too. 3 lines and done. 2 if you don't count the import. Nice.

  4. Comment on Programming Challenge: Merge an arbitrary number of arrays in sorted order. in ~comp

    jacebot
    Link Parent
    Now this is elegant, and mostly readable.

    Now this is elegant, and mostly readable.

    3 votes
  5. Comment on (Yet another what are your favorite) and must-watch TV series? in ~talk

    jacebot
    Link
    Ozark recently got me sucked in. I am fan of Jason Bateman acting and characters. Excited about the new season. Curious about the Mayans MC coming, however, skeptical. Curious to see how Orange...

    Ozark recently got me sucked in. I am fan of Jason Bateman acting and characters. Excited about the new season.

    Curious about the Mayans MC coming, however, skeptical.

    Curious to see how Orange ends as well.

    And I need to watch Mr. Robot. Been putting it off for awhile.

    Also was suggested Fargo (the series - enjoyed the movie) - thoughts anyone?

    Other than that, just awaiting like everyone else on STs3, GoT end season, and so on.

    3 votes
  6. Comment on What are you working on this weekend? in ~comp

    jacebot
    Link
    Learning about PWA's and finding a jump off project to use. Also getting acquainted with ~tildes code base, so I can help with the front end. Don't hate me when I make a change :)

    Learning about PWA's and finding a jump off project to use. Also getting acquainted with ~tildes code base, so I can help with the front end.

    Don't hate me when I make a change :)

    2 votes