Markdown was one of the humane markup languages that we evaluated and adopted for Stack Overflow. I've been pretty happy with it, overall. So much so that I wanted to implement a tiny, lightweight subset of Markdown for comments as well.
@Dennis Forbes:
"(somehow CodingHorror got on my iGoogle page, and I’ve been remiss to remove it. And every now and then I expand one of those nodes…)"
If I don’t like the service in one place I don’t go never again, period. For someone who does not like this blog you have been here for a long time (http://www.codinghorror.com/blog/archives/000845.html). Maybe you are a stacker, maybe you are jealous, or maybe you have a crush on him. Either way it’s kinda scary.
Yes. It’s terribly scary, Juan. And from looking at the cadence of your sentences, I have to think that you like to injure small animals for fun.
As much as I enjoy ridiculous allusions and accusations, and as utterly in-awe I am of your amazing Google-fu, I find it humorous that you pointed out that I had commented on that particular blog entry, given that I did so after Jeff commented on one of my entries.
Though I’d been visiting Jeff’s blog – there have been some very enjoyable reads over the years – since a lot earlier than 2007.
Maybe, just maybe my dear friend Juan, the online development community really isn’t all that big, and we find ourselves in surprising intersections all the time. Strange how that works.
As an added benefit, you’ll be using the same sort of syntax that other sites use. Italics? Use underscores. Bold? Use asterisks. Underscore? Use plus signs. Crossout? Use minus signs. Why should I have to remember your site uses double underlines when everyone else uses single underlines.
And, if you really, really insist on using C#, you’ll be happy to here that there’s a .NET version of Textile: http://www.codeplex.com/textilenet
As I read the post, I expected a pithy moral about not trying to impose new semantics on old free-form data written without knowledge of those semantics. The question of how to (or whether to) write a regex for this should come after more important questions such as whether to do it in the first place (and for older comments written when a star was expected to be a star, I’d say no).
Of course, this all begs the question of why Yet Another Random Markup Language needs to be developed. Are html tags so foreign to your visitor base that you have to come up with something new?
A while back there was a post somewhere out there in the tubes by a guy advocating test driven development. In his case he was building a sudoku solver, and began his development process, per TDD dictums, by building his tests.
He then pursued the development of the application in the most mindless, ridiculous manner possible, basically just believing that the best approach was to kind of randomly change things until the tests passed.
I feel the same way about this entry. Did you really have to “go to the tests” to realize that there were egregious gaps in your matching? I would say that it is close to one of the worst ways to approach the problem.
If Dennis Forbes is angry with me, well … it must be Wednesday!
I can’t speak for you, but for me, it’s way harder to sit around and dream up all the edge conditions than it is to, y’know, throw a bunch of data at it and see.