librelist archives

« back to archive

CoffeeScript?

CoffeeScript?

From:
Justin Clift
Date:
2012-10-10 @ 09:16
Hey all,

Has anyone taken a look at CoffeeScript?

  http://coffeescript.org

It seems like a very developer friendly way of
writing Javascript, especially making callbacks
and similar easy to follow.  (instead of a pita)

Basic concept is people create CoffeeScript file
(somefile.coffee), which then gets transformed
into the more verbose .js file, to be used as
normal.

Supports client side JS, server side Node.js,
and even Ruby/Rails (with different generator
I guess).

For real world example of usage, GitHub's Hubot
is written using it:

  https://github.com/github/hubot

People seem to have very high praise for it,
so I'm tempted to see what the result of
converting a few of the Node.js files to it
looks like.  (not to be merged into main repo
unless consensus is positive)

Anyone have experience with it already?

Regards and best wishes,

Justin Clift

--
Aeolus Community Manager
http://www.aeolusproject.org

Re: CoffeeScript?

From:
Aaron Hill
Date:
2013-06-19 @ 23:22
Hello,

I have used CoffeeScript before, and can say that it is an amazing
improvement over JavaScript. It is overall much easier to write than
JavaScript, and eliminates things such as semicolons ending lines.

I would be willing to convert the JavaScript to CoffeeScript, if it sounds
like a good idea,

Aaron Hill

Re: [browserquest] CoffeeScript?

From:
Justin Clift
Date:
2013-06-20 @ 00:06
On 20/06/2013, at 12:22 AM, Aaron Hill wrote:
> Hello,
> 
> I have used CoffeeScript before, and can say that it is an amazing 
improvement over JavaScript. It is overall much easier to write than 
JavaScript, and eliminates things such as semicolons ending lines.
> 
> I would be willing to convert the JavaScript to CoffeeScript, if it 
sounds like a good idea,

Does it still have the problem of not being able to forward reference to
new functions (that are defined further down in the source)?

If so... not really a fan. :(

But, if there's a decent workaround to that problem, I could be convinced. :)

+ Justin

--
Open Source and Standards @ Red Hat

twitter.com/realjustinclift

Re: [browserquest] CoffeeScript?

From:
Aaron Hill
Date:
2013-07-16 @ 01:31
What exactly do you mean by forwarding reference to new functions?

On Wed, Jun 19, 2013 at 8:06 PM, Justin Clift <jclift@redhat.com> wrote:
> On 20/06/2013, at 12:22 AM, Aaron Hill wrote:
>> Hello,
>>
>> I have used CoffeeScript before, and can say that it is an amazing 
improvement over JavaScript. It is overall much easier to write than 
JavaScript, and eliminates things such as semicolons ending lines.
>>
>> I would be willing to convert the JavaScript to CoffeeScript, if it 
sounds like a good idea,
>
> Does it still have the problem of not being able to forward reference to
> new functions (that are defined further down in the source)?
>
> If so... not really a fan. :(
>
> But, if there's a decent workaround to that problem, I could be convinced. :)
>
> + Justin
>
> --
> Open Source and Standards @ Red Hat
>
> twitter.com/realjustinclift
>



-- 
--Aaron