Posts tagged coffeescript
Posts tagged coffeescript
“Development as a Service”, it is free to get started and open-source. If you are constantly on the go or want to start learning NodeJs, Sproutcore, CoffeeScript, and other new javascript technologies, but don’t have the time to setup your system. Well you are out of excuses, with Cloud9IDE all you need to do is signup, clone a template and you are up and going.
Node runs great on windows, but the package manager is not quite ready yet, but don’t let that stop you from learning these new technologies.
Watch this quick presentation, no how painlessly simple it is to signup, clone a template and run a development environment.
Then you can deploy straight from Cloud9 as well. You don’t have to worry how to configure your system with:
etc.
Languages like Python and Ruby have great built in idioms for collection management. JavaScript has some great libraries that also provide support for these idioms, like Underscore.js and JQuery
With CoffeeScript, you can take advantage of comprehensions, and quickly build these idioms with no additional libraries. These idioms were pointed out in “The Little Book on CoffeeScript” by Alex MacCaw or (@maccman). This book is a must read, if you are using coffeescript.
http://arcturo.github.com/library/coffeescript/04_idioms.html
Rico Sta. Cruz created an awesome converter js2coffee. If you are planning to get into CoffeeScript, you have to check this page out.
http://ricostacruz.com/js2coffee
It will not craft CoffeeScript as well as if you did it by hand, but it is great to take some existing javascript and paste it in and see how it renders the CoffeeScript.
I just went over the https://github.com/visionmedia and grabbed the javascript from “node-growl” js file and pasted it in the javascript editor at js2coffee. It converted it to CoffeeScript and the generated CoffeeScript code was functional and compiled back into JavaScript!
npm install cupcake -g
cupcake my_awesome_app
https://github.com/twilson63/cupcake
'+:`
'',;;`
, .:`
:;
;.
:;;'';,````
.;+++;;;,`.,,,,.
`,:;''++',:;';'';;,
`.::;;;:,:;''''''''',
`,:;'';;;;'''++''+''''',
.:';;''''++''+:,:;'''''';`
.;;';;;'++''';::::;''+++'':
`;;''';;:::::::::;;'+++++'';
:;'''''';:::;;''''+++++++'';`
`.:.;;'''''''+++++++#+++++++++';.
````;;';,,;;''+++++##++++++###+++++'';,
.,,,.....;;:;:;'''+++++##++++#++++++++''';:
`````..`... ;:''++++#+#++#+++++'++++++'';:
````...... :;'''++++#+#++##'+;'+++++''';:
` ` .;''''++++#+++++';''++++'''';:
```` ````'',;++++++++++'+''++++'''''':.``
`. `....,:;.` ```.++'+++++'+':..,;+'+'':;..````
` ..:;:;:... ````.+'''';,..`````````....````` `
.,,..`..` ````,,....``````````````````````
,....` ````` ``` ```````` ` ` `
`.` `` ` `` `
`` ` `
`..`` ``
` ` ` `
.. ` `` `` ``
:` ` `..`` ` ` ````` `... ``.
`..`` .`........ ` ``` ` ``` ``,. ```..
..`.` ` `...```..... ``````` `` `` ` .`,. ```.
,,.., `,:::,...,,.` ...```` ` ,`,. ` `.
:..;` ` .` ``.,,.`` ```` `` ` .,,.`
.., ` `,, `:;` ``` `..`,
::` ::`. ``` ` ```` ::
`.:: ::`. `````` ` `` ,.
` ` ` `;:`` `:,``` ````` ` ` .`` ` `.,
.` `` ,,.` ` `::,`` `````` ` `` `` .,
`` ` ```.`` ` ,::`` ` ` ``````` ` ` ` ` :.
`., `` ````:,.`. ` `````````` ` `` `` .;`
,, `.. `````` ``,,..` ` ```` ````````` `` ` `` ```
`::, ``` ````` `...``` .,` `````````````` ,;, `` ` ` ```
`:::` ```````` `..```` ... ``````````````````.,:: `` ` ``` .
.`::: ` ` `````````` ``````` ... `````````````````` `..,:,` ``` `` ``` ...
, `,::` ` ``````````` ``.```````` ``,,. ``````````````````` ...,::.`` `` `` ...,`
` `,: ` ` ```````````` `...````````` ````,,,` ``````````````````` ` `..`.,::,`` ` ``` `` `,,,,
`. ;`,` `` `` ```````````````` `......```.``````.,:,`````````````````` `..`.;;:` ` `` ` ``` ` `.
..` `` ````` ````````````````` ``......`...``....:,,```..``````````` ``.:` ` ``` ``` ```
` ``````````````````` `...............::,.`````.`````` ` ``` ` `` ```
` ```````````````````.` ``.,...........,,````..````````` ````` ` `` ``` ``
` ````````````````..``..``````........```````...````````` ```````` ``` ``` `
` `` ` ` ``````````````:,.``.........`.............`````````` ````` `` ``` ``` ``
` `` ```````````,::. `````````.`.......,...````````` ` `````` `` ``` ``` ```
` ` ` `. ```` ````````.:;;,````````````````......`````````` `````````` ```` `` ````
` ` ,,, ` ` ` `````.,:;:,``````````````````.`````` ``` ` ``````````` ```` `````` `` `
;.`` ` ` .,,. `````` `..,:;::``````````````````````` ` ``````````` ```` ````````` ` :
;:,,,,. ` `` ``,,,,` `````` ````.,:;.````````````````````` ```````````` ````` `````````````+'`
'..,,,,,. ` ``` `.,,,,` `````` ````.,...````````````````` ````````````` `````` ````````````++#`
; `.,,,,,.`` ```` `.,,,,` ```````` ``.,.``````````` ` ` `````````````` `````` `````````` ;++++
'; `.,.,.``` ````` `.,:`.` `` ..` ```` ``` ``````````````` `````` ```````` ```+'##+`
'# `.,`` ` `````` ``.`.`` ` ``` ``..```` ` ` ````````````````` `````` ````` `` `;+++++
:'+ `. `` ```````` `` ``` `` ```````````````````` ``````` ````````````'++++++
:#' `` `````````` `````````````````````` ``````` ````````` `,'++'+''.
,+'. ```````````...``` `````````````````````````` ``````` ```````` .##'+++''
:'' `````````..`....```` ````````````````````````````` ` ``````` `````````` `'++#++'+'
;'' ````````````.``.`.....``` ````````````````````` ```````````` ```````` `````````` ,++''#:,`;
:# ````````````.....`....``````````````````.`...`......``````````...,:::::,,..` ```````` ``````````` ;'+++ ``
''` ``...`..````````................``....``````````````````````.,::::::::,:,` ```````````````````````.++++'' ```
`' ```````````` ``````,. `````````````````````````.,,,:,,,,,...` ```````````````````` `` `+++++++++;:`
+'` `..` ```````````````````.''.```.``````````````````````...........,` ```.````..``````````` ``` `+#++++'#+'+
:+,` `...` ` `````````````````````````;';.```````````````````````````..,,,,,,,,.`` ``.`````.``````` ````` ` `'#+'+#++'''+
++ `.,... ```````````````````````````,''..`````````````````````````````.....```` ``...```..````````,,` `` ` `+++++#''+'+'`
`,'#` `,,,..` ````````````````````````` ;',..````````````` ````````` ``````` ``...```.`````````.,,` ``` ``++'+++++''+''
`''+ ` ``.... `` ```````````````````````.;;.`````````````````` `` ````` ````.````.``````` `,,,,` `` ```++''+##''''#
`';'+'`` `.,,` `````````````````````:'..`` `````````````` `` ```.````.``````.,,,,,,,``` ``` ##+#+#+''+;+`
..,;+'``` `.,` ``````````````````````;'.` ``` ``` ```.````.``.`````,:,,,,.```` ``,##+####+++'`
`.;`:#+```` ``.` ````` ````````````;'`` ````````.```````````:,,`````` ``,+##+####'+;;
.,,..+':``` ` ````` ``;;` ` `````````.`.```````````,,.````` ```:##+#++++#;:'
..,,.:+''```` ` ` `:.` ` ```````````...````````` ```````` ``,'#++'+#+;':
..,...:'''.```` ..` ```````````...````````` ````` ```,+##+##'#+':.
.,.,,,..;+'+..``` `` `` ``````````.````...````` ```````` `.``'+#++#+++#;,,.
`.,,.,..+##'#+: `..````` `````..`````````````...```` ``````` ,.`::#+++++'''':....
#.,...,+##+++++. ```.......```````` ```````````.``.`.`````````````````...`` ```````` ``.`,+,+##+#'';';:..;;,`
,.,.,.:'+#'+++#+',````````.........,.`......`..``......```````````````````....`` ````````````````:+.+#'+##'+'#';..#:;:`
,,.'#,,,''+#++###++;,```````````````..:;:,`..,,:''#;:.`....``..`````````...```` ```````````````...:+++#+##+#++';:,,:.,','``
.,,:`',,,,,+::,'';+;:+;+','..',`,,;''';';++###'###@#++':###'':;:,,,.......`````````````````.,;#+#+#++++#'++++;;..,..,...,..
,.:;.,.,,..;......#...;'+;###########@#'######++###+++++#@'@#+++::,,.,.....````````````,;;#++##+'++'++'+;++;;:,.,...,..,,.`
`';;..:...........+,,.,,'+++#+''##+#####++#@##++#######+##+#++'#'';:.........,.,..;+;,###+#+''+;'''+;':'';,............;,,`
`..,',,,.........,#,.,,,:@##+++##+++++##++###+'#++#++#@@###+##'#+#+#+++#''';;++'+##+'####+'++'##'+++';';,.....`.......,::.
`..,.,.,,.,.,,,.,,+,,,,,;;#######+''###++##+@'+'+''++++#######@#+#+''+#+#++++#++:#++#+##+++##;+'+'+;##+.,...............,`
,..,,..,..,.,..,,,,,,,,;,'#########'+++'##+#++#+####';+++###+#+##++'#+#####+####+###'+;'+#+#';,,,,+;;',,................
,..,,.,,.,.,,...,,,,,,,::;;'+++';,..,.#.::;''++++#####++##++###+#'+#######'##+#'++#''#'++''.....,,#;,.,,................
,,..,.....,,,'.,,,,,,,::,:::.,.',`,...+.,,,:,''+;##+++#+#++++###+#'+##+++'''+'''+''';,,..........,':,,.+,'``...........`
.,,,..,......#.,,;+;:,:::,.....:......+.,..:::;:+###+###++';:;::;+'+;:::;;'#+###+,,,,,,........,,,:,.,#...`............
`.,,,..,....+:,,,#,,,,,:,,.................,:,;,,:#####+',,':,,,..,;..,,,,#.,'#++,,,,,.........,,,,..,;..:............`
,.,,..,,.,;#',,,#,,,.,:,,,................:::;,,,,+##',..;;,,,,..,,,.,,,,@.,,:,',,,,,........,,,,,...:..+`..``.......
...,,,.,..#.;,..'+@:.,:,,,................,::,,,,,:+.....',,,,,..,,,.,,,,'.,,,,,,,,,,.......,,,,,....+;'..`..........
...,,..,.:+++;,.,,.@.,:,,,................,,,:,,,::+,,...,,,,,...,,,,,,,,,,,:,,,,,,,,........,,,,...,`.`..`.........`
`..,,..,....+,..'.,+,,,,:.................,::::::,,',...,,,,,,,..,.,,,,,,,,:,,,,.,,.........,,,,,.,,,..```..........`
,..,..,.....,...:;.,.,,:.................:::,,:,,,:,....,,,,,,..,,,,,,,,,,::,,,,,,,,......,,,,..,,,...``...`.......
...,..,...........,..,,,.................:,',,;,,,,.......,,,,..,,...,,,,,:,,,,#,,,........,,..,,.,.`..````.`.....`
....,,..,........,,..,,,...............,.:#,;:#,,:........,,,,....,,,,,::::,.,:,,,,........,,,,,,.,...````.`......
`......,........,,,..,,,................,,;.:+,+:,,......,.,,,..,..,,,,,,:,.,':,,.,.......,,,,,,,.,.`..`..........
`......,..,,....,,,,.,,..................::#:+:+,,,......,.,,,.,...,,,::,,,.:,:::.,.......,,,,,,.,....``.```.....`
`......,,..,.......,.,,.`................:,:'+,'...........,,,..,,,,,,,,,,...:,:,,,......,,,,,.,.,...``..........
.......,............,,,.................::::;,',.,......,,,....,,,,,,,,,,..:',;,,,.....,,,.....,,......`........
.........,,.........,,,................,:::::#;.........,,,.,.,,,,,,,,,,,.,.;',,,,......,,.....,....``..........
`.....,...,.........,,,,`...............::::,,,,.,......,,,.,,,,,,,,:,,,,.+;.,,.,,......,....,.,...`............
...,.,.............,,,,................,::,,,,,,.......,,,.,.,,,.,,,,,,,.:..,,,,......,,......,..`.`..`........
....,.,............,,,,.`..............,::,,,,,,..`..,..,,.,.,,,,,,,,,,,....,,,,......,,,.....,...````.........
......,............,,,.,...............,:,,,,,,.........,,..,,,,.,,,,,,,...,,,,,......,,,.....,.`.`.`.........`
`.....,..........,.,,,,................,:,,,,,,.......,..,,..,,.,,,,,,,,...,,,,,......,,,.....,....``.........
.....,.,.........,,,,,.........,......,,,,,,,,.........,,,.,,,,.,,,,,,,...,,,.,......,,..,.....`.`.``........
.......,...........,,,.........,......,,,,,,,,.,........,..,.,,,,,,,,,,...,,,,.......,,,.,.........`.`......`
....,..............,,,,.........,......,,,,,,,.,........,..,,,,,,,,,,,,.,.,,,,.........,...........`........
`.....,,...........,,,.,...............,,,,,,,........,.,,.,,,.,,,,,,,,,..,,,.,.......,.....,.....`.........
`.....,,,,.........,,,.,.,........,....,,,,,,.......,....,.,,,,,.,,,,,,.,,,,....`.....,,....,.`.....`.....,.
`......,...........,,,.................,,,,,,.........,..,.,..,,,,,,,,,.,,,,,,..`.....,,....,.`.............
......,,,.,.......,,,...,.............,,,,,...........,.,.,,,.,,,,,,,..,.,,....`.....,,....,`..............
,......,,,,.......,,,,................,,,.,..........,,.,,.,,...,,,,,..,,,.,........,,,,...,``............`
,......,,,,.......,,,..,:.............,,..,,.,........,.,.,.....,,,,,..,,,,.................`.............
.,......,,,.,.....,,.................,,,.,,,,.........,.....,.....,,,..,,,.,........,,......`............,
.......,,,,........,.................,,,.,,,,........,....,......,,,,,.,,,.,,........,,.....``..........,.
`.......,,,........,.................,,,,,,,,...............,,,..,,,,.,,,,..,.......,.......`...........,
.......,...,..,...,.................,,,,,,,,.........,`..........,,,,,,.,.........,.,.....``............
.......,,,..,.,...,...............`..,,,,,.............`..........,,.,,,,.,......,.,,,..................
.......,,...,.,,..,..................,,,,,.............`..........,,,,.,,........,,,.....,..............
`......,......,,..,................`.,,,,,............``..,....,.,,.,,.,..,......,,,..`..............,.`
...............,.,.................,,,,,.......,.....``..,.,,..,,,,...,..,.....,,....`..........,,...,
`................,..................,,,,.,.......`...``.,,,.,,.,,,,...,..,.....,,,....`,..............
.......,........,..................,,,,.............`....,,,,.,,.....,..,.....,,,.....,.............
`..............,,,.................,.,..,...........`.....,,.,..,...,,.......,,,,.....,..........,..
.....,......,..,,,................,....,...........`..,,.,,,,,,....,........,..,....,,........,...
....,......,.,,,.................,....,...............,,,.,,.,...,,,.......,,......,...........,`
`,`,,.......,,,,.....................,..............,,,,..,,...,,.,......,,,...,.,,..........,.
.,,......,,.,,.....................,.......`..`...,,,,.,,,..,,,...,.....,,,,.,..,..........`
...,......,,,.,.........,........,,,.`...........,,:,,.,...,:..,,.......,,...,.,.........`
`.........,,,,..,...............,,,........,.....,,,,,.,..,:,....,...,.,,,...,.,.........
`.........,...,................,.,,.......,...`.,,,,.,,.,,,,,..,,.....,,.....,,........`
...,,...,....................,,,,,,.,.........,,..,,,.,,,,..,,......,,,.....,.......
`...:..,....................,,,,.,...........,,..,,..,,,..,.,,.....,,.............
...........................,,,.,.,..,......,.,,....,,,.,..,......,.,.....,....
`.,......................,,,,,.....,.....,.,,,,...,.,.,,.,.....,,..........
`......................,,,,.,,.`.......,,,.,,,,,,,,,.......,.,,.,,....
....................,,,,....`......,,,.,,,,,,.,.,.,,....,.,,,,,.,`
`.......,..........,,,,....`......,,,,,,,,,,,,,,,.,....,.,,,.,.
`...............,,,,......,.....,,,,:,,,,,,,,,.,,....,,,,,`
`..............,,......,.....,,,,,,,,,,.,,,,,,..,,..`
`..........,.,,,,,..,...`,,,,,,,,,..,.,,,,.
``.......,,,......,,,.,,..,,..,..`
```...` ` `..,..`
Looks like I found the perfect little framework to play with on Turkey Day!
This looks awesome! If you get a chance read the github readme, it will blow your mind. Especially the part of writing both you client side and server side script in the same file, oh also websocket and http in the same file.
You have to love coffeescript and node! This is definitely the future!
Express is a sinatra style framework for creating nodejs applications, coffeescript is a great way to write javascript. There is nothing special about this template other than it saves a lot of work if you want to create a nodejs app using express and coffee. I also included the mongodb driver, nodeunit, and socket-io.
If you want to check out nodejs, coffeescript, haml, and sass, you can use this template to get you started.
Check it out!
Since getting access to the nodejs private beta on heroku, I did the hello world app and it worked with no problems.
I wanted to something a little more complicated, not much, but something to help me get more familiar with nodejs and the deployment platform on heroku.
This little app, takes the first word of the url and uses it to query twitter search and gets a result set of json, then displays the results in the browser. (Nothing Fancy.)
http://jackhq-node-hw.heroku.com/nodejs
This link will get last 20 tweets about nodejs
http://jackhq-node-hw.heroku.com/coffeescript
Working with coffeescript is just simply an awesome experience, and deploying to heroku is awesome. I will work on more complicated examples when I have more time.
for creating an experience that is solid and user friendly for the nodejs platform.
Check out
To see project NodeJs has to offer: