I would not advocate constraint solvers, in the future I hope ViTs are so cheap to run that they can infer the right layout of things at any orientation and size in single digit milliseconds, solving the layout problem for good =)
You suck at CSS and that's okay (2022)
21–30 of 70 posts
Re: You suck at CSS and that's okay (2022)
#22Re: You suck at CSS and that's okay (2022)
#23Now that CSS is more or less feature complete and the fact that there's just one web browser means you don't need the clever tricks rolled up in a framework to center a div or to have a grid layout that works without resorting to tables. It's literally part of the CSS spec and has been implemented in every browser for a decade now.
Re: You suck at CSS and that's okay (2022)
#24The CASS site on iOS WebKit has bullets overflowing into the border and a mix of fonts that doesn’t look great: https://casscss.github.io/cass/
This is a #wontfix (sorry), but I might fork it into a new, LLM-oriented CSS project. Fonts and lists will be the first things I look at.
Re: You suck at CSS and that's okay (2022)
#25Tell that to a decent number of people I have worked with over the past 20 years. In fact, I know people to this day who have been writing CSS for decades who don't really know fundamental things like specificity, inheritance, or the cascade. Pattern matching into the sunset, not a single fundamental piece of CSS specifications ever internalized, still getting paid (its okay). https://www.w3.org/Style/CSS/specs.en.ht…
Re: You suck at CSS and that's okay (2022)
#26The worst part of CSS is trying to come up with the class names. .every-stupid-ass__naming-scheme-falls-short{}
Things like BEM give you the most flexibility for extension, things like atomic CSS (tailwind) give you the most velocity for not giving a fuck about ever touching the markup again.
Re: You suck at CSS and that's okay (2022)
#27Re: You suck at CSS and that's okay (2022)
#28HN Confessional: I wrote a custom theme for my server management software a few years ago that's basically just a rewrite of the stock theme's rather large CSS file. Among a little more than 1200 lines, I include `!important` 175 times . I imagine that causes hives among our more discerning front-end devs.
Re: You suck at CSS and that's okay (2022)
#29> The last big driver of time-wasting in CSS is the drive for pixel perfection I agree. Also users/product managers do not care. They will see UI that is a little bit “off” and think negatively about your brand. Congrats, now you have a ticket to make the UI look pixel perfect. I suppose the audience for this isn’t people who actually get paid to write CSS, but instead casual blog writers. It’s definitely ok and norm…
Like QA not passing some detail because they think it should be different. Where in reality it is what it is because of framework etc.
Yes you mostly can do everything - but not everything is worth spending time/money on.
Re: You suck at CSS and that's okay (2022)
#30I detest writing CSS and HTML. I just find it boring fiddly and annoying. I have started doing "vibe" coding with LLM's. Giving a decent prompt produces results that are... pretty good. Almost 100% in lighthouse for both mobile and desktop, responsive, reusable components, dark/light mode and a design that was better than I could do in the 2-3 hours I spent doing it (while sipping wine). I know its not a solution for…