News for hackers. Stuff that matters.
Re:Twitter's Bootstrap 2 ready for testing and feedback by ibejoeb on Tuesday January 24, 2012 @03:24PM (#3506552)
The big one, for me at least, is the move from a 16-column grid to a 12-column grid. I didn't look into the technical differences, just those that would impact development with it.

I just converted a ton of stuff (like last week), so it's pretty fresh in my mind. I feel like I should have checked the wip branch first, but this has really become my favorite kit. I've been about 95% YUI and the remainder OOCSS, and Bootstrap is the fastest concept-to-reality I've used.

I'm not too worried about upgrading if there are some compelling reasons to do so.

Re:Twitter's Bootstrap 2 ready for testing and feedback by tptacek on Tuesday January 24, 2012 @03:29PM (#3506573)
I found the dox from Aaron's comment (thanks, everyone!). Bootstrap 2 looks amazing.

What's the win going from 16 to 12 columns?

Re:Twitter's Bootstrap 2 ready for testing and feedback by SkyMarshal on Tuesday January 24, 2012 @04:01PM (#3506753)
>What's the win going from 16 to 12 columns?

Was wondering that too. First thing that comes to mind is that 12 columnn is more flexible for responsive layouts, which is another big addition in v2.

For example, since 12 is divisible by 3, it's easier to create a responsive site with 3 vertical sections that collapse into a single vertical section on mobile devices. (Like the Less Framework's mobile layout: http://lessframework.com/. Not the best example, I know I've seen a better one, but can't find it atm, but that gives the general idea.).

Don't know for sure if that's the reason, though.

Re:Twitter's Bootstrap 2 ready for testing and feedback by ddagradi on Tuesday January 24, 2012 @03:49PM (#3506689)
A 12-column grid lets you easily mix 3-colum and 4-column layouts. A 16-column grid does not.

[edit] Essentially it's more expressive. Another commenter correctly mentioned that it could have the same advantages above for a responsive design. 12-columns allow for greater freedom of expression at all display sizes.

Re:Twitter's Bootstrap 2 ready for testing and feedback by ThomPete on Tuesday January 24, 2012 @04:27PM (#3506891)
You get better divider flexibility with the columns.

You basically can divide it in half (6 columns each), in thirds (four columns each) in fourth (three columns each), in 6th (two columns each and in all 12 plus of course spanning the entirety.

16 gives you only 1, half,

Re:Twitter's Bootstrap 2 ready for testing and feedback by tstegart on Tuesday January 24, 2012 @05:02PM (#3507103)
Any recommendations on how to use grids? I've seen them talked about but I don't actually know what to do with it. How does it help you?
Re:Twitter's Bootstrap 2 ready for testing and feedback by ThomPete on Tuesday January 24, 2012 @06:09PM (#3507439)
You use grids to group and align your content.

Basically you need look at your design in order to determine what would make most sense.

A very popular choice is to divide it into three equal sizes and then have one of them be the right or left column, while the two others combine to form the other column.

So you end up with two columns one for content and one for navigation (typical blog look)

Grids can obviously also be much more complicated as those used in photoshop, 3dmax, word or windows/osx.

If you want to get really into grids I can recommend probably the best book written about them.

Josef Muller Brockman Grid Systems

http://www.amazon.com/Systems-Graphic-Systeme-Visuele-Gestal...

Re:Twitter's Bootstrap 2 ready for testing and feedback by tptacek on Tuesday January 24, 2012 @07:34PM (#3507734)
I have this book and like it, but I doubt it's particularly useful for the typical nerd wiring up a credible looking web application.
Re:Twitter's Bootstrap 2 ready for testing and feedback by tstegart on Tuesday January 24, 2012 @08:09PM (#3507849)
Can you recommend a different book that would be more useful to someone trying to edit Twitter Bootstrap from a beginner's perspective?
Re:Twitter's Bootstrap 2 ready for testing and feedback by tptacek on Tuesday January 24, 2012 @08:28PM (#3507927)
You don't need a book. You just need to build a hello-world application with the Bootstrap CSS/JS code, using one of the layouts they provide as a starting point. Then just use the page of Bootstrap demos as an a la carte menu as you find yourself needing UI features.

The Grid Systems book that was recommended earlier is a better bet if you're a typographer or graphic designer, and particularly if you're thinking about designing novel grid systems. But you're not doing that. The Bootstrap grid is trivial and does not require any background in design to use.

Re:Twitter's Bootstrap 2 ready for testing and feedback by ThomPete on Wednesday January 25, 2012 @04:14AM (#3509004)
That doesn't mean one can't educate oneself on what it is though no?

I mean I am a designer but still taught myself programming and is generally interested in technology.

Understanding design better will make you a better programmer IMHO.

Re:Twitter's Bootstrap 2 ready for testing and feedback by tptacek on Wednesday January 25, 2012 @12:20PM (#3510625)
All I can offer here is my opinion. I have the book. I like it, because I geek out a little on typography and graphic design (I am horrible at both). I wouldn't put the book on my "buy immediately" list of practical design books for developers.

_Elements of Typography_ (which also has some coverage of grids, along with meter systems), yes. _Elements_ is a buy-immediately book (and a joy to read).

Re:Twitter's Bootstrap 2 ready for testing and feedback by moizsyed on Wednesday January 25, 2012 @04:21AM (#3509026)
Khoi Vinh's Ordering Disorder is a good book on grids, and its focused entirely on web design.

Although, nothing beats Brockmann's Grid Systems book mentioned earlier.

http://www.amazon.com/Ordering-Disorder-Principles-Design-Vo...

Re:Twitter's Bootstrap 2 ready for testing and feedback by tptacek on Tuesday January 24, 2012 @05:43PM (#3507308)
Your whole web app becomes a giant nesting table, using divs, classes, and CSS instead of HTML table markup. The math on cell sizes is already done for you, and you're not stuck with wonky table markup and styling.
Re:Twitter's Bootstrap 2 ready for testing and feedback by dangrossman on Tuesday January 24, 2012 @05:36PM (#3507267)
You can line up every element in your design without figuring out and writing widths and margins for every element by hand. You just assign one of the provided class names and you automatically get the desired result.
Re:Twitter's Bootstrap 2 ready for testing and feedback by tstegart on Tuesday January 24, 2012 @05:55PM (#3507371)
So how do you find what to adjust in the CSS? Just read through it until you figure it out? For example, if I wanted to make four columns instead of three?
Re:Twitter's Bootstrap 2 ready for testing and feedback by dangrossman on Tuesday January 24, 2012 @06:04PM (#3507417)
You don't have to edit the CSS at all. You don't even have to open the file, ever, to use Bootstrap. Just link it in the head of your document like any stylesheet and use the class names from the documentation.

Want something on your page to be 3 columns wide? <div class="span3">...</div>

Want to make it 4 columns wide instead? <div class="span4">...</div>

Re:Twitter's Bootstrap 2 ready for testing and feedback by tstegart on Tuesday January 24, 2012 @06:27PM (#3507516)
You sirs, are both awesome. I think I need to do more research into all of this and find a good how-to guide because if I didn't know how to do the above, I probably shouldn't be doing it until I know more. I've been down that path before and it leads only to frustration when I realize I know no idea what I'm doing :)
Re:Twitter's Bootstrap 2 ready for testing and feedback by tptacek on Tuesday January 24, 2012 @06:01PM (#3507402)
In Haml:

  .span3
    = render :partial => "col1"
  .span3
    = render :partial => "col2"
  .span3
    = render :partial => "col3"
  .span3
    = render :partial => "col4"
