Maxim Ivanov (@splincodewd) profile picture

Code 🤖, Bike 🚵 and Music 🎶

Moscow, Russia
Joined May 2016
Photo by Maxim Ivanov (@splincodewd)Photo by Maxim Ivanov (@splincodewd)Photo by Maxim Ivanov (@splincodewd)Photo by Maxim Ivanov (@splincodewd)Photo by Maxim Ivanov (@splincodewd)Photo by Maxim Ivanov (@splincodewd)Photo by Maxim Ivanov (@splincodewd)Photo by Maxim Ivanov (@splincodewd)Photo by Maxim Ivanov (@splincodewd)Photo by Maxim Ivanov (@splincodewd)
Maxim Ivanov retweeted
If you don't bother using state management libraries and instead rely on the signal-in-a-service pattern, consider exposing state signals with `.asReadonly()`. Will save you some trouble
1
3
22
1,019
Maxim Ivanov retweeted
A favourite pastime of Angular devs is looking at new features in Angular and screaming "we are turning into React!" So here's a question: what are some features from other frameworks that you would actually WANT in Angular?
10
4
36
3,120
Maxim Ivanov retweeted
It is inevitable that at some point you will work with some large quantity of data in the frontend (oops, spoilers for today's livestream 😅) Reach for Web Workers when this happens, pair them with resources, and you're good to go:
1
1
29
1,276
Maxim Ivanov retweeted
There were a lot of super popular RxJS patterns that are no longer necessary with the advent of signals Here are some of them:
1
28
1,304
Maxim Ivanov retweeted
Okay, since you enjoy neat browser tricks... The Clipboard API allows "rich text" copy-pasting; you can provide plain-text and rich-text options and when the user pastes the copied content the app they paste into can select the best option (Excel can pick your rows and cells)
3
41
1,322
Maxim Ivanov retweeted
No need to use URL shortener services for links in your app Instead, utilize `CompressionStream` and hide a BUNCH of parameters in the URL
1
15
1
226
14,759
Maxim Ivanov retweeted
This was kind my coursework in university, we used Xilinx to build something similar. What immediately rang the bell was "ALU" and Clock :)
this is what every computer does, slowed down enough to watch a clock ticks. the chip grabs an instruction from memory, figures out what it means, does it, and moves to the next one the whole program here is five lines: load 5, load 3, add, show the result, jump back. so the number just keeps climbing by 3 your phone does this billions of times a second
1
7
1,148
Maxim Ivanov retweeted
Need to record video of a Chrome tab, for a demo or tests? There's a new API allowing flawless no-dropped-frames AV1 capture. 60fps easy. But can also do 120fps @2160p. (Yes, for real). It's easy to use within pptr or playwright.. here's a mini npm package: github.com/paulirish/chrome-… (bonus 120fps video within :)
26
54
3
493
25,599
HTML-in-Canvas launches in Chrome 157 to let you create UIs never before possible on the web → goo.gle/4eFO6aF Key end-user benefits: 🔠 Keep the content fully interactable while painting into canvas, including texture for 3D scenes ♿ Fully accessible to screen readers and AI agents 🔍 Browser functionality like translation & "find in page" stay working
22
161
35
1,040
74,496
Maxim Ivanov retweeted
I really love obscure Web APIs `linkedSignal` + `effect` + `BroadcastChannel` = signal value shared across open browser tabs For example, use it to react to user logging out:
1
2
1
43
2,607
Maxim Ivanov retweeted
TypeScript excitement 😉 There is now a TypeScript Playground supporting the Go-based TS7 thanks to experimental Wasm support coming to TS 7.1 added by @andhaveaniceday 🎉
2
9
1
143
4,591
Maxim Ivanov retweeted
10 лет работал сеньором и сейчас охренел с собеседований корпоратов Это статья про то, как поменялась профессия после прихода агентских ИИ-сред и насколько забавно выглядит переходный процесс: habr.com/ru/companies/h3llo_…
1
1
54
16,873
Maxim Ivanov retweeted
Technically, if you never use enums (namespaces, constructor DI, other TS-only syntax) you can turn on `erasableSyntaxOnly` in your Angular app's tsconfig (decorators are ok since Angular compiles them itself) Will it be faster?
2
2
28
1,541
Maxim Ivanov retweeted
Symbol.iterator is an amazing thing. You can turn anything into something you can loop over, and you can make it *recursive* Here is an example of a primitive file system based on nothing but plain JS classes:
5
12
1
102
4,731
Maxim Ivanov retweeted
For more than a year now, I've been super happy that Angular has signal-based viewChildren/contentChildren Like, it takes just one line of code to grab all the tabs in a tabs component:
2
2
39
1,444
Maxim Ivanov retweeted
EventSource is the most clear-cut case for using an effect in an Angular app EventSources are a way of reading Server-Sent Events (SSE) in your frontend app Just do not forget to close the stream when the component is destroyed 😉
4
5
61
2,834
Maxim Ivanov retweeted
You can use `defer` not only with simple triggers like `on viewport` or `on timer`, but also fine-tune them, for example with `scrollMargin` (coming in Angular 22.3, in pre-release now) Works great for infinite scroll inside a scrollable container: the next items start loading just before they scroll into view, while everything further down stays deferred
1
2
37
1,035
Maxim Ivanov retweeted
No one is going to care (or will they?), but starting with Angular 22.3 (in pre-release now) you can use more operators in templates, like the `++` and `--` operators:
6
2
41
1,288
Maxim Ivanov retweeted
NgTemplate is actually the most flexible way of building UIs in Angular But one thing that annoys everyone is the reduced type safety The great news is with `ngTemplateContextGuard` you can tell the Angular compiler what type to expect inside a given NgTemplate:
3
3
1
64
2,766