News for hackers. Stuff that matters.
Re:Rebuilding a featured news section with modern CSS: Vox news by winkywooster on Sunday April 30, 2023 @01:43PM (#35764819)
the last line makes me laugh.. while it's true grid layouts make things so much easier then back in the 2000s, web dev today is still just as hard, but for different reasons.
Re:Rebuilding a featured news section with modern CSS: Vox news by nicoburns on Sunday April 30, 2023 @02:06PM (#35765026)
> web dev today is still just as hard, but for different reasons

As someone who did webdev back in the 2000s and still does it now, I do not agree with this at all. Webdev is easy now. Especially with the development of simpler build systems (esbuild, vite, etc) in the couple of years.

Re:Rebuilding a featured news section with modern CSS: Vox news by bigfoot675 on Sunday April 30, 2023 @02:19PM (#35765166)
Or maybe you have just gotten better after doing it for 20+ years? I can't imagine anything being easier than plain HTML and CSS
Re:Rebuilding a featured news section with modern CSS: Vox news by nicoburns on Sunday April 30, 2023 @02:37PM (#35765327)
> I can't imagine anything being easier than plain HTML and CSS

Well you can still make websites with plain HTML and CSS today, and the layout modes (and other niceties like border-radius) that are available today so are much nicer than the ones that were available 20 years AND they work the same in every browser!

20 years ago you were cobbling together layout with tables and floats (you didn't even have `display: inline-block`). And people still wanted vaguely responsive layouts even though there weren't any media queries yet. Plus there were 3-4 major browser engines that you needed to test with, and there were often major differences in both feature support, bugs and layout between them. For example you had to deal with the fact that IE used what is now known as `box-sizing: border-box` while other browsers used `box-sizing: content-box`, and the fact that browsers didn't even parse HTML consistently you could easily end up with different node tree in different browsers.

Re:Rebuilding a featured news section with modern CSS: Vox news by Dalewyn on Sunday April 30, 2023 @10:36PM (#35768535)
>they work the same in every browser!

That's because there's only one (alright, two) browsers.

Re:Rebuilding a featured news section with modern CSS: Vox news by nicoburns on Monday May 01, 2023 @08:41AM (#35772001)
There are 3. Safari is distinct from Chrome these days (even though they are derived from a common base). The fact that you consider them the same is evidence of what I'm saying: that differences in rendering between browsers tend to be minimal these days :)
Re:Rebuilding a featured news section with modern CSS: Vox news by bobthepanda on Sunday April 30, 2023 @04:55PM (#35766543)
Plain HTML and CSS are tedious.

Combine that with the fact that loops and objects don’t have fantastic support, if any, and it’s no wonder everyone and their mother has tried their hand at a templating framework. (WebComponents exist, but fall into a lot of the same traps; I didn’t like what I saw in the MDN tutorial.)

Re:Rebuilding a featured news section with modern CSS: Vox news by evilspammer on Sunday April 30, 2023 @02:30PM (#35765270)
If you're using a JS build system then your webdev sucks already
Re:Rebuilding a featured news section with modern CSS: Vox news by motoxpro on Sunday April 30, 2023 @01:55PM (#35764908)
I'll take anything over the days of float: left;
Re:Rebuilding a featured news section with modern CSS: Vox news by oneeyedpigeon on Sunday April 30, 2023 @02:24PM (#35765220)
float: left is still useful, of course, just for what it was intended rather than what it was abused for.
Re:Rebuilding a featured news section with modern CSS: Vox news by johndunne on Sunday April 30, 2023 @02:44PM (#35765389)
float: left taught me to never skimp on understanding the things you're using to try do the things your doing!
Re:Rebuilding a featured news section with modern CSS: Vox news by madeofpalk on Sunday April 30, 2023 @04:36PM (#35766375)
Web dev has gotten more complex with more complex requirements, but not linearly - its easier to build more complicated products on the web, and as this article shows the primitives we have are much more powerful.

If you want to build something you build back in the 2000s, its so much easier than it was back then.

Re:Rebuilding a featured news section with modern CSS: Vox news by notatoad on Sunday April 30, 2023 @07:50PM (#35767625)
That reminds me one of the rules of cycling: "it never gets easier, you just go faster"

Web dev is way easier now, if all you're trying to do is the same stuff we tried to do in the early 2000s. All the stuff that makes it harder is because we can do some much more now.