Live data from Hacker News

Smooth CoffeeScript

autotelicum.github.com

11–20 of 27 posts

Re: Smooth CoffeeScript

#11

I made this version. It would be great with 'Pull Request's with the kind of improvements that is being suggested here. The source is at https://github.com/autotelicum/Smooth-CoffeeScript/tree/gh-p... I would also like to know if the 'Send to Kindle' readability function results in a readable document. That was the reason for making this version. A pdf version, a quick reference and a JavaScript supplement is on the…

I'm waiting to receive it on my Kindle through the Send to Kindle button - I'll report back if and when I get it.

Edit: Okay got it - was really easy to setup with the Readability button. Flipping though the book - the pictures at the start are fine, links open up the browser correct, the prose portion is nicely formatted. The code snippets are, sadly, pretty unreadable. Using the default font most of the lines wrap and it becomes a mess (compounded by coffeescript indentations). Things were a bit better on the Kindle Fire - but that's essentially a tablet browser and I would just go directly to the website vs having it sent as a document.

Re: Smooth CoffeeScript

#12
post #11

I made this version. It would be great with 'Pull Request's with the kind of improvements that is being suggested here. The source is at https://github.com/autotelicum/Smooth-CoffeeScript/tree/gh-p... I would also like to know if the 'Send to Kindle' readability function results in a readable document. That was the reason for making this version. A pdf version, a quick reference and a JavaScript supplement is on the…

I'm waiting to receive it on my Kindle through the Send to Kindle button - I'll report back if and when I get it. Edit: Okay got it - was really easy to setup with the Readability button. Flipping though the book - the pictures at the start are fine, links open up the browser correct, the prose portion is nicely formatted. The code snippets are, sadly, pretty unreadable. Using the default font most of the lines wrap…

I'll add that on my Kindle Fire, the code snippets were quite readable when turning into landscape mode.

Not sure if the e-ink Kindles switch to landscape mode as easily.

Re: Smooth CoffeeScript

#13
post #11

I made this version. It would be great with 'Pull Request's with the kind of improvements that is being suggested here. The source is at https://github.com/autotelicum/Smooth-CoffeeScript/tree/gh-p... I would also like to know if the 'Send to Kindle' readability function results in a readable document. That was the reason for making this version. A pdf version, a quick reference and a JavaScript supplement is on the…

I'm waiting to receive it on my Kindle through the Send to Kindle button - I'll report back if and when I get it. Edit: Okay got it - was really easy to setup with the Readability button. Flipping though the book - the pictures at the start are fine, links open up the browser correct, the prose portion is nicely formatted. The code snippets are, sadly, pretty unreadable. Using the default font most of the lines wrap…

Thanks. I will look into what more I can do tomorrow with the Readability and Kindle documentation, maybe some tweaks to CSS or something.

Re: Smooth CoffeeScript

#14
post #2

Someone needs to make something like Eloquent Javascript [1] for CoffeeScript. The digital version of Eloquent JS has a console at the bottom so you can do the exercises without leaving the page. It sounds minor but when I was first learning javascript this solved a huge pain point. [1] http://eloquentjavascript.net/chapter1.html

Love the irony. This book is a (heavily altered) version of Marijn's Eloquent JavaScript ... rewritten for CoffeeScript. As an aside, it's a pretty amazing demonstration of what releasing your work under a Creative Commons license can bring about.

It's a great suggestion. @autotelicum -- have you considered adding a little interactive console to the page?

Re: Smooth CoffeeScript

#16
post #11

Earlier quoted context omitted.

I'm waiting to receive it on my Kindle through the Send to Kindle button - I'll report back if and when I get it. Edit: Okay got it - was really easy to setup with the Readability button. Flipping though the book - the pictures at the start are fine, links open up the browser correct, the prose portion is nicely formatted. The code snippets are, sadly, pretty unreadable. Using the default font most of the lines wrap…

Thanks. I will look into what more I can do tomorrow with the Readability and Kindle documentation, maybe some tweaks to CSS or something.

I've yet to find a technical book with lots of snippets that I can read on the Kindle - so it may be a losing battle

Re: Smooth CoffeeScript

#17
post #12
post #11

Earlier quoted context omitted.

I'm waiting to receive it on my Kindle through the Send to Kindle button - I'll report back if and when I get it. Edit: Okay got it - was really easy to setup with the Readability button. Flipping though the book - the pictures at the start are fine, links open up the browser correct, the prose portion is nicely formatted. The code snippets are, sadly, pretty unreadable. Using the default font most of the lines wrap…

I'll add that on my Kindle Fire, the code snippets were quite readable when turning into landscape mode. Not sure if the e-ink Kindles switch to landscape mode as easily.

Kindle3 has landscape, Kindle Touch does not.

Re: Smooth CoffeeScript

#18
post #12
post #11

Earlier quoted context omitted.

I'm waiting to receive it on my Kindle through the Send to Kindle button - I'll report back if and when I get it. Edit: Okay got it - was really easy to setup with the Readability button. Flipping though the book - the pictures at the start are fine, links open up the browser correct, the prose portion is nicely formatted. The code snippets are, sadly, pretty unreadable. Using the default font most of the lines wrap…

I'll add that on my Kindle Fire, the code snippets were quite readable when turning into landscape mode. Not sure if the e-ink Kindles switch to landscape mode as easily.

[deleted]

Re: Smooth CoffeeScript

#19
post #2

Someone needs to make something like Eloquent Javascript [1] for CoffeeScript. The digital version of Eloquent JS has a console at the bottom so you can do the exercises without leaving the page. It sounds minor but when I was first learning javascript this solved a huge pain point. [1] http://eloquentjavascript.net/chapter1.html

Love the irony. This book is a (heavily altered) version of Marijn's Eloquent JavaScript ... rewritten for CoffeeScript. As an aside, it's a pretty amazing demonstration of what releasing your work under a Creative Commons license can bring about. It's a great suggestion. @autotelicum -- have you considered adding a little interactive console to the page?

Of course. It started with a pdf/lyx version based on the 400Kb eloquent text file, now the tools (elyxer) made it possible to convert to html with some manual fixes. It would be great to add interactivity next. Not sure when next will be though...

Re: Smooth CoffeeScript

#20
post #16

Earlier quoted context omitted.

Thanks. I will look into what more I can do tomorrow with the Readability and Kindle documentation, maybe some tweaks to CSS or something.

I've yet to find a technical book with lots of snippets that I can read on the Kindle - so it may be a losing battle

Agreed. Though I've tried hard to do so. Kindle is just not a code-friendly device. Landscape helps, but is a pain in the ass to read the non-code text in landscape (for the same reasons as given by the poster above who complained about the wide website text) and advancing pages is painful.
Post reply on HN