Live data from Hacker News

Zurb Foundation 5 Released

foundation.zurb.com

91–100 of 174 posts

Re: Zurb Foundation 5 Released

#92

I'm puzzled about the switch from camelCase to snake_case for JS as shown in http://foundation.zurb.com/docs/upgrading.html#javascript-va... . The clear convention in JavaScript is camelCase, why switch away from it? (I say this as someone who in normal life using Python and Rust uses and prefers snake_case but who uses camelCase when writing JavaScript.)

> The clear convention in JavaScript is camelCase, why switch away from it? Citation?

How would you even expect this to be cited?

Seriously, does someone need to crawl every Javascript project on Github and compile statistics on naming styles before they can make an obviously true statement like this? The fact that camelCase is the norm in the language and browser environment is obvious to anyone who has written even a modest amount of JS.

   notQuantified != false

Re: Zurb Foundation 5 Released

#94

I'm puzzled about the switch from camelCase to snake_case for JS as shown in http://foundation.zurb.com/docs/upgrading.html#javascript-va... . The clear convention in JavaScript is camelCase, why switch away from it? (I say this as someone who in normal life using Python and Rust uses and prefers snake_case but who uses camelCase when writing JavaScript.)

This is insane.

I have literally never seen a large-scale open source project or JS style guide that uses snake_case.

The DOM is camelCase. jQuery is camelCase. Node APIs are camelCase. Why on earth do Zurb think their library is any different?

Re: Zurb Foundation 5 Released

#95
post #22

Changes of note: "Interchange uses media queries to dynamically load responsive content that is appropriate for different users' browsers.” http://foundation.zurb.com/docs/components/interchange.html Offcanvas Javascript (Originally bolt-on, not bundled) http://foundation.zurb.com/docs/components/offcanvas.html "Abide is an HTML5 form validation library that supports the native API by using patterns and required attr…

The other BIG change is now having a medium size out of the box.

Re: Zurb Foundation 5 Released

#96

I'm puzzled about the switch from camelCase to snake_case for JS as shown in http://foundation.zurb.com/docs/upgrading.html#javascript-va... . The clear convention in JavaScript is camelCase, why switch away from it? (I say this as someone who in normal life using Python and Rust uses and prefers snake_case but who uses camelCase when writing JavaScript.)

> The clear convention in JavaScript is camelCase, why switch away from it? Citation?

Let's just try some searches for some common names using github code search with a ".js" extension filter

hideImage vs hide_image: 424 vs 50

toggleItem vs toggle_item: 1022 vs 52

clickElement vs click_element: 3469 vs 368

Coding conventions by statistics :)

https://github.com/search?q=searchPage+extension%3Ajs&type=C...

Re: Zurb Foundation 5 Released

#97
post #84
post #43

Earlier quoted context omitted.

Bootstrap is attached to a big-name company.

They're not though. The author worked for Twitter when he released the first version of Bootstrap, but Twitter never actually used it in production. Twitter doesn't promote it anymore either; BS3 got moved to twbs/bootstrap on GitHub, and the new marketing site doesn't call it Twitter Bootstrap anymore. ZURB doesn't have a huge consumer product, but they're a pretty big name in design, and they have half a dozen peop…

I agree that I should have written it past-tense... But, until recently, it was clear that Twitter's name was attached to the project. A Google search for "Twitter Bootstrap" pulls up all the relevant docs, and the first line of the 2.3.2 docs is "Built at Twitter by @mdo and @fat"

Re: Zurb Foundation 5 Released

#98
post #76
post #22

Changes of note: "Interchange uses media queries to dynamically load responsive content that is appropriate for different users' browsers.” http://foundation.zurb.com/docs/components/interchange.html Offcanvas Javascript (Originally bolt-on, not bundled) http://foundation.zurb.com/docs/components/offcanvas.html "Abide is an HTML5 form validation library that supports the native API by using patterns and required attr…

I've been looking through this, trying to remember why I recently switched to Bootstrap. Was it a widget that was missing? Maybe a date-picker? Foundation doesn't really have date-pickers and such. Hrm. Oh, right. It was angular-ui, which uses Bootstrap. Angular integration for any of these projects is a BIG win. Because of that, I'm eagerly awaiting an RC for Angular-Semantic[1], so that I can cut over to Semantic-U…

I recently made the same decision.

Re: Zurb Foundation 5 Released

#99

Looks like it dropped support for IE8, which unfortunately eliminates this as an option for a lot of client work. Seems like a solid go-to for more forward-thinking projects though.

I don't think Foundation 4 supported IE8.

It's not a huge deal except for the navbar, which is horribly broken in IE8. There are workarounds though.

Re: Zurb Foundation 5 Released

#100
post #3

Is Foundation a "Standard" now?

As much as Bootstrap, I imagine. Not sure if moreso or lessso though. Perhaps different use cases? It looks like developers prefer Bootstrap, not entirely sure why - perhaps something as simple as the documentation is structured better for them - or that was the initial crowd who was exposed to it.

It's just that I'm the guy that liked dojo when the world liked jquery. Should I just go with the majority and choose bootstrap?
Post reply on HN