r/ProgrammerHumor • • Nov 26 '19

Not the time, dad

Post image
59.0k Upvotes

705 comments sorted by

View all comments

Show parent comments

34

u/Cruuncher Nov 26 '19

Isn't flexbox outdated already? IDK, I haven't written a line of CSS in like 5 years

13

u/minicl55 Nov 26 '19

Wait is it really? I haven't done a lot of frontend recently (at least, nothing that required anything crazy), what are you supposed to use instead? I really liked flexboxes. Grids?

16

u/kwietog Nov 27 '19

No it's not it's really useful. Use flex for flex things, use grid for layout.

1

u/[deleted] Nov 27 '19

Lol the last time I wrote css div where cool.

5

u/meijboomm Nov 26 '19

Grid is basicly flex in 2 directions, an a lot easier tbh.

2

u/jhanschoo Nov 27 '19

Flexbox is still bread-and-butter in modern layout. Grid is nice, but is too heavyweight for being handicapped until subgrid sees more adoption.

31

u/TheSecretAstronaut Nov 26 '19

I wouldn't say it's outdated, but it's not as heavily relied upon as it once was. CSS Grid has sort of replaced flexbox and floats for the general layout and partitioning of the site, because it allows more control over things like columns and rows. Flexbox is still really useful for doing things like menus and navigation, or really any fine tuning of things you're trying to position along a single axis. So it's still useful, but there are better tools now to perform tasks that flexbox used to be used for.

18

u/Cruuncher Nov 26 '19

Aye aye Mr. CSS Devloper

10

u/TheSecretAstronaut Nov 26 '19

I should put that on my resume. "CSS Developer," right next to "Professional Expert."

4

u/Cruuncher Nov 26 '19

I've been trying to get Docker Diddler in my title

18

u/[deleted] Nov 26 '19

Sadly, IE 11 does not support CSS Grid : (

11

u/TheSecretAstronaut Nov 26 '19

IE never let's us have any fun :(

5

u/[deleted] Nov 27 '19

IE11 never supported us, why should we support it?

3

u/rounced Nov 27 '19

IE 11 does technically support CSS Grid, but just poorly enough to be frustrating.

3

u/weepmeat Nov 27 '19

Look at autoprefixer. It has support. Just don’t try to use any implicit grids and it works pretty well. Uses nth child selectors to get past the worst of it.

1

u/jhanschoo Nov 27 '19

IME CSS Grid has major shortcomings with layout and partitioning, at least until CSS subgrid ships in more browsers.

9

u/[deleted] Nov 26 '19

That’s kinda the joke I was making

5

u/Cruuncher Nov 26 '19

oh cool, I know something

4

u/alxhghs Nov 26 '19

Web developer here, use flexbox every day.

3

u/robotsympathizer Nov 26 '19

No, it’s not.

1

u/CornishCucumber Nov 26 '19

Depends, the IE support is pretty sucky - and polyfilling it isn't as nice as you'd think it would be - but everyone else seems to think it is so I must be missing something

1

u/Depressed_Maniac Nov 27 '19

Weird flexbox, but ok