Mark Magyarodi

341 posts

Mark Magyarodi

Mark Magyarodi

@ribizlim

Vienna, Austria Katılım Haziran 2009
137 Takip Edilen30 Takipçiler
Jon Rista
Jon Rista@JonRistaDev·
@Armandotrue No. It is more that it CAN cause side effects. Purity is a constant trait. Either it's pure or not...can't be "sometimes pure". Purity allows memoization, without any chance of the rest of the apps state being affected. Is this true of tap in 100% of cases? No. Thus, not pure.
English
2
0
2
43
Armen Vardanyan
Armen Vardanyan@Armandotrue·
Another just-for-fun question So, the #RxJS `tap` operator is specifically designed to perform side-effects However, its implementation is just taking an Observable and returning a new one with the side-effect slapped on it So, is `tap` itself a pure function or not? 😁
Armen Vardanyan tweet media
English
1
0
8
915
Armen Vardanyan
Armen Vardanyan@Armandotrue·
I've seen discussions on #Angular component selectors becoming optional in the future Can't say I agree with this. This gives us very little gain at the cost of breaking lots of functionality, especially directives that rely on other component selectors to function. Unless we are removing the entire metadata thing (which we are not definitely at this stage), I am not sure this is really beneficial at all.
Armen Vardanyan tweet media
English
5
2
20
1.9K
matia 🇭🇷
matia 🇭🇷@joyofcodedev·
Svelte just added the `$state.link` rune for linking values together in the latest release. 🔥
matia 🇭🇷 tweet media
English
11
9
103
6.1K
Mark Magyarodi
Mark Magyarodi@ribizlim·
@angular2react @mfpears IMHO the angular internal code (e.g. forms and router) is also heavily using RxJS. so one needed to rewrite those moduels fully. how much (wasted) resources it will require?
English
0
0
3
7
angular2react
angular2react@angular2react·
@mfpears > If I had my wishes, the Angular team would recognize that RxJS is heavily used in Angular apps today, and spend resources on tutorials and documentation for RxJS + signal patterns Best take on anything I've read in the last 14 days 👍
English
1
0
4
231
Mike Pearson
Mike Pearson@mfpears·
The reason I changed my mind about signals is because RxJS is truly bad at synchronizing states efficiently and ergonomically. But there are other things for which it is currently the _only_ good tool. Angular supporting developers who don't want to use RxJS feels like worse than a waste of time. It's like working to support devs who don't like TypeScript. Or devs who want jQuery interop. It's going to lead to a lot of projects with redundant concepts and disjointed styles, having promises here and observables there, developers not knowing which to use when, and overall writing more imperative spaghetti code. Part of Angular's identity is to be opinionated about best practices. But maybe declarative code is still controversial. How about we give more time to the community to work with RxJS + signals before spending resources on dropping the RxJS dependency? Can you find Svelte developers who hate Svelte Stores? They are very similar to observables, yet I haven't heard of a split in the Svelte community over stores. Will we ever know if the community is split because some developers hated the experience of Angular + RxJS, or RxJS itself? By assuming it's RxJS itself, aren't we creating a larger split in the community, and basing it on an improbable assumption? I believe it's improbable, given how many hoops we've had to jump through using RxJS in Angular up to now. After 8 years we finally have a way to write reactive code that uses component inputs, and a smooth way to access it with RxJS. Can't we rest for a minute and see if attitudes towards RxJS change before doing something drastic? If devs have been _tolerating_ RxJS before, won't it be easier to tolerate now? If I had my wishes, the Angular team would recognize that RxJS is heavily used in Angular apps today, and spend resources on tutorials and documentation for RxJS + signal patterns. After a year, reassess. I think people would be surprised at how smooth learning Angular in this paradigm could actually be. I'm a GDE but I know as much about Angular plans as any other developer. But it seems like they actually are set on removing RxJS as a dependency. I predict that 2/3rds of new Angular projects will not use RxJS at all. 1/3rd will, and will understand why, having intentionally chosen it, and therefore code cleaner apps. So the community will have a fairly clean split between 3 types of apps: janky legacy RxJS + Angular, new Angular sans RxJS with varying amounts of spaghetti code depending on complexity, and highly declarative Angular + RxJS codebases. Angular Query will become more popular in the generic Angular codebases. Those devs will gradually think more reactively because of that. And eventually most projects will start to use RxJS again, if AI hasn't taken all our jobs by that point. But the history of web development has been a bumpy but definite trend towards more and more declarative coding styles. Anyway, nothing is risk-free and maybe all of this is worth widening the split in the community, because appealing to newcomers is so important at this time. It's not my decision. I just know that I will have fewer job opportunities in the future that I actually want. Going back to an imperative paradigm to me is as unappealing as going back to JavaScript from TypeScript. I wish I had more time to work on this stuff, because my highest priority at this time is to show how simple RxJS could be with the right advice/tutorials. Maybe I can help some developers make decisions that will lead to less buggy code.
English
11
12
68
8.5K
Mike Pearson
Mike Pearson@mfpears·
@TayambaM Yeah that's something the Svelte team made. It's fine for simple examples. But I watched a Svelte conference and at least 2 of the talks involved developers trying to invent RxJS again. RxJS is fine.
English
2
0
1
256
Mark Magyarodi
Mark Magyarodi@ribizlim·
@mgechev drop selector for standalone components, and just use <MyComponent> instead?
English
0
0
3
290
Minko Gechev
Minko Gechev@mgechev·
What's the Angular feature you're looking forward to the most in 2024?
English
93
8
121
33.2K
César
César@CesarDemi81·
@ribizlim @Enea_Jahollari @if No, I know that... If I have an if and an else, I'm replacing it with the new control flow... But if I have a single ngIf for a single element, it seems to me it's much more verbose the new syntax than the old one... don't you think?
English
1
0
1
13
César
César@CesarDemi81·
@ribizlim @Enea_Jahollari Would you prefer to add more lines for an @if{ } even though a simple ngIf could do it, to prevent importing the directive? Wondering about preferences...
English
1
0
0
16
The East Coast Retro Gamer
The East Coast Retro Gamer@eastretrogamer·
@omgubuntu I am currently running 6.5-RC3 it's pretty simple to upgrade kernel versions. People can use Ukuu to install new kernels it cost money to buy. Or they can download and install from tinyurl.com/3f7ep38c with the sudo dpkg -i *.deb command. 🤓
English
2
0
0
103
Mark Magyarodi
Mark Magyarodi@ribizlim·
@laforge_toma @ngconf ok, the sentence "set or update will trigger CD" is what I'd like to read about in detail, how? That was the question in my original tweet. I've browsed the source of signals back in the preview time (before ng16 release), but there was no sign of coupling with CD...
English
0
0
0
15
Thomas 🅰️🇨🇵
Thomas 🅰️🇨🇵@laforge_toma·
@ribizlim @ngconf there is no OnPush or Defaut strategies with OnPush. Set or update will trigger CD. And since the entire view is refreshed, the value is updated as well.
English
1
0
0
11
Thomas 🅰️🇨🇵
Thomas 🅰️🇨🇵@laforge_toma·
@ribizlim @ngconf Signal works as normal properties. There is no CD optimization yet. Will be in v17 maybe. Signal just landed on v16 to get use to the API.
English
1
0
0
19
Mark Magyarodi
Mark Magyarodi@ribizlim·
@maxkoretskyi from the source of switchMap: "// We only complete the result if the source is complete AND we don't have an active inner subscription. // This is called both when the source completes and when the inners complete."
English
0
0
0
19
Mark Magyarodi
Mark Magyarodi@ribizlim·
@maxkoretskyi in angular, if you switchMap to a http request, it is not completing the outer observable either. this is rather how switchMap works, not a thing with EMPTY.
English
1
0
0
278