News for hackers. Stuff that matters.
Re:Bootstrap 4's mobile-first flexbox grid system, now used ... by myf01d on Wednesday January 11, 2017 @07:19AM (#13373418)
Bootstrap is useless except for simple static websites. I am not here to start a flame war but I think Bootstrap has no future unless for beginners and very simple projects. For jQuery based frameworks, I recommend Semantic UI.
Re:Bootstrap 4's mobile-first flexbox grid system, now used ... by metaloha on Thursday January 12, 2017 @11:00PM (#13388310)
I'm doing a root-level reply so it doesn't start out too buried :)

Most people use Bootstrap and Foundation completely wrong. They're meant as RAD (Rapid Application Development) frameworks, not production-level frameworks.

For example (using Foundation because I'm more familiar with it), you should never have a `div` with the classes `small-12 medium-6 columns`. That's what you do during prototyping. For production, your `div` will have a class like `main_cta` and in your SASS you are calling Foundation's grid mixin.

Production sites shouldn't include anything not being used, which is why libraries like Foundation have discrete components. You only include the ones you need (both CSS and JS), with the assumption that you are doing your own minifying and combining or whatever.

Re:Bootstrap 4's mobile-first flexbox grid system, now used ... by camus2 on Wednesday January 11, 2017 @08:00AM (#13373600)
If you're goal is a UI with widgets for a dashboard then yes, using Bootstrap makes no sense.

To be fair, if everybody took a little bit of time learning basic CSS nobody would need bootstrap either, especially when rendering differences between modern browsers hardly exist AND the fact that bootstrap doesn't support older browsers anymore.

Re:Bootstrap 4's mobile-first flexbox grid system, now used ... by StevePerkins on Wednesday January 11, 2017 @07:24AM (#13373445)
The thing is... I would say that UIkit is better, and there's some other guy at the bottom of this thread getting downvoted into oblivion for saying the same thing about Material Design.

Momentum is a pretty powerful thing.

And at the end of the day, ALL of these frameworks are pretty much limited crutches for appdevs who aren't that great with CSS. They have more in common than they have separating them.

Re:Bootstrap 4's mobile-first flexbox grid system, now used ... by myf01d on Wednesday January 11, 2017 @07:29AM (#13373462)
With Semantic UI, you can control every single parameter, remove useless components, and you can add/override rules without messing with/modifying its files.
Re:Bootstrap 4's mobile-first flexbox grid system, now used ... by StevePerkins on Wednesday January 11, 2017 @07:38AM (#13373503)
You know what else can do that? Writing your own CSS in the first place, no more complex than it needs to be. :)

I tend to rank these things on a balance... of having the functionality that I'm likely to use, versus simplicity and learning curve of the functionality that's there.

So I like UIkit for side projects because it has a lot of built-in components that Bootstrap makes me find external plugins for (e.g. datepicker), and doesn't have a lot of Bootstrap crap that I never use (e.g. jumbotron, wells). It looks great, doesn't have any kind of complex "build system", and takes a few hours to learn. If I wrote a webapp that turns into the next big thing, then I'd have a real web designer redo the static stuff anyway.

Re:Bootstrap 4's mobile-first flexbox grid system, now used ... by myf01d on Wednesday January 11, 2017 @07:45AM (#13373535)
Of course you're right, I was talking more about serious projects run by a very small number of people (1-3), and under very limited timespan and budget. Companies won't need css frameworks anyway in most cases.
Re:Bootstrap 4's mobile-first flexbox grid system, now used ... by virtualwhys on Wednesday January 11, 2017 @09:06AM (#13373914)
> remove useless components

How about removing SUI's jQuery dependency? [1] :)

[1] https://github.com/Semantic-Org/Semantic-UI/issues/1175

Re:Bootstrap 4's mobile-first flexbox grid system, now used ... by Method-X on Wednesday January 11, 2017 @09:55AM (#13374280)
Re:Bootstrap 4's mobile-first flexbox grid system, now used ... by virtualwhys on Wednesday January 11, 2017 @11:15AM (#13374949)
I'd love to use SUI with effects written in plain javascript sans gigantic dependencies.

Replacing a 100KB jQuery dependency with a 500KB React dependency I'd hardly call a solution. What happens when the next big thing hits JS land? As it stands the SUI author refuses to refactor out the jQuery dependency due to the amount of work involved.

Re:Bootstrap 4's mobile-first flexbox grid system, now used ... by JoshGlazebrook on Wednesday January 11, 2017 @07:29AM (#13373465)
UIkit looks really nice, I'll have to give it a try.
Re:Bootstrap 4's mobile-first flexbox grid system, now used ... by berry_sortoro on Wednesday January 11, 2017 @08:00AM (#13373606)
Pretty bold claim to say the most popular framework has no future.

I guess most websites are "very simple projects" for your standards. Not everyone codes full fledged JS applications with whatever you do. I am certainly not a beginner and I like BS and I think it still has a very bright future ahead. BS 4.0 is the prefect framework for the average modern website. I am sure Foundation and other Frameworks are great as well, I actually never really compared. BSs devteam is highly active and the amount of exposure it gets and the fact that I know how it works makes me stick with it.

Re:Bootstrap 4's mobile-first flexbox grid system, now used ... by myf01d on Wednesday January 11, 2017 @08:08AM (#13373643)
I meant by "very simple projects" static websites and dynamic websites that have very limited dynamism, pages. But something like Semantic UI, you can rely on it to build complex dynamic structures with sensible and good looking defaults, If you want more, it's very easy to customize without conflicting Semantic files with your customizations.