Or, to do 3-col:

  .span4
    = render :partial => "col1"
  .span4
    = render :partial => "col2"
  .span4
    = render :partial => "col3"
Nothing in the partial needs to especially care about the grid (as long as its simple) --- but if it wanted to, it could nest columns.
Re:Twitter's Bootstrap 2 ready for testing and feedback by aaronbrethorst on Tuesday January 24, 2012 @07:34PM (#3507732)
or better yet, you have semantically named elements and assign them column values in your .less file:

    #sidebar {
      .makeColumn(4);
    }
    #main_pane {
      .makeColumn(8);
    }

    #sidebar
      = render :partial => 'common/sidebar'
    #main_pane
      = yield
Re:Twitter's Bootstrap 2 ready for testing and feedback by ibejoeb on Tuesday January 24, 2012 @03:35PM (#3506617)
Wondering the same. Sorry, didn't mean to imply it's a win. For me, I'm going to have to adjust a ton of layout. It's probably not all that bad if you've got a decent template structure, though.

It's a headache, but as I was saying, it's so much quicker to work with than many of the others that I might just dedicate some time to do the work and get on board.

Re:Twitter's Bootstrap 2 ready for testing and feedback by tedsuo on Tuesday January 24, 2012 @05:01PM (#3507089)
You can also change the number of columns using LESS.
Re:Twitter's Bootstrap 2 ready for testing and feedback by azylman on Tuesday January 24, 2012 @08:56PM (#3508015)
You've always been able to easily modify the grid size just by changing the less stylesheet.
Re:Twitter's Bootstrap 2 ready for testing and feedback by scoot on Tuesday January 24, 2012 @07:54PM (#3507806)
It's imperial vs. base 2. Always knew there was a reason a foot has 12 inches, and a circle has 360 degrees...
Re:Twitter's Bootstrap 2 ready for testing and feedback by conradfr on Wednesday January 25, 2012 @02:57AM (#3508810)
I don't really get why they would get rid of the 16-column instead of only adding the 12 and mix them with something like <div class="row12"></div>.

I have use for both.

Re:Twitter's Bootstrap 2 ready for testing and feedback by TylerE on Wednesday January 25, 2012 @09:53AM (#3509887)
Because then you'd end up writing stuff like span6-12 or span1-16. Confused why you'd need 16 also. Any even division you can do in a 16 col grid you can also do in 12.