News for hackers. Stuff that matters.
Re:Bootstrap 4 Beta by inertial on Friday August 11, 2017 @02:56AM (#14987226)
I've been using bootstrap 3 for most of my public projects for a few years and bootstrap 4 for some internal projects. I make it a point to try new & popular CSS frameworks every few months and ultimately thank God for bootstrap. It has stood the test of time for all these years.

Things that I like about bootstrap are : stability, performance, easy custom builds, community support (almost every problem has been addressed on Stackoverflow), ecosystem (themes, extensions, tools). The design out of the box might look cookie cutter, but if you know basic CSS, it is very easy to customize it with minimal effort. Just lookup examples on codepen/stackoverflow.

Some people complain about bloat but this is amazing : https://getbootstrap.com/docs/3.3/customize/ . I have public facing websites with thousands of visitors per day. The performance rating is better than 90% of the websites.

Truly want to thank @mdo @fat @cvrebert and the rest of the team for this amazing project.

Re:Bootstrap 4 Beta by puranjay on Friday August 11, 2017 @03:36AM (#14987407)
I'm not a programmer nor have I ever taken any HTML/CSS classes. The last time I learned HTML/CSS was back in 2000 when WebMonkey was still popular.

Thanks to Bootstrap, I've managed to build some very professional looking websites, coded entirely from scratch, all with my existing HTML/CSS knowledge.

Just a phenomenally useful framework for non-coders like myself.

Re:Bootstrap 4 Beta by CM30 on Friday August 11, 2017 @10:30AM (#14989982)
It's also phenomenally useful for non designers too. I mean okay, is it the most pretty framework? Of course not.

But it's got a consistent look and feel to all components, and that look is a mile above anything I could design from scratch.

So in the same way you use it to build professional looking websites with limited HTML/CSS knowledge, I use it to build sites with very limited design knowledge and no sense of aesthetics.

Re:Bootstrap 4 Beta by gedrap on Friday August 11, 2017 @11:40AM (#14990756)
Absolutely. I'm a backend/infrastructure guy and spent a lot of time creating internal tools with web interfaces over the past 3 years. Thanks to Bootstrap, they look decent, modern, took very little time and people were happy to use them. Sure, not the most original designs, but that's light years ahead of crappy interfaces I'd have produced otherwise.

Some engineers like to complain about 'yet another bootstrap template' a lot, and I can understand that it gets a bit dull and boring, but that's much better than the alternatives.

Re:Bootstrap 4 Beta by philliphaydon on Friday August 11, 2017 @03:58AM (#14987528)
I had been using bootstrap for a while until I found http://bulma.io now I can't stand bootstrap.

Still bootstrap has been amazing over the years.

Re:Bootstrap 4 Beta by subsection1h on Friday August 11, 2017 @06:41AM (#14988250)
Bulma's hoverable dropdown menus don't seem to be accessible via keyboard navigation. One of the nice things about Bootstrap is that the developers have closed more than 15,000 issues, and in the process, have addressed many edge cases that other CSS frameworks haven't.
Re:Bootstrap 4 Beta by timdorr on Friday August 11, 2017 @10:37AM (#14990045)
That's a fair point (issues closed) and is actually pointed out on their comparison to Bootstrap page: http://bulma.io/alternative-to-bootstrap/
Re:Bootstrap 4 Beta by rkuykendall-com on Friday August 11, 2017 @06:17PM (#14994807)
They're going to have to drop all their flexbox language once Bootstrap 4 leaves beta.
Re:Bootstrap 4 Beta by inertial on Friday August 11, 2017 @04:43AM (#14987740)
I've been watching bulma and it's definitely promising. Would you care to elaborate what are the things that you "can't stand" with bootstrap ?

After having used bootstrap for so long, I understand it's strengths & shortcomings quite well. I feel there's little to complain with bootstrap, and little to gain by ditching it. Would love to be proved wrong.

Re:Bootstrap 4 Beta by rdsubhas on Friday August 11, 2017 @06:22AM (#14988156)
Unless you're using bootstrap components as-in-the-examples in the same context and elements, they work fine. But try using them somewhere, like an input or button in a table cell, or card in a grid, etc - and you'll spend an eternity of "unsetting".

Basically bootstrap is not composeable. It provides not just a set of styles - but also a severely restricted visual design. People quickly run into elements that bootstrap was just not designed to be placed into. That's why there are so many forks/extensions of bootstrap, like bootstrap-admin and so on.

So its good to start with and follow the official style guide. But doing anything more, and the restrictions immediately bubble up. And then you quickly run into an entirely different set of problems on organizing your own CSS, like using SASS, BEM, etc.

Its not a question of OOCSS vs BEM, but more of how tolerant/accomodative the framework is in using it in different elements and contexts. Bootstrap's tolerance is relatively low compared to most other frameworks.

Re:Bootstrap 4 Beta by SippinLean on Friday August 11, 2017 @10:10AM (#14989793)
How is Bulma different in that regard?

BS4's modules and components are highly portable and work in pretty much any context. I don't see how offering a theme customization tool results in a "severely restricted visual design", it allows the freedom to make any visual design you want. BS4 is MUCH more than visuals/UI.

Re:Bootstrap 4 Beta by inertial on Friday August 11, 2017 @07:39AM (#14988598)
> bootstrap is not composeable

Definitely share that pain. Is there a mature framework that solves it ?

Re:Bootstrap 4 Beta by philliphaydon on Friday August 11, 2017 @06:25AM (#14988181)
It's hard to explain. I've used it for many projects in the past and currently use it at work.

For creating a quick and dirty project it's great. But after a while you find you end up using less and less of bootstrap because moulding it to your requirements becomes a burden. That's prob why you rarely see big complex sites using it.

There's nothing worse than using react or angular and then someone pulls in a library to have a bootstrap control that breaks stuff and doesn't work and is hard to style. Spend hours trying to get it working properly beyond the most basic implementation of the control.

I prefer bulma because it focuses more on the basics and doesn't get in the way. Even after you create stuff you can shape and mould t easily.

Re:Bootstrap 4 Beta by alfonsodev on Friday August 11, 2017 @01:08PM (#14992025)
I found interesting the architecture of Google material design components, I still didn't try but I wonder if could solve those kind of problems that you mention.

>"bootstrap control that breaks stuff"

I like the idea of adapter more than having a separated framework like react-material design or react-bootrap.

https://material.io/components/web/docs/architecture-overvie...

Re:Bootstrap 4 Beta by SippinLean on Friday August 11, 2017 @10:13AM (#14989825)
>That's prob why you rarely see big complex sites using it.

What? Lyft, NASA, FIFA? Is there a list of major sites that are using Bulma? By your appeal to the bandwagon this makes it an inferior framework?

A basic grid and some buttons are nice for a pet site, it doesn't appear to be a robust enough framework for any site of significant size. I guess I could write the CSS and JS for a modal from scratch, or I could just install Bootstrap and never think about it again.

Re:Bootstrap 4 Beta by SippinLean on Friday August 11, 2017 @10:08AM (#14989774)
Bulma is severly limited compared to BS4, lacking many major components (I don't even think there are any JS components) and all the best parts are almost identical to BS, in same cases with identical naming. There is no tool to customize your theme, like BS has.

I can take the BS source, comment out half of it and end up with Bulma. If I started with Bulma, I'd have to write lots of code to end up with a framework that rivals BS.

Re:Bootstrap 4 Beta by philliphaydon on Friday August 11, 2017 @11:07AM (#14990405)
No Javascript is great. Bootstrap requires jquery, some making some events really hard to manage with react or angular. And react/angular bootstrap libraries are restrictive that it makes it hard to extend features of bootstrap.

All these issues go away with bulma.

No tool to customise theme is great. I don't want a bootstrap looking theme. It gets in the way... bootstrap is structure and styling throwing in the kitchen sink and half the house but not adding any doors or windows and you can't hide a builder to add more without it costing a kidney.

Re:Bootstrap 4 Beta by SippinLean on Friday August 11, 2017 @11:10AM (#14990430)
>No Javascript is great

Then don't use the JS parts of BS?

>No tool to customise theme is great. I don't want a bootstrap looking theme.

These sentences are contradictory. The tool allows you to make a theme that doesn't look like everyone else's. Bulma does not have this option. You will end up with a "Bulma-looking" theme.

>It gets in the way

Unlike Bulma's visual styling? If you don't want a default-looking theme, wouldn't you need to customize it then? Doesn't lacking any tools to do so make this harder? I don't understand this argument.

Re:Bootstrap 4 Beta by philliphaydon on Friday August 11, 2017 @11:55AM (#14990976)
Sometimes styling bootstrap is Super frustrating.

Same with foundation and semantic UI. Bulma and other small libraries are much more flexible in this regard.

Re:Bootstrap 4 Beta by tracker1 on Friday August 11, 2017 @05:44PM (#14994583)
There are other toolkits for bootstrap that don't use the jquery based JS.. you can use anything, as long as the rendering uses the correct classes for a given state, etc.
Re:Bootstrap 4 Beta by wolco on Friday August 11, 2017 @01:44PM (#14992411)
That's a feature and reason for using smaller libruaries because if you only need some pieces why include everything.

I find full frameworks like bootstrap or quasar to be nicer to deal with.

Re:Bootstrap 4 Beta by kimjongman on Friday August 11, 2017 @04:06AM (#14987563)
Looks good. I'm going to try bulma for my next project
Re:Bootstrap 4 Beta by koverda on Friday August 11, 2017 @04:02AM (#14987543)
Why do you prefer bulma?
Re:Bootstrap 4 Beta by petepete on Friday August 11, 2017 @04:28AM (#14987668)
Bulma, and others like it (Milligram is my favourite) have enough functionality to get going: responsive layout/grid, typography, form styling) but they don't have a huge, heavy set of components and requirements like Bootstrap.

I think people really au fait with CSS prefer to add only what they need rather than serve Bootstrap entirely.

Re:Bootstrap 4 Beta by allover on Friday August 11, 2017 @11:30AM (#14990660)
> but they don't have a huge, heavy set of components and requirements like Bootstrap.

But that's all optional, Bootstrap is modular [1] [2] [3].

[1] https://getbootstrap.com/docs/3.3/customize/

[2] https://github.com/twbs/bootstrap-sass/blob/master/assets/st...

[3] https://github.com/twbs/bootstrap/blob/v3-dev/less/bootstrap...

Re:Bootstrap 4 Beta by SippinLean on Friday August 11, 2017 @10:04AM (#14989741)
> but they don't have a huge, heavy set of components and requirements like Bootstrap

That's a drawback. For BS3 or 4 I can just comment out what I don't need. If I do need many of the components and JS modules that Bootstrap provides OOTB, I have to write them myself. I'm using a CSS framework to avoid doing that.

Re:Bootstrap 4 Beta by JTenerife on Friday August 11, 2017 @06:36AM (#14988229)
I've just started using Bulma with Angular. I don't need or want any javascript, but a pure CSS framework, which Bulma is.

Edit: And can be easily customized.

Re:Bootstrap 4 Beta by kostarelo on Friday August 11, 2017 @05:21AM (#14987913)
It is bloat. Until you meet a CSS preprocessor.

https://github.com/kbariotis/kostasbariotis.com/blob/master/...

I can just include what I need and override what I want.

Re:Bootstrap 4 Beta by tracker1 on Friday August 11, 2017 @05:45PM (#14994596)
Agreed, it's been my preferred way to use BS for a long while, first with less, then scss... You can leave a lot behind, and with react/angular there are ui components that don't require all of jQuery.
Re:Bootstrap 4 Beta by thinkxl on Friday August 11, 2017 @01:16PM (#14992118)
This.
Re:Bootstrap 4 Beta by geekamongus on Friday August 11, 2017 @09:08AM (#14989246)
For me, the bloat isn't as big a problem as the fact the 3.x is unmaintained and has at least one known security vulnerability.

https://github.com/twbs/bootstrap/issues/20184#issuecomment-...

Re:Bootstrap 4 Beta by heartbreak on Friday August 11, 2017 @09:22AM (#14989346)
That’s as much a vulnerability as <script> letting me pipe user input to it. Should I? Of course not. Can I? Yes. Is it a flawed feature for this reason? No.
Re:Bootstrap 4 Beta by ceejayoz on Friday August 11, 2017 @10:15AM (#14989841)
Calling that a security vulnerability is quite the stretch.
Re:Bootstrap 4 Beta by geekamongus on Friday August 11, 2017 @10:57AM (#14990279)
I am not sure how an XSS vulnerability is considered a stretch. Perhaps the likelihood of it is low. Is that what you meant?

That still doesn't address the overall point, which is that Bootstrap 3 is no longer maintained, according to its project Owner, and this or any future vulnerabilities may or may not be patched. That seems like a significant risk to me.

Re:Bootstrap 4 Beta by ceejayoz on Friday August 11, 2017 @12:29PM (#14991495)
It's not an XSS vulnerability in Bootstrap for the same reasons

  <div class="row"> UNESCAPED USER INPUT </div>
or

   <img src="UNESCAPED USER INPUT">
aren't - escaping user input is up to the developer, not Bootstrap. Being essentially a static HTML/CSS framework with a bit of well-tested optional JS, Bootstrap's attack surface is minimal, making future vulnerabilities a pretty unlikely situation. A quick perusal of Github's issues search for "security" finds nothing significant in the past.
Re:Bootstrap 4 Beta by geekamongus on Friday August 11, 2017 @01:04PM (#14991962)
I will echo this person: "This was found in an application where data-target was based on user input and only passed through standard HTML entities encoding. There is no reason why data-target should interpret HTML so while not impacting many applications it should be fixed in my opinion."

https://github.com/twbs/bootstrap/issues/20184#issuecomment-...

Re:Bootstrap 4 Beta by ceejayoz on Friday August 11, 2017 @02:22PM (#14992752)
Echoing a wrong statement doesn't make it any less wrong.

If you don't want XSS, don't echo untrusted raw user input to the browser. Not in the title tag, not in a paragraph body, not in a data attribute. It's on you, or your application framework. Expecting Bootstrap to combat it is insane.

Re:Bootstrap 4 Beta by mdo on Friday August 11, 2017 @03:29AM (#14987381)
<3
Re:Bootstrap 4 Beta by thinkxl on Friday August 11, 2017 @01:15PM (#14992109)
Accessibility is another benefit from using Bootstrap. From someone who "hated" bootstrap in the past, this feature is the most significant for me.