Re: Affordances and Lean CSS

Stephen Margheim (fractaledmind) wrote Affordances: The Missing Layer in Frontend Architecture this month. This quick post is my reply to his great article. I hear the objection already: “Isn’t this just… semantic CSS classes? We tried that.” You’re right that we tried it. But “it didn’t work” deserves unpacking. I was indeed objecting that in my mind. But I was not thinking, "it didn't work." I was thinking, "and it has kept working for decades. Obviously the utility-only workflow described is terrible; it's why I refuse to choose Tailwind. How are affordances better than what's worked for a decade?" […]

https://kerrick.blog/posts/2025/re-affordances-and-lean-css/

Re: Affordances and Lean CSS - Kerrick Long (blog)

Stephen Margheim (fractaledmind) wrote Affordances: The Missing Layer in Frontend Architecture this month. This quick post is my reply to his great article. I hear the objection already: “Isn’t this just… semantic CSS classes? We tried that.” You’re right that we tried it. But “it didn’t work” deserves unpacking. I was indeed objecting that in

Kerrick Long (blog) - Articles about programming, learning, code, books, and teams

Сердце Фреймворка: Философия и Практика Dependency Injection в Angular

Dependency Injection (DI) один из столпов, на которых держится фреймворк Angular. Каждый разработчик, так или иначе, сталкивается с ним с первого дня: запрашивает сервисы в конструкторе, добавляет providedIn: 'root' и видит, как «магия» работает. Но именно в этом и кроется ловушка. Для многих DI так и остается на уровне «магии» удобного механизма, который просто работает. Однако поверхностное понимание этого мощнейшего инструмента неизбежно приводит к архитектурным компромиссам: неочевидным утечкам памяти, сложностям в тестировании, созданию неявных связей между компонентами и, в конечном счете, к коду, который трудно поддерживать и масштабировать. Эта статья не очередной пересказ официальной документации. Это глубокое погружение в архитектуру и философию Dependency Injection в Angular. Наша цель демистифицировать «магию» и превратить ее в предсказуемый, управляемый и мощный инженерный инструмент в вашем арсенале. Мы пройдем путь от фундаментальных принципов инверсии контроля (IoC) до тонкостей иерархического инжектора. Мы разберем на атомы все стратегии предоставления зависимостей, научимся управлять их жизненным циклом и областью видимости. Мы изучим продвинутые паттерны с использованием InjectionToken и multi-провайдеров и поймем, как современная функция inject() меняет подход к композиции логики. Перейти к полному анализу

https://habr.com/ru/articles/931400/

#dependency_injection #angular #ioc #typescript #архитектура_приложений #паттерны_проектирования #provideIn #InjectionToken #treeshaking #Standalonecomponents

Сердце Фреймворка: Философия и Практика Dependency Injection в Angular

Dependency Injection (DI) один из столпов, на которых держится фреймворк Angular. Каждый разработчик, так или иначе, сталкивается с ним с первого дня: запрашивает сервисы в конструкторе,...

Хабр
再exportの修正をしてバンドルサイズを約30%削減した - Qiita

これは何今回、webpackのツリーシェイキングが意図せずうまくできていなかった部分を発見し、修正をしました。それにより、バンドルサイズを約30%削減することができました。 (Parsed Siz…

Qiita

[blog] Comment faire du #TreeShaking (se débarrasser du code inutile) sans #Bundling (concaténer le code dans un unique fichier) en #Javascript ?

Une piste à explorer : #Deno et sa commande 'info'.

https://omacronides.com/notes/2023-09-21/

Tree Shaking sans bundling

Je tourne autour de la commande ``deno info`` depuis que [je teste ce nouvel environnement d'exécution javascript](/notes/2023-09-15), avec l'intuition qu'elle pourrait servir ma quête de « Tree Shaking sans bundling ». Quelques notes sur le sujet...

[blog] Comics : notes de développement

Quelques notes sur le développement d'une application #Javascript de gestion de bédés numériques (#Comics, #cbz) :

* Simplification des #Apis
* Choix d'une librairie pour gérer les #zip
* Faire du #Dom sous #NodeJs ou #Deno
* #Bundling et #TreeShaking

https://omacronides.com/notes/2023-09-09/

Comics : notes de développement

Quelques notes sur le développement de mon outil de [gestion de bds numériques](/projets/comics) alors que la version 2 approche...

Last week, we landed a small change in #Metro to preserve comments: https://github.com/facebook/metro/releases/tag/v0.76.3

While this may seem insignificant, this means that Metro will no longer omit `__PURE__` annotations that bundlers rely on for tree shaking. As of Metro 0.76.3, you may get even smaller bundles if you're using `@rnx-kit/metro-serializer-esbuild`: https://github.com/microsoft/rnx-kit/tree/main/packages/metro-serializer-esbuild#readme

In simple examples, we've seen reductions of several hundred KBs. YMMV

#ReactNative #MetroBundler #TreeShaking

Release v0.76.3 · facebook/metro

[Feature]: Support custom __loadBundleAsync implementations in the default asyncRequire function. See the lazy bundling RFC for more details. (ac3adce, f07ce5c by @motiz88) [Feature]: Support lazy ...

GitHub

RT @[email protected]

Kleiner Mini-Sketch-Comic aus gegebenem Anlass 😅 #treeshaking #frontend #comic

🐦🔗: https://twitter.com/Teapot4181/status/1577263596115230725

Lisa Maria Moritz on Twitter

“Kleiner Mini-Sketch-Comic aus gegebenem Anlass 😅 #treeshaking #frontend #comic”

Twitter
#webpack #treeshaking
webpackのTree Shakingを理解して不要なコードがバンドルされるのを防ぐ - Qiita https://qiita.com/soarflat/items/755bbbcd6eb81bd128c4
webpackのTree Shakingを理解して不要なコードがバンドルされるのを防ぐ - Qiita

はじめに webpack の Tree Shaking に関する備忘録です。以下を目的とした記事になります。 Tree Shaking とは何か、なぜ Tree Shaking をするのかを理解する webpack を利用し...

#swDevTermOfTheDay #LazyLoading in the context of #Angular means loading components when needed, but to compile the lazily loaded components together with the hosting component to allow for optimizations like #TreeShaking. See also #ExternalComponents