Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wow, what a crazy idea. Decoupling parsing from output generation. What will those crazy Ruby kids think of next?


I wonder how many people are seeing the sarcasm, and how many think you are serious. =)


What's the markdown tag for sarcasm again?


nine whitespace characters at the end of a newline


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....


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.


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


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.)


Also, fore a more robust and extensible Markdown parser, see the perl's Markdent: http://search.cpan.org/dist/Markdent/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: