Тёмный
No video :(

The perfect use case for RxJS... violins? 

Joshua Morony
Подписаться 75 тыс.
Просмотров 8 тыс.
50% 1

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@JoshuaMorony
@JoshuaMorony Месяц назад
Can I entice you to join my weekly newsletter with a cool combineLatest trick I'm sending out tomorrow? mobirony.ck.page/4a331b9076
@asyncpipe
@asyncpipe Месяц назад
RxJS is addictive. Since I got used to working with it and writing declarative code, I don't want to go back to my old ways
@JensChristianLarsen
@JensChristianLarsen Месяц назад
I have been using RxJS in my cello and lyre apps for years and this video inspires me to migrate my violin app as well. Thanks for sharing!
@JoshuaMorony
@JoshuaMorony Месяц назад
I love that this video actually ended up being relevant to someone in a very literal sense lol
@PraiseYeezus
@PraiseYeezus Месяц назад
@@JoshuaMorony lol I don't know how I ended up here because I have never liked RxJS, but I'm working on a webapp for playing piano and this has me thinking too. Rare win from the YT algorithm
@andrewg2998
@andrewg2998 Месяц назад
This is great because I am sick of seeing people use the same form examples for teaching me rxjs.
@raulrothschild5876
@raulrothschild5876 Месяц назад
Watch the video from Ben Lesh Team Lead from RxJS, `Complex features made easy with RxJS`. Its also a good
@BrandonRobertsDev
@BrandonRobertsDev Месяц назад
Super cool use case!
@kalysosmon
@kalysosmon Месяц назад
I'd name it RxJS mandolin. Violin and mandolin have the same GDAE tuning. But a mandolin has frets and a violin is fretless which allows to play microtonal things. The virtual solution above generates exact notes from chromatic scale which makes it a mandolin instead of violin.
@yohaneskustiadi9807
@yohaneskustiadi9807 Месяц назад
Very Awesome use of RxJS. From what I've seen, many people find using RxJS challenging. Personally, I don't use RxJS in my web projects because hooks usually is enough. But I do use RxJava in all my Android projects. It's very good for handling forms, user input, and API calls. UniRx for Unity Game, very very useful for object update and inputs. While I can't say RxJS is exactly the same as RxJava or UniRx. The problem I can think of are that it might be overkill for some projects
@JoshuaMorony
@JoshuaMorony Месяц назад
Personally I never see it as overkill, I find it the simpler solution (versus not having RxJS or any alternative) in any app where any state changes asynchronously (which is pretty much always) - I find not including RxJS the harder option, so I never see it as overkill.
Месяц назад
Brilliant! I think RxJs helps a lot with complex business logic. Thanks!
@dopeshots9687
@dopeshots9687 Месяц назад
Josh, we know you are rxjs god. But please make a rxjs course where you explain how to think reactive, what mindset we should have in your awesome style. So that we humans could reach upto some level.
@deadlyecho
@deadlyecho Месяц назад
That was dope 🔥
@TheSaceone
@TheSaceone Месяц назад
cool video editing mate
@bancamilleri1546
@bancamilleri1546 Месяц назад
Great video, wish I could get access to the code though so I could go through it at my own pace.
@djglxxii
@djglxxii Месяц назад
Based on my experience, the problem with RxJS is that when a team includes junior developers or developers with little RxJS experience, they can create significant issues and introduce challenging bugs that are difficult to resolve later on.
@JoshuaMorony
@JoshuaMorony Месяц назад
This is certainly a problem, and a counterpoint I hear a lot to using RxJS, but personally I don't think it make sense to list this as a con for RxJS. To me it feels similar to putting devs who don't know TypeScript on a TypeScript project and being unsatisfied with the resulting typing issues. If a team decides to use RxJS then they should also invest into the training/hiring for their devs to understand RxJS.
@adambickford8720
@adambickford8720 Месяц назад
I'm a dev w/decades of experience and will do the same in a C codebase.
@shustypl
@shustypl Месяц назад
I understand that RxJS requires some practice, a change of mindset and just learning. But I don't understand the complaint about its difficulty. It's simply one of the key skills to Angular. It's not that difficult at all, any course teaches this skill pretty well from scratch. You just spend, for example, 10h reworking some course and practical tasks and you just know how to RxJS. The path to learning is really easy, you just have to spend some hours and it is impossible not to learn. Of course, later it's a matter of practice and experience, but no one becomes a senior developer without learning and experience.
@armynyus9123
@armynyus9123 Месяц назад
I think A"I" is a gamechanger here. It makes the entry for noobs so much easier, compared to looking at 250 operators w/o a clue. I'm not saying copilot is doing the right thing always but the entry and the test samples for juniors to play with use cases they specified in plain english is insanely useful.
@JoshuaMorony
@JoshuaMorony Месяц назад
@@armynyus9123 this is a good point for the RxJS learning journey - from what I've seen ChatGPT is usually pretty good at recommending operators for scenarios, and also just generally is quite good at answering conceptual questions
@Billiam112
@Billiam112 Месяц назад
Yeah, imagine doing this without RxJs.... Wouldn't even know where to start.
@ommo289
@ommo289 Месяц назад
awesome video. how can we get a code for this app?
@JoshuaMorony
@JoshuaMorony Месяц назад
This one is in a private repo but basically all the code for the violin stuff is shown on screen
@kencho564
@kencho564 Месяц назад
so you add a huge dependency even though you can do the same without it and make your load time slower? sounds like a perfect choice for a JS dev
@cedi2929
@cedi2929 Месяц назад
I can of course understand that you are trying to justify RxJs. But what we mean by "everyday" usage is really just making a request and then doing something with the response not much more is needed. Sure it's nice to tap into observables via Reactive Forms and then make your RxJs magic there but you can do all that without RxJs see Vue.js. We have many developers who have to familiarize themselves with (Nest.js + Angular) => Rxjs - everyone always has difficulties at the beginning. The big problem is that you have to know a lot and understand it well to be able to use it properly. That alone is the reverse-USP of RxJs
@JoshuaMorony
@JoshuaMorony Месяц назад
The positioning of a virtual violin being a common scenario is tongue-in-cheek, but I'm still of the view that RxJS is useful for mundane things - even things that look like just one off requests to load data. RxJS ultimately is good at handling things that happen over time, and that's exactly what happens in an app (I would say perhaps that's an entirely what an app "is" - state changing over time via events). Even something like a request to load data for a page often isn't just a once off request - assuming an SPA app here, what if the user wants to refresh that data? filter the data? go to the next page? These are events that change that data over time. What if we want to derive something else from that page data (maybe a "total items" or something) that should react to the page data changing? I won't disagree that learning RxJS is hard, but RxJS handles the complexities of these scenarios upfront and handling them in a more "simple" imperative way often either ends up leading to more complicated code than what could be created with RxJS, or quite often bugs/edge cases/race conditions that are just ignored which leads to worse UX Also will add that I don't think RxJS is the only way to adequately deal with these things, it is the declarative aspect that I think is important, and there are other ways to achieve that
@adambickford8720
@adambickford8720 Месяц назад
The fact you don't understand you have those problems doesn't mean you don't have them.
Далее
The problem with going "full declarative" in Angular
5:30
The easier way to code Angular apps
9:54
Просмотров 66 тыс.
НЕ ИГРАЙ В ЭТУ ИГРУ! 😂 #Shorts
00:28
HTMX Sucks
25:16
Просмотров 120 тыс.
*Next-Door Tech CEO 2024*
5:38
Просмотров 114 тыс.
The cloud is over-engineered and overpriced (no music)
14:39
Should we really NEVER subscribe in Angular apps?
13:22
TOP 6 Mistakes in RxJS code
18:35
Просмотров 17 тыс.
So, you want to be a programmer?
20:43
Просмотров 283 тыс.
The Easiest Way to Build Websites
10:56
Просмотров 445 тыс.