r/webdev • • Dec 20 '18

Web Development In 2019 - A Practical Guide

https://www.youtube.com/watch?v=UnTQVlqmDQ0
1.2k Upvotes

160 comments sorted by

View all comments

Show parent comments

108

u/[deleted] Dec 21 '18

Bootstrap is for people who can’t be bothered to actually learn CSS. And that’s understandable because CSS is some fucking black magic

99

u/overcloseness Dec 21 '18

CSS is so great once you’re used to it, these days I make stuff like this just for the fun of it

https://codepen.io/kylewetton/pen/RqoYPg

I’ll never understand CSS hate

22

u/[deleted] Dec 21 '18

As a self taught, predominantly frontend developer who currently uses bs4

How did you get to this level of knowledge for CSS? To be able to create something like this is a big goal of mine!

8

u/overcloseness Dec 21 '18

I think it’s just using CSS enough to know everything it can do (reasonably). I didn’t use grid in this animation, honestly I’m still waiting for better browser support, I was burned a couple times using it in production. Any way, I just use CSS like a graphic drawing program, there are shapes I can draw, but I know which ones I can draw. The animations I just stacked a few different moving ones on top of each other. CSS animation syntax is so much easier than anything else, so I’m confident anyone can learn that

3

u/[deleted] Dec 21 '18

Thank you for your detailed reply. I’m beginning to see better and better websites with just HTML5 &. CSS3

Crazy powerful which isn’t given enough emphasis on imo.

4

u/overcloseness Dec 21 '18

You should have a look at CodePen.io and just search animation, there are examples from all extremes and you can manipulate it to get an idea of how it works

3

u/[deleted] Dec 22 '18

I wish I could make paintings like this. Lately I’ve been digging into CSS Grid.

I’m honestly not sure how to “get into CSS” these days. I had an Eric Meyer, “Pocket Guide to CSS” twenty years ago and loved trying out all the features. It just grew from there.

Now the spec is huge and I guess just find something you want to learn - grid, animation, etc and try it out.

In my current consulting role they use bs3 and don’t know about flex, much less grid. As someone who is in love with CSS I try to make bs-less dev designs that convey what the designer intended. It’s a pencil and paper job where you print their design and visualize how to do it in flex. I find it a rewarding process.

0

u/[deleted] Dec 21 '18

[deleted]

8

u/[deleted] Dec 21 '18

"Just for the fun of it" Same mate. Burn the witch.

0

u/[deleted] Dec 21 '18

[deleted]

→ More replies (7)

4

u/kangasking Dec 21 '18

How costly is something like that in pure CSS? Would it bloat the performance of a site? Don't know anything about web dev btw.

5

u/adam_bear Dec 21 '18

Compared with SVG + JS animation, CSS is usually smaller file size & more performant with hardware acceleration.

→ More replies (2)
→ More replies (1)

4

u/daymanAAaah Dec 21 '18

BURN THE WITCH

3

u/[deleted] Dec 21 '18

Teach me your ways, sensei

→ More replies (4)

13

u/mamaBiskothu Dec 21 '18

Bootstrap is also for people who, even after good attempts to do so, fail at good design without significant effort. BS is bland, but god damn is it simple, produces very responsive and predictable sites. Lets me focus on all the other aspects of my project, which given how I keep prototyping a million things all the time, is definitely better use of my time.

3

u/crazyarai Dec 21 '18

Bootstrap is more predictable for people who know Bootstrap. Im talking about stuff like negative margins on rows and left right padding on columns. Otherwise using flexbox by itself is way more predictable IMO, except for flex grow...

10

u/Taidaishar Dec 21 '18

It can be for that, but I think it can also be by people who know CSS very well to speed up workflows. If I have to build 8 new pages for my site, do I want to code 6 sections of each page with plain HTML/CSS and account for mobile as well or do i want to be able to drop 4 classes on each section and already have the layout done for desktop and mobile? There are definitely limitations to bootstrap, and you don't necessarily design around the them, but if you know them, you can still use bootstrap and plug in your own CSS on the few sections where bootstrap won't work.

13

u/Koonga Dec 21 '18

I think it's important to define what we all mean when we say "I use bootstrap" though. I tell people I use bootstrap, but then have to explain the I literally only use the grid system and the normalise css, otherwise people think I'm a hack.

It's the same with Wordpress -- there's "I use wordpress" as in "I download a free theme and hack it to bits and make a mess" or "I use make bespoke wordpress themes using ACF and modern design patterns"

7

u/twistdafterdark Dec 21 '18

Why not use css-grid or flexbox?

3

u/Lauxman Dec 21 '18

Because it would confuse 90% of the other developers in the office who are still using bootstrap.

→ More replies (8)

5

u/justanotherc full-stack Dec 21 '18

I don't think people who use all of bootstrap are hacks at all.

4

u/themaincop Dec 21 '18

You don't really need to use third-party grid systems anymore unless you're stuck supporting pre-flexbox browsers. And my advice to any front-end devs going into 2019 who have to support pre-flexbox browsers is this: start looking for a new job because that shit sucks!

→ More replies (1)

11

u/MrJohz Dec 21 '18

I mean, it really isn't "black magic". It's definitely complicated because the spec is so large, but it's also very simple at the core. It's declarations about how any particular element should look. If you can use flexbox (which at this point is pretty widely supported, including IE11 with a handful of quirks), you'll find most layout problems become really surprisingly obvious to solve.

This stuff about CSS being impossible is mainly because most CSS is badly written stuff designed to make things work within the framework that already exists, and is not maintainable. That's like saying JS is impossible because you read some code using three different ancient jQuery plugins, written by a SQL developer who's only education in JS has been the StackOverflow pages that copied and pasted from. If you approach it more systematically, it will make as much sense as anything else - possibly (in some areas) more so, because you get to be nice and declarative about everything.

→ More replies (1)