News for hackers. Stuff that matters.
Re:Elegant Markdown for a more civilized age by autarch on Wednesday August 03, 2011 @03:24PM (#2842600)
Wow, what a crazy idea. Decoupling parsing from output generation. What will those crazy Ruby kids think of next?
Re:Elegant Markdown for a more civilized age by jasonlotito on Wednesday August 03, 2011 @03:43PM (#2842688)
I wonder how many people are seeing the sarcasm, and how many think you are serious. =)
Re:Elegant Markdown for a more civilized age by pavel_lishin on Wednesday August 03, 2011 @03:57PM (#2842741)
What's the markdown tag for sarcasm again?
Re:Elegant Markdown for a more civilized age by stock_toaster on Thursday August 04, 2011 @01:34AM (#2844760)
nine whitespace characters at the end of a newline
Re:Elegant Markdown for a more civilized age by asolove on Wednesday August 03, 2011 @04:10PM (#2842810)
It's especially interesting because this same idea is also responsible for saving Rails 3's ass from being far slower than Rails 2. Read through this discussion of how Rails 3 queries were sped up by using an AST decoupled from its final use: http://www.slideshare.net/tenderlove/zomg-why-is-this-code-s....
Re:Elegant Markdown for a more civilized age by stephth on Wednesday August 03, 2011 @08:33PM (#2843919)
47 comments in this thread and this is the top comment. Could someone explain what value it adds to the conversation? I'm completely missing it.
Re:Elegant Markdown for a more civilized age by stock_toaster on Thursday August 04, 2011 @01:43AM (#2844791)
The original upskirt markdown library, written by Natacha Porté[1], had a specific goal of separating the parsing of markdown and the generation of html. When github forked it, they apparently (according to Natacha's comments on her site) slowly added more and more logic which mingled and blurred the lines.

Now this article seems to be coming from a standpoint that separation of the two concerns is somehow novel. A bit odd to say the least. I think this is where the o.p. was deriving sarcasm.

Perhaps the real story is the separation of concerns in the ruby module wrapper, instead of at the c library level? I don't know.

[1]: http://fossil.instinctive.eu/libupskirt/index

Re:Elegant Markdown for a more civilized age by pyre on Thursday August 04, 2011 @01:24AM (#2844727)
It allows real computer scientists to laugh at stupid webdevs reinventing the wheel. </sarcasm>

(Except no one was claiming that it was a novel idea, just that in the past, most Markdown processors just convert directly between Markdown and HTML, but now they are changing that. It's also funny that there seems to be some animosity in that post towards Ruby programmers for whatever reason. It's not like Markdown is an invention of Ruby, the reference implementation was written in Perl.)

Re:Elegant Markdown for a more civilized age by pshangov on Thursday August 04, 2011 @02:22AM (#2844905)
Also, fore a more robust and extensible Markdown parser, see the perl's Markdent: http://search.cpan.org/dist/Markdent/