Wednesday, March 13, 2013

Quick Links - March 13 2013 More Literate Coffeescript and 2000 C# Things

Hey all a couple of interesting finds for the day:

The first link is a blog post from Jeremy Ashkenas about Literate Coffeescript.  Why it was added to the project and what he hopes it will help accomplish.  It also discusses briefly and links to a blog platform written in Literate Coffeescript called Journo.  If you are interested in Literate Coffeescript I highly recommend reading the post and reviewing the source.

The second is a blog I've been following for a bit and have been reading through frequently as of late, 2000 Things You Should Know About C#.  He's not quite at 2000 things yet but Sean Sexton has some great little nuggets of information on this blog.  There's quit a bit of simple and straight forward stuff here but it's great for reviewing C# concepts and ideas.

Thursday, March 7, 2013

Source Maps in Coffeescript 1.6.1

Source Maps in Coffeescript 1.6.1

As a follow up to my previous post on the subject, I'm pleased to let my readers know that source maps are now available in Coffeescript 1.6.1 and up.

This is a big step forward in debugging for Coffeescript.   To create a source map along with your compiled javascript, simply use the --map or -m option when compiling.   Currently,  Chrome and nightly WebKit builds are the only browsers to support source maps.  To enanble source maps, open the developer tools in Chrome and click on the gear icon in the lower right corner, this will give you the settings dialog.  In settings set "Enable Source Maps" to on(checked).

Source maps are also available for Node.js.  For more information on Node source maps please see this post.

For more infomation on source maps, see this HTML5 Rocks tutorial.