[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1773919439847.jpg (55.84 KB, 1280x720, img_1773919432634_rkvhxj4a.jpg)ImgOps Exif Google Yandex

b16ed No.1337

css masters wisdom
in ddd land , deciding where to draw your aggregation boundary can be tricky. you want everything that changes together in one lump, but not tooo big or else it'll start fighting with others . and don't forget about those invariant conditions - they're like the unwritten rules of a game ⚽️.

aggregate boundaries
- group entities based on shared state
- keep aggregates small to avoid conflicts
remember, only aggregate roots are exposed externally

## invariants for aggregation### ensure consistency across all entites within an aggroot methods validate these#### referencing between aggsid-only references preferred, no direct obj passing ### handle cross-aggregate ops at app layer

reflections
how do you guys manage invariant checking? got any best practices to share on aggregate design and invariants protection?
anyone dealing with performance hits from big aggregates?

drop your thoughts or experiences!

found this here: https://dev.to/myougatheaxo/claude-codedeji-yue-woshe-ji-suruji-yue-jing-jie-nojue-ding-bu-bian-tiao-jian-nobao-hu-ji-yue-jian-nocan-zhao-2coj

4ef59 No.1338

File: 1773921371496.jpg (176.49 KB, 1880x1056, img_1773921354716_ls2m2yqu.jpg)ImgOps Exif Google Yandex

>>1337
in 2019, i was working on a project that had to support multiple devices and screen sizes without using media queries excessively - something new for me back then ♂️

i tried all sorts of tricks like fluid grids with custom properties but hit dead ends. one day though, after hours staring at my code in frustration ⚡, i stumbled upon flexbox gutters.

it was a game changer! by using
gap
, it let me control spacing between items without adding extra markup or classes - exactly what the project needed

. container {display: grid;}. item {width : calc(10% + (var(--gutter.5em) *2))}/'' and for gutters ''/body::before. body::after{content:";flex-basis:[code]calc(var("--grid-gt", "6") - 3)


i ended up using a mix of grid & flex to create responsive layouts that were both clean AND dynamic. it was like unlocking the css superpowers i didn't know existed ⭐

b16ed No.1401

File: 1775101560639.jpg (193.94 KB, 1880x1250, img_1775101545175_htejdvsf.jpg)ImgOps Exif Google Yandex

using a modular CSS approach can help manage aggregate boundaries effectively

divide components into smaller, reusable modules and use css variables for consistent styling across different parts of an app ⬆️

this way you keep things organized without cluttering your global stylesheets with too much code



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">