Tweetovi
- Tweetovi, trenutna stranica.
- Tweetovi i odgovori
- Medijski sadržaj
Blokirali ste korisnika/cu @estejs
Jeste li sigurni da želite vidjeti te tweetove? Time nećete deblokirati korisnika/cu @estejs
-
Sooner or later you will realize it's all about functions composition, fp-ts (io-ts, monocle-ts) is well-typed toolset for that. Do not learn fp-ts. Just use pieces you understand. Option is the great start. So simple so efficient. That's almost all.
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Read "Error handling with Either" as "I'm done with try/catch, it's so brittle and magic. I just want to return some error value. But how to handle it? Yay, Either!
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Links: - https://gcanti.github.io/fp-ts/modules/Option.ts.html … Check examples, for example fold - https://gcanti.github.io/fp-ts/modules/Either.ts.html … Check examples, for example fold - https://dev.to/gnomff_65/fp-ts-sequencet-and-sweet-sweet-async-typed-fp-5aop … And then, it's all about pipe, chain, map, fold, etc.
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
I am pretty sure that's almost all you need to know to be efficient with functional programming. You don't have to change how you write software entirely. Just learn basic piping with those type-classes/monads/whatever.
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
How to start with fp-ts? Learn: 1) Why Option is better than null/undefined pipe(getFoo(), O.fold(onNone, onSome)) 2) Error handling with Either pipe(doFoo(), E.fold(onError, onSuccess)) 3) Task/TaskEither (better Promise) 4) pipe, map, chain, sequenceT, sequenceS
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
It looks like a task for typed functional programming. Without null/undefined/exceptions, it’s almost impossible to write code which unexpectedly fails. Why? Because type checker enforces all possible known errors have to be handled.https://twitter.com/BrandonBloom/status/1221988521726005248 …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
TypeScript.fun proslijedio/la je Tweet
OOP versus functional programming I think it's all about contracts/seams among separate pieces of functionality your software consists of. We can have the perfect structure with classical OOP too! But it's very very hard to describe future abstractions now.
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
"Hello darkness, my old friend..." https://web.dev/prefers-color-scheme/ … It's not typed, but highly functional ;-)
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Very true. I even tried GraphQL for local data because of type safety. io-ts is much better.https://twitter.com/garybernhardt/status/1220120319903457280 …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Omg,
@emotioncss is so good. And not only for typed styles.Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
TypeScript.fun proslijedio/la je Tweet
Honestly I just do this and it feels better. More explicit.pic.twitter.com/p7RmSWLwj1
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
TypeScript.fun proslijedio/la je Tweet
Few handy built-in TypeScript types:
Partial - makes all props of the type parameter optional
Omit - omits the specified properties in the second type parameter from the first one
Parameters - gets the parameter types of a functionpic.twitter.com/122NYBh6F9
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
typescript-fun types/validators are tree-shakablehttps://twitter.com/monasticpanic/status/1219635860368449536 …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
TaskEither is a promise which never throws, so we don't have to catch. On fail, it returns Either left.
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
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.