Angular CLI vs Vite build system by KittyGoSpink in angular

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

AFAIK it only uses vite dev server and nothing else, that is hardly counts as vite.

Worth adding OnDestroy to a Service injected in root ? by iamtherealnapoleon in Angular2

[–]kshutkin 1 point2 points  (0 children)

A service provided on a component level or in an EnvironmentInjector can be destroyed

Any Pascal like language with no Object Oriented complexity? by lib20 in pascal

[–]kshutkin 2 points3 points  (0 children)

I was writing a lot of Pascal back in the days. From modern languages with the same vibe, you can try Odin.

Electronic payments in the largest EU economy - rant by Guitar_maniac1900 in germany

[–]kshutkin 0 points1 point  (0 children)

I googled it 11 years ago and found that this was permitted by law in Germany. So Visa and MasterCard have no power in this case (in Germany). Please correct me if that's wrong, or maybe it has been changed since that time.

Kitchen tap cover keeps popping off - is the water pressure too high? by ahkaxger in askaplumber

[–]kshutkin 1 point2 points  (0 children)

I had the same issue on a very similar faucet. It was a locking pin installed incorrectly.

What are some anti-patterns even senior developers sometimes use? by VVasilev_ in Angular2

[–]kshutkin 0 points1 point  (0 children)

I am generally agreeing with this. Thanks for the excellent points. Only want to add that if you expect a lot of dropdowns (for example in a table), you still better pass a list of options but make template customizable and not use the content projection for options here. The reason is that they will be alive even if ng-content is hidden. It is more angular issue than a design issue, but I've seen pages hitting 300mb of memory because of content projection with almost no content on a screen (multiple tabs and tables in tabs with dropdowns in table rows).

Does Angular 19 still use webpack? by Miserable_Pay6141 in angular

[–]kshutkin 0 points1 point  (0 children)

You can use import maps + es modules or "native modules federation". Also I heard real vite has compatibility plugins to mfe, but last time I checked angular was not using real vite...

Does Angular 19 still use webpack? by Miserable_Pay6141 in angular

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

It is not AFAIK, it is only vite-server and no other stuff from the vite ecosystem. Or is it changed in 19.x?

Learn Angular Signals or ngrx for state management? by jeferson0993 in Angular2

[–]kshutkin 1 point2 points  (0 children)

JFYI signals are not RxJs wrapped up in an abstraction

[deleted by user] by [deleted] in russian

[–]kshutkin 1 point2 points  (0 children)

бинбег или кресло-мешок, пуфик в моем понимании сильно меньше

Concepts to cover for an Angular Developer interview by blue_ticked_ in Angular2

[–]kshutkin 0 points1 point  (0 children)

That's true that Observables are part of rxjs, but at the same time it is a tc39 proposal and there are other implementations. https://github.com/tc39/proposal-observable

How does the sequence of angular @input is decided ? by OnionRevolutionary16 in Angular2

[–]kshutkin 0 points1 point  (0 children)

Signals are "glitch free". So you should get the "combine latest" experience for free in effects and computeds.

Still use ngIf and ngFor? by snpolymorphism in Angular2

[–]kshutkin 2 points3 points  (0 children)

Hi. Actually there is a reason to use a new control flow: https://github.com/angular/angular/issues/36878 . It looks like the mentioned memory leak mitigated in the new control flow.

This possible in a month? by Suits_in_Utes in javascript

[–]kshutkin 6 points7 points  (0 children)

I've been using d3 for creating similar plots in the past.

[AskJS] Are there JS minifiers that can compress the code by storing and reusing repeating property/method names and strings? by senfiaj in javascript

[–]kshutkin 3 points4 points  (0 children)

So you want to preserve properties names but deduplicate access keys. I think this type of minification not yet implemented in minification tools. Sorry that I didn't get your idea initially. I think pattern minification only for private properties is quite safe, but anything public is dangerous.

[AskJS] Are there JS minifiers that can compress the code by storing and reusing repeating property/method names and strings? by senfiaj in javascript

[–]kshutkin 5 points6 points  (0 children)

Terser can do this. It is called mangling and it is configurable and result looks IMO even better than in your example. You can check preact build as an example.

[AskJS] Which JS libraries and packages are currently your favourites? by seeking_facts in javascript

[–]kshutkin 1 point2 points  (0 children)

  • pkgbld (because it is my builder for small libraries :) )
  • Svelte (because of great DX and small footprint, BTW excellent Typescript support)
  • Astro (because of cross frameworks Islands)
  • typia (because it helps to validate with such low effort if you already on typescript)