James K Nelson

@james_k_nelson

Building and teaching JavaScript at ⚙️ たまに日本語

Tokyo
Vrijeme pridruživanja: svibanj 2010.

Tweetovi

Blokirali ste korisnika/cu @james_k_nelson

Jeste li sigurni da želite vidjeti te tweetove? Time nećete deblokirati korisnika/cu @james_k_nelson

  1. proslijedio/la je Tweet
    27. sij

    ✍️New: Why I Enjoy - Batteries Included - The Joy of Mutability - Sugar Syntax (Two Way Binding, Stores) - Good Docs - Simple Internals - No Baggage - Because I Can I'm not pivoting to Svelte, but I am playing with it. It is a -lot- of fun!

    Poništi
  2. proslijedio/la je Tweet
    17. sij

    One of the most common antipatterns in engineering is what I call The Antipattern Antipattern

    Poništi
  3. 17. sij

    Warning: there's no README yet, no docs, no guarantees. But there's commented types and a few tests. There's also a few small tasks which I'd love some help with. Hit me up in the issues if you're interested:

    Prikaži ovu nit
    Poništi
  4. 17. sij

    Also, if you pull the second argument of .key()... const [outlet, { load }] = resource.key(url) Then you can avoid Suspense waterfalls by imperatively load stuff into cache (among other things)

    Prikaži ovu nit
    Poništi
  5. 17. sij

    If Vue or Angular adds Suspense, it'll work as-is. There's actually nothing React-specific about it. In fact, you can also call outlet.getValue() to get a Promise to the value anyway, which is super handy for SSR 🍒

    Prikaži ovu nit
    Poništi
  6. 17. sij

    If you want to use it without Suspense, just check hasData before accessing data. You can use that synchronously.

    Prikaži ovu nit
    Poništi
  7. 17. sij

    This is a fun little tool for that I'm working on... with no hooks and no components. Because outlet.getCurrentValue().data throws a promise, you can subscribe to it with React's useSubscription() hook – and it'll just work.

    Prikaži ovu nit
    Poništi
  8. 13. sij

    So I guess what I'm saying is error objects are overrated.

    Prikaži ovu nit
    Poništi
  9. 13. sij

    Either you have a response, or you don't. And if you don't have a response, you retry, or tell the user that you won't. And the funny thing is that in *none* of these scenarios do you actually need an error object.

    Prikaži ovu nit
    Poništi
  10. 13. sij

    Random thought: When *getting* data over the network, there's probably only really 5 reasonable ways to handle the response. 1. Is data! Yay! 2. Data is not here, doh. 3. Data is forbidden, fuck. 4. No (sensible) response. Let's retry. 5. Wtf? Let's crash the app.

    Prikaži ovu nit
    Poništi
  11. proslijedio/la je Tweet
    11. sij

    ⚛️📝 New on Overreacted: Goodbye, Clean Code

    Prikaži ovu nit
    Poništi
  12. 11. sij

    Sometimes 350 lines of code take an hour to write. Sometimes they take 3 days. “I have only made this [file] longer because I have not had the time to make it shorter.”

    Poništi
  13. proslijedio/la je Tweet
    11. sij

    To finish first requires first to finish.

    Poništi
  14. 11. sij

    What if you turned Redux inside out?

    Poništi
  15. proslijedio/la je Tweet
    9. sij

    React Conf Japan will be held on March 21, 2020 (JST)! 🎉🎉🎉 Call for Presentation submissions will close on January 19th ✍️ We are also looking for sponsors 🤝

    Poništi
  16. proslijedio/la je Tweet
    9. sij

    My talk about CRDTs is up! Probably one of the most interesting talks I've given.

    Poništi
  17. 9. sij

    Reasons to break the rule: - Functions like React.lazy take a module as an argument, and you don't want to customize the function for each module. Use a default export. - You're importing many files at once, e.g. with a Webpack context. Use a default export.

    Prikaži ovu nit
    Poništi
  18. 9. sij

    Reasons to avoid default exports: - Now you can always export * from './module' - Add exports to files with less worries about naming - No scratching your head for imports... "was that a default or not?"

    Prikaži ovu nit
    Poništi
  19. 3. sij

    Looking at everyone's tweet-length summaries of their accomplishments over the last decade is giving me an acute case of imposter syndrome.

    Poništi
  20. proslijedio/la je Tweet
    29. pro 2019.

    Name the file Component.h.ts and look at your import

    Poništi

Čini se da učitavanje traje već neko vrijeme.

Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.

    Možda bi vam se svidjelo i ovo:

    ·