News for hackers. Stuff that matters.
Re:Journo and Literate CoffeeScript by mkdir on Thursday February 28, 2013 @10:21PM (#5302673)
Jeremy, your code's comments are all hard-wrapped at column 80, but the code itself extends beyond that.

Do you tell your editor to hard-wrap each "block" of comments as you write (or edit) them, or is your editor configured to automatically hard-wrap all comments?

Either way, have you considered configuring your editor to soft-wrap comments while leaving your code alone? I'd say that's the most natural approach from a writing standpoint.

P.S. Every day, I use tools you've made. Keep making!

Re:Journo and Literate CoffeeScript by jashkenas on Friday March 01, 2013 @04:05AM (#5303461)
Yeah, in an ideal world, that would be better -- and I've tried writing like that ... but sooner or later I end up wanting to open the file in a location where the wrapping isn't configured properly, and all of the super long lines look terrible.

So I just tend to hard-wrap manually, out of habit, even when writing in a .txt file or an email. In fact, it's hard to stop myself from doing it in this textarea ;)

Re:Journo and Literate CoffeeScript by eric-hu on Friday March 01, 2013 @07:28AM (#5303905)
What editor do you use? With vim I think I've always been able to select comments and "gq" them to autoformat them to whatever the linewidth is set to.