Tweetovi
- Tweetovi, trenutna stranica.
- Tweetovi i odgovori
- Medijski sadržaj
Blokirali ste korisnika/cu @james_k_nelson
Jeste li sigurni da želite vidjeti te tweetove? Time nećete deblokirati korisnika/cu @james_k_nelson
-
James K Nelson proslijedio/la je Tweet
New: Why I Enjoy @sveltejs - 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!https://www.swyx.io/writing/svelte-why/ …Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
James K Nelson proslijedio/la je Tweet
One of the most common antipatterns in engineering is what I call The Antipattern Antipattern https://dev.to/gurlcode/the-antipattern-antipattern-4d3k …pic.twitter.com/BsinZsvUc5
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
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:https://github.com/jamesknelson/retil …
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
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 nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
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 nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
If you want to use it without Suspense, just check hasData before accessing data. You can use that synchronously.
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
This is a fun little tool for
#reactjs 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.pic.twitter.com/4nLP13IfUm
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
So I guess what I'm saying is error objects are overrated.
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
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 nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
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 nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
James K Nelson proslijedio/la je TweetHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
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.”
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
James K Nelson proslijedio/la je TweetHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
What if you turned Redux inside out?
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
James K Nelson proslijedio/la je Tweet
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
https://www.reactconf.jp/ Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
James K Nelson proslijedio/la je Tweet
My talk about CRDTs is up! Probably one of the most interesting talks I've given.https://www.dotconferences.com/2019/12/james-long-crdts-for-mortals …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
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 nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
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 nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Looking at everyone's tweet-length summaries of their accomplishments over the last decade is giving me an acute case of imposter syndrome.
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
James K Nelson proslijedio/la je Tweet
Name the file Component.h.ts and look at your import
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoniš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.
たまに日本語

New on Overreacted: Goodbye, Clean Code