Live data from Hacker News

Viewing profile — dominic_cocch

dominic_cocch

HN member
Joined
Wed, Jan 16, 2013, 6:20 PM UTC
HN karma
65
Public activity
45 items

About dominic_cocch

Web dev, game dev, product dev. Current hacker @instacart.

@Dominic_Cocch

Recent public activity

  1. comment
    Comment #31926683

    "Orca can capture about 4,000 tons of carbon per year (for scale, that’s equal to the annual emissions of 790 cars). Now Climeworks is building another facility that makes Orca see…

  2. comment
    Comment #12072876

    Very cool. We do something very similar on Instacart's site. Our main Redux store and header component track window size and scroll position so that all components on the site have…

  3. story
  4. comment
    Comment #11188494

    For now we use Rails on the server and a single backbone router for the the client side. This isn't how we want it stay. :) We do have a couple side apps internally using React Rou…

  5. comment
    Comment #11186732

    That is definitely one limiting aspect for some places. We actually have a similar issue, since we're a Rails shop first and foremost. Luckily there are a few tools we can use to m…

  6. comment
    Comment #11186722

    Great point. This has to be the funniest and most confusing bug when you first encounter it! If your list is totally static, an index will do the job. However, we usually end up ap…

  7. comment
    Comment #11186663

    We've slowly been growing our React presence on the site for almost a year now. At this point, we're fairly close to the size of the original Backbone app as far as views are conce…

  8. comment
    Comment #11186655

    This should really only be an issue when the children of an element are all the same type of element and are at the same depth level. For example, this is very common for li elemen…

  9. comment
    Comment #11186580

    The backbone model api was made with totally mutable data in mind. React, on the other hand, only works well with immutable props and some mutable state in the top levels of compon…

  10. comment
    Comment #11186559

    Yes and no, really. We mostly keep our backbone models as props and keep them immutable by pure convention. You really could just call set() on one of them and cause some problems.…

  11. comment
    Comment #11186470

    Yep, it was the actual Flux library. However, we're not totally settled on that choice just yet.

  12. comment
    Comment #11186460

    Definitely agree. In our real code we're much more sensitive of performance. This was just a quick way to show a simple way Backbone can be used with React. I think it'd be interes…

  13. comment
    Comment #9584835

    Whoops! Fixed in the repo now. I can't seem to edit the title of the HN article anymore. Must be past a certain time or something.

  14. comment
    Comment #9584655

    Calling it an MVC may be a misnomer, definitely. I know backbone often refers to itself as MV*, which is sort of funny. :) Thanks for checking it out! I'll put some thought into th…

  15. comment
  16. comment
    Comment #9584171

    Yeah, for sure. I mostly started this to see if I can get a Backbone-like MVC without the heavy dependencies of jQuery/underscore/lodash/etc. The DOM selection stuff is also done r…

  17. comment
    Comment #9584130

    Yeah, I think the example itself is not a great pattern. :) If I were to redo that example, or do another example completely, I'd probably move a lot of that logic stuff into the m…

  18. comment
    Comment #9583647

    Why? - Tiny footprint for mobile networks (~5kb minified). - Extremely fast DOM query/selection engine. No need for jQuery! - Mobile first - no legacy hackery for ie - Great for sp…

  19. story
  20. comment
    Comment #9443315

    Interview Cake is great: https://www.interviewcake.com/

  21. comment
    Comment #9351494

    Loved Masters of Doom. I reread that one every once in a while as sort of reminder. It's an easy enough read that rereading it is fun.

  22. comment
    Comment #6489097

    The site looks great, and I think a lot of people would want something like this. You've mentioned in other comments that you're hoping to get some kind of interest going. That, wi…

  23. comment
    Comment #6335442

    "For example: more men than women in the U.S. are raped" Where does this stat come from? Most stats I've seen on this issue say that about 9/10 sexual assaults are crimes against w…

  24. comment
    Comment #6180254

    There must be some kind of study about businesses that are loyal to employees and loud about that loyalty. How does that affect their bottom line? Do customers/clients choose to do…

  25. comment
    Comment #5826729

    Cool idea and it looks very nice. After scrolling for a bit the first things I wanted to know were "How much?", which you have covered, and "Can I see a demo site?", which seems to…