Live data from Hacker News

Viewing profile — jasonkillian

jasonkillian

HN member
Joined
Sat, Nov 12, 2016, 8:14 PM UTC
HN karma
141
Public activity
34 items

About jasonkillian

No profile information was provided.

Recent public activity

  1. comment
    Comment #34144202

    Agreed, but it's a pretty big footgun because `useEffect` is often the seemingly easiest way to do the things you list. I've had similar conversations many times with coworkers bef…

  2. comment
    Comment #32489416

    It is a bit more complicated in practice though than "a React component is just a function that rerenders when called". In some ways, the function acts more like a class, and then …

  3. comment
    Comment #31899742

    > TypeScript's type annotations are really a DSL embedded into JavaScript. And they can, and, depending on the problem at hand, should be treated as such. I think this is the key. …

  4. comment
    Comment #30502955

    Happened to see this thread on HN, (and disclaimer I'm an engineer at Hex) very cool project jwithington! Wanted to take a second to address your comment about performance, lqet. A…

  5. comment
    Comment #29811968

    In addition to being essentially a combined "filter" and "map", it's also a "better" filter than filter itself in TypeScript in such that it narrows types much more ergonomically[0…

  6. comment
    Comment #29811771

    Wouldn't recommend doing this - if the original array is of significant length this'll get quite slow because `acc.concat` has to create a brand new array of slightly longer length…

  7. comment
    Comment #28990032

    I don't disagree with you on readability being important or on the value of developer time. It's just that the marginal costs of `memo`, `useMemo`, and `useCallback` are quite low.…

  8. comment
    Comment #28987970

    This is a great article and I agree with it fully. The argument that a lot of popular React voices have made, "React is fast and it's prematurely optimizing to worry about memoizin…

  9. comment
    Comment #23783262

    It's a current WIP idea for the spec: https://github.com/tc39/proposal-temporal/pull/700 Figuring out a name is still part of the ongoing discussion, so this specific case of `Loca…

  10. comment
    Comment #23782510

    I think this is a great proposal and a huge step in the right direction for JS. I am curious though, is there a reason not to just essentially duplicate the Joda[0]/Java[1]/ThreeTe…

  11. comment
    Comment #22996620

    Hooks are great for simple use cases like `useState`, `useContext`, some uses of `useRef`, etc. and can make the code easier to read and reason about (while conveniently working ve…

  12. comment
    Comment #22439735

    I've found js-joda is a good JS datetime library: https://github.com/js-joda/js-joda

  13. comment
    Comment #22439722

    In case it wasn't immediately obvious, there's a Stage 2 tc39 proposal that was spawned from this blog post called Temporal: https://github.com/tc39/proposal-temporal At a glance, …

  14. comment
    Comment #19362145

    For context, this was the most requested feature [0] in the isaacs repo of GitHub requests [1]. [0]: https://github.com/isaacs/github/issues/283 [1]: https://github.com/isaacs

  15. story
  16. comment
    Comment #19214726

    Weirdly enough, both websites use this exact same quote: "This means you'll need to make an API (application programming interface). It's how all your friendly apps talk to each ot…

  17. comment
    Comment #19131640

    > Surely Node.js is going to be looked back upon as one of the worst mistakes in the history of 21st century programming. Why is that? There were dynamically-typed backend language…

  18. comment
    Comment #19119100

    Are you storing a large amount of offline music on an SD card? I've had that cause issues for me in the past. Their guide to fixing issues[0] is generally worth giving a shot. [0]:…

  19. comment
    Comment #19074220

    The difference is subtle (and took me a bit to figure out!). In the article's example component, the component's "main" function gets re-run on every render and a new `count` varia…

  20. comment
    Comment #19074121

    Wow, I really don't know what to think of this article. I have to give Dan credit that every time I thought the code started looking really crazy, he'd say something like: "Admitte…

  21. comment
    Comment #18975762

    Type guards are a useful construct, especially when dealing with data from an API that could come in a variety of shapes. However, if you have control over the data shape, in gener…

  22. comment
    Comment #18700864

    Wrote this article because I was inspired by the amount of data the GitHub API gives easy access to and all the sorts of interesting info that can be gleaned from it. It also raise…

  23. story
  24. comment
    Comment #18280405

    Yes, your experience mirrors mine completely. It's quite difficult to get complex higher-order components working correctly, especially if you're throwing in things like defaultPro…

  25. comment
    Comment #18280364

    Ah, I didn't realize this, very cool collaboration! For those who are reading this and might find it helpful, here's a link to the official blog post on the work: https://blogs.msd…