in reply to Re^11: Making Perl Monks a better place for newbies (and others)
in thread Making Perl Monks a better place for newbies (and others)

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re^12: Making Perl Monks a better place for newbies (and others)

Replies are listed 'Best First'.
Re^13: Making Perl Monks a better place for newbies (and others)
by jdporter (Paladin) on Feb 07, 2020 at 20:33 UTC
    I'm not entirely sure what you mean.

    So I guess it wasn't clear enough. What I meant was what I said. All those things you're talking about are transparent at the application level. What you type in the box is what the PM engine gets. And it's not unique in this regard; all web apps (except maybe stupid ones which try to meddle in the lower layers) are like this.

    We could replace the newlines with <p> tags. But most users don't want this. It would violate the "principle of least surprise". More importantly, given that input can consist of a mixture of html and <pre>-formatted blocks and <code>-formatted blocks (etc.), the problem of determining which newlines to replace and which to leave alone becomes Very Hard Indeed. It's not worth the effort. The result would never be more than 90% right, and that's not good enough. Just suck it up and write your post in html.

    I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.
      > More importantly, given that input can consist of a mixture of html and <pre>-formatted blocks and <code>-formatted blocks (etc.), the problem of determining which newlines to replace and which to leave alone becomes Very Hard Indeed.

      Hard but not impossible.

      But thanks for mentioning, I didn't think about also excluding <pre> -blocks in my nodelet hack.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

        Hard but not impossible.

        Plenty hard. 90% isn't nearly good enough.

        I'd be much more interested in trying to support a completely different format — like markdown — than making a tiny tweak to our existing format which will break everybody's brain (certain newbs excepted).

        I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.
    A reply falls below the community's threshold of quality. You may see it by logging in.