546
you are viewing a single comment's thread
view the rest of the comments
[-] kewjo@lemmy.world 8 points 1 year ago

javascript but more for philosophical reasons. when projects use typescript they always get focused on writing more scripts rather than optimizing HTML/CSS. Too many times I've seen overly complex scripts trying to solve what a properly arranged div and css tag have already solved.

[-] Strawberry@lemmy.blahaj.zone 5 points 1 year ago

I've been dealing with this at my job because a layout library was deprecated and is used throughout our codebase instead of proper css. Came to learn that my whole team doesn't like/know css, so they used this library that used angular directives in the html instead. We had multiple giant scripts for arranging elements in a grid that changed based on screen width

[-] parrot-party@kbin.social 2 points 1 year ago* (last edited 1 year ago)

There are some cases where this is a serious issue that can't be solved through pure CSS. Once container units are finally approved though, that will solve quite a few problematic layout issues in CSS.

[-] Strawberry@lemmy.blahaj.zone 1 points 1 year ago* (last edited 1 year ago)

Aren't these already supported in all major browsers? Also I agree, but in this case we did not even need a container query, just a media query

edit: https://caniuse.com/css-container-query-units about 85% of users have browser support for container query units

[-] parrot-party@kbin.social 1 points 1 year ago

Yes but the support is very recent and hasn't been fully accepted yet. Therefore, I can't use it in enterprise. I have to wait for full adoption.

[-] o_d@lemmygrad.ml 1 points 1 year ago
this post was submitted on 08 Sep 2023
546 points (94.2% liked)

Programmer Humor

19854 readers
1806 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS