Live data from Hacker News

Announcing the first release of batman.js

batmanjs.org

21–30 of 78 posts

Re: Announcing the first release of batman.js

#21

Earlier quoted context omitted.

The subtext is that you should learn CoffeeScript. It's an alternative syntax, not a new language. They wrote you a nice library and are giving it away under an MIT license. You don't get to pick the style they use to write the examples. That's like going to a science lecture and walking up to the speaker afterwards to say, "Hey, I think you have some great theories, but you really should lose that Australian accent…

They wrote you a nice library and are giving it away under an MIT license. You don't get to pick the style they use to write the examples. This is a response to something nobody's saying. Obviously if they write it they get to choose pretty much everything about it. Nobody is disputing such a thing. However, if one of the goals in releasing this is to be maximally useful, isn't the fact that raw Javascript is more re…

Nobody who knows CoffeeScript needs to be informed that JavaScript is more mainstream.

Re: Announcing the first release of batman.js

#22
post #4

PLEASE: body{ color: #000000; } Thankkk you! Other than that, looks cool! Definitely will be trying it out in my projects and reporting back!

This is going to sound very old-man of me, but I find myself automatically bumping up the font size of many websites nowadays, especially ones with a low-contrast font color. 8-|

Re: Announcing the first release of batman.js

#23

Earlier quoted context omitted.

They wrote you a nice library and are giving it away under an MIT license. You don't get to pick the style they use to write the examples. This is a response to something nobody's saying. Obviously if they write it they get to choose pretty much everything about it. Nobody is disputing such a thing. However, if one of the goals in releasing this is to be maximally useful, isn't the fact that raw Javascript is more re…

Nobody who knows CoffeeScript needs to be informed that JavaScript is more mainstream.

Perhaps not, but that doesn't necessarily imply that the use of CoffeeScript-only examples was a calculated move to reach the audience they wanted instead of whatever came to mind first. It's worth at least reminding them that JS examples might be more useful to more people and letting them decide consciously whether they care.

Re: Announcing the first release of batman.js

#24
post #5

I'd like to see some examples in JavaScript, instead of CoffeeScript. Since at this point only a smaller subset of developers use CoffeeScript, I think it might be overall useful to more people if the provided examples used plain JavaScript (that, and CoffeeScript developers tend to understand JavaScript already, and may already be used to converting one to the other).

The subtext is that you should learn CoffeeScript. It's an alternative syntax, not a new language. They wrote you a nice library and are giving it away under an MIT license. You don't get to pick the style they use to write the examples. That's like going to a science lecture and walking up to the speaker afterwards to say, "Hey, I think you have some great theories, but you really should lose that Australian accent…

I'd say it would be closer to the scientist giving the speech language in West Frisian to a group that's composed of 90% English speakers.

Or maybe more accurately a speech in modern English to a group of early modern English speakers.

Re: Announcing the first release of batman.js

#25
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 didn't know about batman either and I got the same impression when landing on the page. It took me a few clicks to get a handle of what it was.

Can I suggest that in the website header you include some sort of one-line description, like 'the javascript web application framework', or similar and more creative?

Re: Announcing the first release of batman.js

#26
It says it's for JavaScript, but I don't even know what language the code example is in. What is this?!

    # Create our application and namespace.
    class Alfred extends Batman.App
      @global yes
      @root 'todos#index'


    # Define the principle Todo model with `body` and `isDone` attributes, and tell it to persist itself using Local Storage.
    class Alfred.Todo extends Batman.Model
      @global yes # global exposes this class on the global object, so you can access `Todo` directly.

      @persist Batman.LocalStorage
      @encode 'body', 'isDone'

      body: ''
      isDone: false

Re: Announcing the first release of batman.js

#27

It says it's for JavaScript, but I don't even know what language the code example is in. What is this?! # Create our application and namespace. class Alfred extends Batman.App @global yes @root 'todos#index' # Define the principle Todo model with `body` and `isDone` attributes, and tell it to persist itself using Local Storage. class Alfred.Todo extends Batman.Model @global yes # global exposes this class on the glob…

CoffeeScript

Re: Announcing the first release of batman.js

#28
post #27

It says it's for JavaScript, but I don't even know what language the code example is in. What is this?! # Create our application and namespace. class Alfred extends Batman.App @global yes @root 'todos#index' # Define the principle Todo model with `body` and `isDone` attributes, and tell it to persist itself using Local Storage. class Alfred.Todo extends Batman.Model @global yes # global exposes this class on the glob…

CoffeeScript

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.

Post reply on HN