Live data from Hacker News

Is there too much CSS now?

css-tricks.com

111–120 of 125 posts

Re: Is there too much CSS now?

#111

Earlier quoted context omitted.

> This is some software engineer edgelording. This is Chris Coyier , who launched css-tricks back in 2007 and codepen in 2012. He's worked in this field for over 15 years and is one of the most recognisable figures in the webdev community.

No, it's not Chris Coyier.

You are correct - it seems he has sold this site onto Digital Ocean

Re: Is there too much CSS now?

#112
post #82
post #21

No. It's finally getting to be reasonable. The hackarounds are being displaced in droves now. Ever since CSS grid became a thing, I dumpstered all of the 3rd party web framework stuff I had been using. Placing elements in the right parts of the viewport (across all target devices) has always been 95% of the reason I consumed 3rd party libraries.

> Ever since CSS grid became a thing, I find myself having to relearn Grid every time I try to use. It actually reminds me a lot of RegEx. Super powerful and helpful but nothing about it sticks in memory.

I have visited this page so many times.

https://css-tricks.com/snippets/css/complete-guide-grid/

Re: Is there too much CSS now?

#113
post #21

No. It's finally getting to be reasonable. The hackarounds are being displaced in droves now. Ever since CSS grid became a thing, I dumpstered all of the 3rd party web framework stuff I had been using. Placing elements in the right parts of the viewport (across all target devices) has always been 95% of the reason I consumed 3rd party libraries.

Do you find element placement to be a one and done solution in regards to using grid, flex or table? Or do each have their own use cases? I tend to default to flex for most things because I am very comfortable with it. I guess I find keeping all the css properties in my head for all the different placement solutions cumbersome, flex and especially grid have a huge amount of functionality and custom properties, and I…

Flex for content, grid for layout.

Re: Is there too much CSS now?

#114
post #86

The youngins' have no idea how good they have it. I'm an IE6 veteran and comparing now to then, today's CSS is a dream. I think most people dislike it nowadays because it requires two skillsets: visual creativity and technical aptitude (most people can only fulfill one of those halves). It can be easy to project shortcomings in visual creativity onto the language which I don't think is very fair but I tend to see oft…

amen.

Re: Is there too much CSS now?

#115
post #47

Nope. Flexbox makes it easy to just use plain CSS nowadays. No more SASS or any other preprocessor nonsense. Not even a fan of Tailwind (too much complexity for dubious benefit). CSS has never been better and now there's just the right amount of it. Also now that there's no more need for crazy JS hacks, you can have just a little bit of JS for interactivity and that's it. Front end development is finally pleasant aga…

amen

Re: Is there too much CSS now?

#117
post #70

Earlier quoted context omitted.

flex everything, it behaves much smoother

I've struggled with children sizing in flex. Children take up more space depending on their content. If the content overflows, flex doesn't handle that well either. Grid seems to handle this better when you specify grid-template-column. Anybody know a good flex-specific solution?

https://css-tricks.com/snippets/css/a-guide-to-flexbox/

Re: Is there too much CSS now?

#118
post #47

Nope. Flexbox makes it easy to just use plain CSS nowadays. No more SASS or any other preprocessor nonsense. Not even a fan of Tailwind (too much complexity for dubious benefit). CSS has never been better and now there's just the right amount of it. Also now that there's no more need for crazy JS hacks, you can have just a little bit of JS for interactivity and that's it. Front end development is finally pleasant aga…

Flexbox and grid are definitely not the point of the article though, it's all the newer things with much smaller use cases

Re: Is there too much CSS now?

#119

Earlier quoted context omitted.

By that argument JavaScript is also compiled, so this point is wrong no matter how you interpret it… The primary difference between a traditionally compiled language (like C) and CSS and JavaScript is C is compiled before execution and CSS and JavaScript are compiled during execution. There’s a reason why JIT stands for Just In Time compilation [1]. [1]: https://en.wikipedia.org/wiki/Just-in-time_compilation

Yes I know the difference, the point is that the original poster said CSS is faster because JS is interpreted. There is no way to intrepret that statement in a way that makes sense.

Sure there is - some people use interpreted to mean step-by-step, as in imperative. "CSS is faster because JS is imperative" is a charitable and correct reading.

Re: Is there too much CSS now?

#120
post #8

On the upside, all the basic properties and selectors work now across browsers. You don't need to know about hasLayout, mysterious 3px margins or inline-table hacks. If you don't follow the latest hotness of the week, you can develop in one browser, then just quickly check in a couple of others, and 99% of the time it's fine.

May have more to do with only two CSS renderers left (counting blink and webkit as one).

No, I think it's because Microsoft failed their way out of the browser game and then we got auto-updating browsers. IE6 did a terrible job of implementing web standards, with MS deciding to just make up their own damn standards. And updates to IE6 were locked to Windows updates, IIRC. IE7 was big step in the right direction, but it wasn't until IE11 that you could be reasonably sure that developing in FF/Chrome meant it would work roughly the same in IE. But even then, MS wouldn't let you go past IE9 on XP, so in a lot of ways IE9's marketshare was tied with XP's, which took years to dwindle away to a point where you could safely ignore it.

Then Chrome rose to power, which is repeating some of MS's failures with "their own damn standards" here and there, but is largely avoiding the big failures because the browsers update themselves now. Shy of people being stuck on X version because of their work situation, you don't have to worry about a huge chunks of your userbase being stuck on a 5 year old browser anymore because most folks are getting auto-updated and those updates aren't arbitrarily locked behind OS versions like IE was.

Post reply on HN