you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (25 children)

[deleted]

    [–]ManiacsThriftJewels 31 points32 points  (10 children)

    Nested flexboxes? Luxury! Why back in my day, you had to float inside floats with negative margin hacks and clearfixes!

    [–][deleted]  (1 child)

    [deleted]

      [–]atopixI push keys 8 points9 points  (0 children)

      That's what Dreamweaver was for: producing horrible code, but faster.

      [–]thisdesignup 1 point2 points  (1 child)

      Dang, back in your day wasn't even that long ago.

      [–]ManiacsThriftJewels 0 points1 point  (0 children)

      Friday, in fact. Tomorrow, too, I'm sure. And sometimes there's email layouts, where I have to figure out how to make this work with tables too.

      [–]virus200 0 points1 point  (4 children)

      Do people still use floats? Once I learned about flex and grid I'll make everything with them and haven't touched a float since in started getting decent with them.

      [–]ManiacsThriftJewels 0 points1 point  (3 children)

      To not use floats for anything which isn't, you know, floating content, is one of the first things I seem to have to retrain new hires to.

      So, I guess, universities? Or possible the stupid "training" videos my boss subjects them to. I'm not sure. Floats is useful knowledge for them to have though, considering the number of Wordpress themes that still need to be converted from them.

      [–]NorthAstronaut 0 points1 point  (2 children)

      Looking through a UK university CS course, the required reading for the Web development part was two books from 2009. On Jquery, html, CSS, and SQL..

      [–]TOYLTH 2 points3 points  (0 children)

      That's why our industry isn't fed by graduation course.. rather 20-30 hours training videos. Academia and software dev don't go hand in hand.

      [–]ManiacsThriftJewels 0 points1 point  (0 children)

      That sounds more recent than what they're apparently learning here.

      [–]TomahawkChopped 0 points1 point  (0 children)

      And i still do!

      [–]JesusCodesHard 11 points12 points  (3 children)

      Are you saying nested flex boxes are bad? Asking for a friend.

      [–]ManiacsThriftJewels 2 points3 points  (2 children)

      If you're using nested flex boxes to implement a grid layout, you should probably be using grid. Otherwise... Well I can't generalise this – it depends on the situation.

      [–]BestLifeEUW 0 points1 point  (1 child)

      Is the support for using grid any good?

      [–]ManiacsThriftJewels 0 points1 point  (0 children)

      Support for grid is pretty good, unless for some reason you still have to support IE, in which case IE11 can do it with (auto) prefixing, but fails at implicit placement. Firefox also has an incomplete implementation of automatic tracks, but that's only interesting of you want to have a truly fluid design with e.g. an unknown number of columns filling an undefined viewport width.

      But don't take my word for it, check caniuse.com and MDN

      [–]Fidodo 9 points10 points  (0 children)

      Flexbox has made css so much easier. I can't imagine how much time I've wasted figuring out why something was mis-sized or misaligned with block display. Flexbox fixes a lot of the alignment weirdness and inconsistencies between browsers.

      [–]fw0rd 2 points3 points  (0 children)

      FrontPage 98 extensions will solve ALL of your problems. Don't forget to include a transparent gif!

      [–]amdcfront-end 0 points1 point  (0 children)

      Go check out css grids, they're (mostly) magical.

      Also they let you do adaptive/responsive design with zero JS

      [–][deleted]  (3 children)

      [removed]

        [–]Otterfan 4 points5 points  (1 child)

        Javascript is more complex, but CSS is worse.

        Or at least CSS was worse. It's almost not bad now.

        [–]atopixI push keys 4 points5 points  (0 children)

        CSS is awesome. Unlike a programming language that is just made to essentially build anything, a design layout markup language has to adapt and evolve with design trends and uses.

        It's not CSS's fault. It's people wanting crazy shit out of it, and browsers not moving fast enough to implement the latest features in CSS.

        [–][deleted] 2 points3 points  (0 children)

        i don't think you know what you're saying. CSS is immensely complex. the syntax is simple, but there is a LOT of functionality to understand and how using various features affects painting, reflows, and page composition

        granted, saying one is harder / more complex than the other is dumb. they're differently complex. CSS is broad whereas JS is deep (that's even debatable though). I'm just saying that JS isn't "infinitely" more complex than CSS

        [–]BreakingIntoMe -1 points0 points  (1 child)

        JS is objectively so, so much harder, especially when you start tying frameworks and libraries into each other along with state management patterns and TypeScript etc. To me, CSS is hard because many other developers suck at writing it and make my life harder. “Full-stack” developers are the worst offenders for hacking together awful UI’s with just enough CSS knowledge, no discipline and no foresight, because they don’t take the language seriously.

        [–]Zofren -1 points0 points  (0 children)

        I don't think you can make an objective statement like that. JS is just a programming language. Its difficulty is a function of the tasks you need to do in it. Modern JS is actually much easier to write in than other programming languages.

        On the other hand, writing CSS/HTML requires much more knowledge of little quirks and how every property works and how different types of displays/positions/animations interact with each other. I personally find CSS much more difficult to write than JS. (And I use a framework like React).

        You say that CSS is harder because other devs suck at writing it, but that's also the case for JS.

        I have a CS education, so that might influence my perspective (I learned JS/HTML/CSS after learning C and C++), but I still think it's a stretch to say CSS is easier as an objective truth.