Nowadays more and more developers learn RxJS and use it properly with best practices in mind. But we shouldn't. All those so-called best practices ...
For further actions, you may consider blocking this person and/or reporting abuse
I could smell the junior's developer happiness reading this article
🤣
i could smell the javascript framework expert feeling superior because he knows some tricks.
should be
but really should be
Good article, made me smile
Thank you! Fixed
For a moment I tought you were serious. But when you said no to pure functions I had to stop reading. Not gonna lie, you got me at the beginning.
Haha, same here... at first I was thinking, "this is interesting," then "these ideas are a bit strange," then when I got to the no pure functions part I had to scroll to the bottom to see if it was a joke.
sameee hahah
We have code in our codebase that is like this.. And the people that wrote it were senior developers...
I’m not telling you mustn't do that. In some particular cases, it is acceptable, so hopefully, everything is okay with your codebase 😁
Eh, in the case of our code base it is not acceptable cases. But we are working on fixing the issues :D
Hmm, then, good luck 😉
Is this actually a good one?
Wouldn't this only trigger once the source tries to push a value, so if a value is never pushed the subscription is never garbage collected?
Seems vastly inferior to
Fantastic!! Well done Nikita! :)
There's something I really don't get though. For me the difference between dumb and smart component is that the later doesn't communicate directly with the store or any other services, not that we can't pass down observable.
Ohh you sneaky, you! The pure function one killed me 😅
Nice. But in pipe(takeWhile(this.alive)) should be: pipe(takeWhile(() => this.alive)).
Also, setting that value to false won’t be enough. You must emit another value so the observer can unsubscribe when the cb function returns false.
Thank you! Fixed
pls fix
Also, setting that value to false won’t be enough. You must emit another value so the observer can unsubscribe when the cb function returns false.
too
Smack me as much as you want but I really hate the async pipe
And what is the reason? 😃
psychological, I had weird/torturing issues in older versions of Angular. Maybe I need to try it again :P
I'm still scared someone doesn't get the sarcasm and starts following this 😄
This article reminds me of this :) youtube.com/watch?v=X0tjziAQfNQ
Oh gosh
Haha, nice article. A nice checklist to follow!
I'm just getting started and I spotted the sarcasm. This is a great article for starters, thanks!
Oh!! Thanks! I've a post to recommend to my students!
Thanks!
Best practice that I discovered with RxJS - do not use it at all. It is a flawed attempt at trying to turn everything into a cryptic stream.
kkkkkk man, what a great post. congrats!! in a cool manner you make me see some things about this kind of good practice.
Nice joke 😅
Pure functions and the nested subscribes are hilarious
I like It
OMG!!! I hate you! hahaha i was like who is this kid? he doesn't know what he is talking about, then I read the entire article lol that was funny
I was hating you until the end :D
Marble example is super! Can I use same example in my talk?
Definitely! It'll be awesome 😅
I need an article on good practices with the safe navigation operator for next week <3 Thank you
You had me at never unsubscribe, but was back to my mind at nested subscriptions and polluting the global space