News for hackers. Stuff that matters.

miloszpp

Re:Better RxJS code with pointfree style on Tuesday December 18, 2018 @09:38AM (#18706609)
IMHO, it's a matter of not being familiar with such way of writing code. Once you wrote a few lines yourself, it becomes much easier to read such code.

Anyway, I'm advocating to use it with caution, not in a "pointfree all the things" manner.

Re:Better RxJS code with pointfree style on Tuesday December 18, 2018 @09:34AM (#18706588)
It's possible to use Ramda with TypeScript, although it's not perfect. It actually shows some weaknesses of TypeScript's type system as it's not possible to properly type some functions.
Re:Better RxJS code with pointfree style on Tuesday December 18, 2018 @09:32AM (#18706579)
Sure, pointfree style has been present in RxJS since version 6 but on a different level. The article is about using `pipe` for composing functions that you pass as arguments to RxJS opertators. RxJS's `pipe` is about composing the operators themselves.

RxJS's pipe: `stream$.pipe(map(x => something), filter(x => something)`

The article: `stream$.pipe(map(pipe(something, somethingElse))`

I've made Friendtainer - an app which reminds me to meet with friends often: http://friendtainer.com

Older »