Re:Kaffeine: extended Javascript
by repsilat on Thursday May 12, 2011 @06:28AM
(#2540061)
A shame about the name - "Kaffeine" is also a fairly popular media player for KDE. The media player has the wikipedia page (with no "_(Software)" disambiguation suffix), and takes seven of the first ten hits on Google.
Re:Kaffeine: extended Javascript
by BasDirks on Thursday May 12, 2011 @05:32AM
(#2539937)
Agreed, CoffeeScript is much more extensive, and in most cases (from what I can see) prettier. Kaffeine piping seems cute though. Maybe the author could join forces with the CoffeeScript project?
Note on CoffeeScript: it took me _one_ .coffee script to get used to the syntax, and I'm never ever gonna write vanilla JS again if possible.
Re:Kaffeine: extended Javascript
by jashkenas on Thursday May 12, 2011 @08:35AM
(#2540325)
weepy is actually a contributor to CoffeeScript from the early days. Kaffeine represents his take on what a little language that targets JS should look like.
Re:Kaffeine: extended Javascript
by weepy on Thursday May 12, 2011 @06:22AM
(#2540051)
Don't think that CoffeeScript is much more extensive - Kaffeine has most of the features. Other advantage is that the output Javascript is very similar to the input, unlike Coffee where there's various implied closures and magic T_T
Re:Kaffeine: extended Javascript
by BasDirks on Thursday May 12, 2011 @07:31AM
(#2540179)
I like the fact that CoffeeScript does some magic for me. I know exactly 'what' the magic does, and I don't mind CoffeeScript taking care of it for me.
Re:Kaffeine: extended Javascript
by faceplant on Thursday May 12, 2011 @07:03AM
(#2540124)
a) does line-for-line output so it's easier to debug
b) can handle normal JavaScript, so it melds with existing code
c) progressive enhancement, adopt features at your own pace
d) the option to shadow variables using var
e) declared function support
AFAIK the creator did work on CoffeeScript for a while but decided to go in a different direction.
There are plenty of different alternative JavaScript dialects out there, from new ones like Kaffeine to ports of popular languages. http://altjs.org/
CokeScript haha
mmmm Halva http://en.wikipedia.org/wiki/Halva
Note on CoffeeScript: it took me _one_ .coffee script to get used to the syntax, and I'm never ever gonna write vanilla JS again if possible.
AFAIK the creator did work on CoffeeScript for a while but decided to go in a different direction.
There are plenty of different alternative JavaScript dialects out there, from new ones like Kaffeine to ports of popular languages. http://altjs.org/
In addition, "It compiles directly into javascript [sic] that is very similar..." Similar to what?
The English could use a little work; just sayin'.
that makes sense to me.. the javascript it produces is very similar to the source kaffeine code.