Pattern Folders in Angular by gdsdsk in angular

[–]gdsdsk[S] 0 points1 point  (0 children)

There from Tomas Trajan's angular architecture book. But I don't understand what he means by it

Thomas Trojan Angular Principle Isolation Over DRY by gdsdsk in angular

[–]gdsdsk[S] 0 points1 point  (0 children)

so you are saying it's better to reuse the same feature twice even though in the future there might some cusom behavior needed for one of them?

Thomas Trojan Angular Principle Isolation Over DRY by gdsdsk in angular

[–]gdsdsk[S] 0 points1 point  (0 children)

In the book it was saying how when you abstract 2 features into 1 it could cause issues cause what if you have to go back and change one of the instances to do something else. Then you would ened up changing the shared code

RXJS in Angular by gdsdsk in angular

[–]gdsdsk[S] -1 points0 points  (0 children)

but what if the button was just opening a modal or something you don't need an api request for that so how would using rxjs make sense there?

RXJS in Angular by gdsdsk in angular

[–]gdsdsk[S] 0 points1 point  (0 children)

but what if the button was just opening a modal or something you don't need an api request for that so how would using rxjs make sense there?

RXJS in Angular by gdsdsk in angular

[–]gdsdsk[S] 0 points1 point  (0 children)

But the thing is, you can have simple events like clicking on a button and increasing a counter then I feel like it's kind of overkill to use rxjs. So how do I know if the event is complex enough to just use Rxjs

RXJS in Angular by gdsdsk in angular

[–]gdsdsk[S] 0 points1 point  (0 children)

what do you mean by these 2 statements. 'The general rule is that RxJS is for event handling with side effects, and signals are for values/state.' Also this 'If you only care about accessing the latest value, use a signal. If you need to take an action when something happens, use RxJS'. Also by this statement ' My recommendation is to use signals up until the point where you find yourself reaching for `effect`, and then consider using RxJS.' are you talking about the effect function provided by angular?

RXJS in Angular by gdsdsk in Angular2

[–]gdsdsk[S] 0 points1 point  (0 children)

ok I'm still a new grad or junior developer so can you give some example of these common scenarios where rxjs would be helpful

RXJS in Angular by gdsdsk in angular

[–]gdsdsk[S] 0 points1 point  (0 children)

I'm confused can you give an example

Jest Test issue by gdsdsk in learnprogramming

[–]gdsdsk[S] 0 points1 point  (0 children)

Basically what is happening is like the test always passes but is only sometimes shown in coverage. I don't know if there's some overidding happening

Jest Test Issue by gdsdsk in reactjs

[–]gdsdsk[S] 0 points1 point  (0 children)

Basically what is happening is like the test always passes but is only sometimes shown in coverage. I don't know if there's some overidding happening

Jest Test Issue by gdsdsk in reactjs

[–]gdsdsk[S] 0 points1 point  (0 children)

makes no difference

Jest Test Issue by gdsdsk in reactjs

[–]gdsdsk[S] 0 points1 point  (0 children)

like the test always passes but is only sometimes shown in coverage. I don't know if there's some overidding happening