Live data from Hacker News

Bootstrap 4 Alpha 6 Released

blog.getbootstrap.com

31–40 of 64 posts

Re: Bootstrap 4 Alpha 6 Released

#31

I sincerely hope BS4 is the last nail in IE9's coffin.

Out of curiosity, is there anything significant other than flexbox that's not in IE9 but is in IE10/11?

Whole bunch of stuff: http://caniuse.com/#compare=ie+9,ie+11

CSS Transitions is probably the biggest one, but there's a lot, and a ton of javascript improvements too.

Re: Bootstrap 4 Alpha 6 Released

#32

Why is there over 1000 !important's in bootstrap.css? I always thought 1 !important was a big no no.

Purism sounds nice in theory, but in practice I have yet to come across a project where at some point an `!important` (or 2) NOT becomes necessary, where it then NOT seems utterly acceptable and in fact fully in line with "the proper natural purpose of !important" (subjectively+situationally perceived, of course) and moreover the only solution to not spend 1-2 weeks refactoring the entire project's very own ad-hoc CSS philosophy/entirety-of-interactions..

(In a framework, different matter quite possibly. Don't they use only-their-own-class-names anyway? Nevermind..)

Re: Bootstrap 4 Alpha 6 Released

#33

I sincerely hope BS4 is the last nail in IE9's coffin.

Out of curiosity, is there anything significant other than flexbox that's not in IE9 but is in IE10/11?

According to http://caniuse.com/#compare=ie+9,ie+10 there's a bunch of the HTML5 form stuff, reliable use of CSS calc(), web workers, WebVTT (subtitles for video), classList, etc.

Re: Bootstrap 4 Alpha 6 Released

#36
I'm really looking forward to Bootstrap 4, it's been one of those key productivity boosters in my arsenal of skills. So, many thanks to the Bootstrap team, you've made the world a better place (if anything, certainly my world).

Though, one thing I noticed going through the docs, the first thing I always look at is the "forms" section. For most apps, forms are probably the most important aspect (at least, for me they are).

I noticed that there are still two type of forms, normal ones and inline. However, when I work on larger apps that require more sophisticated input I often require a mix of both normal and inline forms. Maybe when you're working on SPA's it's easier to have multiple forms on a page and treat them as a single form but for old-school traditional page submit apps it's a little bit more difficult.

Anyhow, I wished they'd make the "form-inline" style more a form group thing rather than a form element thing. Currently the forms have a "form-group" which only contains a single control. To me (and correct me if I'm wrong), "form-group" should actually be named something like "control-group" so that "form-group" could be used to have both a normal and inline style form within the same form, maybe the ability to apply "form-inline" to a or something. If that makes sense..

Anyhow, I'm rambling. Love Bootstrap. Keep it up!

Re: Bootstrap 4 Alpha 6 Released

#37
post #2

What is the best way to extend bootstrap without loosing an ability to update it in the future and also do not have a ton of duplicated code?

It depends on how deep you plan to extend Bootstrap, obviously. I had one project I worked on that did a lot surgery to the Bootstrap files in a branch of fork of the main Bootstrap repository. I don't recommend that if you can avoid, and it was late in that project that I got better at being able to do overrides of the LESS files (as this was Bootstrap 2/3) in other LESS files without needing to edit the Bootstrap sources. There ends up being more duplication by doing it in separate files you control, but it makes it easier to deal with "merge conflicts" from upstream.

From that approach, one useful example I have seen is the infrastructure of the Bootswatch project. [1] Perhaps unsurprisingly for how many themes Bootswatch maintains, their GitHub repository is quite well laid out, easy to learn from, and even easy enough to fork as the basis of your own project.

[1] http://bootswatch.com/

Re: Bootstrap 4 Alpha 6 Released

#38
post #11

what is the compatibility store for third party components/themes based on bootstrap. one of the things I love about bootstrap is being able to google "bootstrap " and get something that works and looks nice. will these third party components need to be re-written and support multiple bootstrap versions?

> what is the compatibility store for third party components/themes based on bootstrap. I can't speak to components, but for themes there's already a migration guide, and I'd expect to see tools that help with the conversion since they're conceptually similar. https://v4-alpha.getbootstrap.com/migration/ > will these third party components need to be re-written and support multiple bootstrap versions? They'll need to…

«It wouldn't surprise me to see popular themes maintain Bootstrap 3 and Bootstrap 4 versions in parallel for a while.»

I recall that happened with the Bootstrap 2 and 3 transition with some components maintaining versions for both for a while.

Post reply on HN