Live data from Hacker News

Announcing the first release of batman.js

batmanjs.org

51–60 of 78 posts

Re: Announcing the first release of batman.js

#51
post #39
post #27

Earlier quoted context omitted.

CoffeeScript

Shouldn't it be named batman.coffee?

Haha! Yes! Good call.

The first version of Batman was written in plain Javascript, but Shopify has really been falling in love with CoffeeScript, so we decided to rewrite it before it was released.

Batman.coffee is more correct but sure doesn’t have the same ring to it…

Re: Announcing the first release of batman.js

#53

Earlier quoted context omitted.

Right, I just read the comments below. There's no mention of CoffeeScript anywhere. CoffeeScript is not JavaScript. If it's a JavaScript framework, please give code examples in JavaScript.

CoffeeScript compiles to Javascript. Batman.js can most certainly be a Javascript framework and give examples in CoffeeScript. Many people prefer CoffeeScript for a variety of reasons, including readability. Also, you aren't entitled to dictate instructions to other people who are giving you the benefit of their hard work. It's rude and obnoxious.

Maybe the guy you're replying to edited his post, but "If it's a JavaScript framework, please give code examples in JavaScript"--to me--reads as a rather polite request, rather than a dictum as you suggested.

Re: Announcing the first release of batman.js

#54

Earlier quoted context omitted.

>It's an alternative syntax Right... "alternative"... so makes sense to not give examples entirely in it unless your framework is intended solely for Coffeescript users.

Their framework is intended solely for coffeescript devs. Here's their example in javascript: (function() { var Shopify; var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__…

>Their framework is intended solely for coffeescript devs

Would makes sense to say this on the front page of the project. Most Coffeescript projects do.

Re: Announcing the first release of batman.js

#55
post #53

Earlier quoted context omitted.

CoffeeScript compiles to Javascript. Batman.js can most certainly be a Javascript framework and give examples in CoffeeScript. Many people prefer CoffeeScript for a variety of reasons, including readability. Also, you aren't entitled to dictate instructions to other people who are giving you the benefit of their hard work. It's rude and obnoxious.

Maybe the guy you're replying to edited his post, but "If it's a JavaScript framework, please give code examples in JavaScript"--to me--reads as a rather polite request, rather than a dictum as you suggested.

But there are other problems with the comment.

There's no mention of CoffeeScript anywhere

It's in the 2nd paragraph of the docs. Not prominent, but somewhere.

CoffeeScript is not JavaScript

Technically true, I suppose, but they are beyond related.

If it's a JavaScript framework

Maybe it's a CoffeeScript framework? My sense is that at the very least, the use of CoffeeScript is an important aspect of the project.

Re: Announcing the first release of batman.js

#56
post #15
post #6

From the site: "It gives us great pleasure to finally announce the release of batman.js to the JavaScript community today. This release represents the first code dump of something we’ve been working hard on at Shopify for a long time, so we’re very excited to get it into your hands and see what you do with it." I got zero value out of this lead. When you launch a product like this, please tell us why we'd want to use…

Sure, I'll break it down: batman.js is a JavaScript framework for rich JavaScript applications. It's designed to make development as fast and as painless as possible for developers and designers while giving them lots of power. We designed everything around a number of primary goals such as convention over configuration, HTML-based views, and the principle of least surprise. This is something we're using at Shopify i…

I still don't get what I'd use it for. Is it like jquery? Is it like rails?

Re: Announcing the first release of batman.js

#57
post #15
post #6

From the site: "It gives us great pleasure to finally announce the release of batman.js to the JavaScript community today. This release represents the first code dump of something we’ve been working hard on at Shopify for a long time, so we’re very excited to get it into your hands and see what you do with it." I got zero value out of this lead. When you launch a product like this, please tell us why we'd want to use…

Sure, I'll break it down: batman.js is a JavaScript framework for rich JavaScript applications. It's designed to make development as fast and as painless as possible for developers and designers while giving them lots of power. We designed everything around a number of primary goals such as convention over configuration, HTML-based views, and the principle of least surprise. This is something we're using at Shopify i…

I still don't get what I'd use it for. Is it like jquery? Is it like rails?

Re: Announcing the first release of batman.js

#59
post #56
post #15

Earlier quoted context omitted.

Sure, I'll break it down: batman.js is a JavaScript framework for rich JavaScript applications. It's designed to make development as fast and as painless as possible for developers and designers while giving them lots of power. We designed everything around a number of primary goals such as convention over configuration, HTML-based views, and the principle of least surprise. This is something we're using at Shopify i…

I still don't get what I'd use it for. Is it like jquery? Is it like rails?

Batman aims to introduce rails-like conventions for building single-page web apps.

Nick gave a nice demo at JSConf earlier this year: http://blip.tv/jsconf/jsconf2011-nick-small-5293530

Re: Announcing the first release of batman.js

#60
post #17

What are your target supported browsers/versions?

We're targeting Chrome, Safari 4+, Firefox 3+, and IE 7+ for compatibility, although some of those require you to include es5shim.

More details in the readme here: http://github.com/Shopify/batman/blob/master/README.md

Post reply on HN