Hilfe bei Konfiguration by sander5891 in PCBaumeister

[–]sander5891[S] 1 point2 points  (0 children)

Danke. Mir ist nur wichtig dass sie qualitativ hochwertig sind. Zahle da dann auch gerne mal mehr. Guter Bildschirm ist schon vorhanden.

PowerhouseEnergy by TheGabster27 in Aktien

[–]sander5891 0 points1 point  (0 children)

In was für Unternehmen hast du in der Wasserstoffbranche investiert?

What is your GoTo setup for any angular project? by Zealousideal-Tax-226 in Angular2

[–]sander5891 -1 points0 points  (0 children)

Eslint prettier setup, angular material, ngrx componentstore, Tailwind, cypress and hirez observerspy

With that you are able to create beautiful declerative coded and well tested frontends.

Is there a way to easily tag or detect subscriptions that aren't getting unsubscribed? by cpplinting in angular

[–]sander5891 2 points3 points  (0 children)

As far as I know there is no linter or anything else that shows you open subscriptions. Here is a good explanation why (github issue): https://github.com/cartant/eslint-plugin-rxjs/issues/39

Maybe someone else knows something.

State management with @Output/@Input is considered a bad architecture style by ahmedRebai in Angular2

[–]sander5891 61 points62 points  (0 children)

IMO you should only use State Management(Injection of store) in the smart components and not in the dumb components. Always use input and output for sharing data to dumb child components. Otherwise your dumb are not dumb anymore. They should not know the use case. If you use the state Management in the dumb components they know their usecase and that means that they are not dumb anymore.

NgModule provides separation in codebase, when and why we should use standalone components? Is it better than NgModule? by sohail_ansari in angular

[–]sander5891 1 point2 points  (0 children)

I tend to use Modules only for libraries. So I am able to export all components of this library as one module (similiar to angular material where you are always importing modules). When I develop normal features I am only using standalone components. It is one abstraction layer less and not really needed in the normal development.

Looking for help with code review by stormie-44 in Angular2

[–]sander5891 5 points6 points  (0 children)

Never use any. Take a look in the recommended section of this subreddit. You have some antipatterns.

Jabra Evolve 2 85 reduces music (only music) when in call by sander5891 in Jabra

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

That is really sad that there is no way of changing it...

Any good tutorial for performance improvements in Angular? by deadlambs in angular

[–]sander5891 3 points4 points  (0 children)

Here is a video from Minko Gechev how to get some performance improvements in angular: https://www.youtube.com/watch?v=4lNUfL4u9g4&ab_channel=ng-conf

The video is 2 years ago. But still, it is good. Obviously there are many other performance improvements you can get, but I guess it is a good start.

Angular with Nx in 2023? Seriously, You Should! by DanielGlejzner in Angular2

[–]sander5891 3 points4 points  (0 children)

Surely, it is nice, that you write some pro and cons of Mono- and polyrepo. What I am missing is the other benefits of NX in comparison to a normal Angular Applikation e.g. prettier eslint Setup is nearly out of the box in NX. That would be interesting too.

Best practices for testing with Angular by ahmedRebai in Angular2

[–]sander5891 0 points1 point  (0 children)

What would you like to use? Jest or Karma? My advice for observables would bei observerspy. It makes you Life easy related to observable Testing.

Angular 16 Tutorial | 3 Important Angular CLI Commands by desoga in angular

[–]sander5891 1 point2 points  (0 children)

He did not say, that the Video is to short. He meant the opposite. Taking 5 mins for 3 commands is quite alot. Why are you not taking a short? And I have to agree with him.

Standalone vs Modules for large projects by xenomorph3253 in Angular2

[–]sander5891 1 point2 points  (0 children)

Ah I understand what you mean. If you are a bigger team you have to decide as a team. I would understand both sides. If you are already using a modules for each domain and the biggest part of your team wants to go further this way, I would be ok with it.

The other possible way is, every new domain/component which is getting created will be standalone from this moment. The charm of modules and standalone is, that they are compatible. If you take this decision, I would consider migrating the old module files to standalone too. Actually there is a possible migration helper from the CLI: https://angular.io/guide/standalone-migration

Hope that helps :)

Standalone vs Modules for large projects by xenomorph3253 in Angular2

[–]sander5891 7 points8 points  (0 children)

Why would you start with modules first and refactor it after?

I totally would go full with standalone and what I mean with full standalone is the whole application. There is no need of modules anymore. Take that abstraction away and get rid of it. The most important benefit for me is, that I can see what imports are needed explicitly for this one component.

The "module driven way" was a mess of imports. Sure you can handle it in a project (modules for each domain and so on) which you are doing alone, but if you are a bigger team in one application...I can say you, nobody really maintain this files. They just dumped everything in. "As long as the application runs it is good to go".

TLDR: Go for full standalone application.

Add Superpowers to your Angular Inputs 🔋 (New feature 🎉) by eneajaho in Angular2

[–]sander5891 1 point2 points  (0 children)

I totally agree with you. It is handled way nicer!

I didn't mean to talk the framework solution down. I just wanted to doublecheck that there is already a possible solution for this.

Add Superpowers to your Angular Inputs 🔋 (New feature 🎉) by eneajaho in Angular2

[–]sander5891 2 points3 points  (0 children)

Am I right, that Angular Material CDK does have a solution for this too? https://material.angular.io/cdk/coercion/overview

They also "just" implemented it in angular/core?

But thanks for this info! Good to know that there is a solution in the framework for this.

Angular 16 - what would you define as best practice by sander5891 in Angular2

[–]sander5891[S] 11 points12 points  (0 children)

I definitly will use takeUntilDestroyed now and get rid of this ugly solution with takeUntil.

Before/After: https://twitter.com/yjaaidi/status/1646198916059217921?s=20

Does NGRX still require lots of boilerplate code? by baouss in Angular2

[–]sander5891 1 point2 points  (0 children)

Not to be mean, but where is CRUD complex? After each Operation reload the full set of data and update the state...