in reply to Functionality to automatically insert <readmore> tags into long posts?

Hi OfficeLinebacker,
What do you think?
In as much as automation of "any" form could be see as a "cool" feature depending on who and what. I think people should be responsible to a large extent for what and how their post is.
Of course, one could argue that automation for <code> tag should be done so that, once a line as such as #!/usr/bin/perl or use warnings; use strict; is seen then a code tag should be applya. If so, where then is the "free-will" and the real "freedom".
Make a tool available to people and show them how to use it, is way of better than doing it for them.
Mine thought!

a I prefer people putting their codes in code tags though!!!

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Replies are listed 'Best First'.
Re^2: Functionality to automatically insert <readmore> tags into long posts?
by OfficeLinebacker (Chaplain) on Jul 05, 2013 at 20:12 UTC
    I think it's kind of funny to make "use warnings/use strict" be the marker for code! Isn't one of the most given pieces of advice on here "you should use strict!!"?

      'Isn't one of the most given pieces of advice on here "you should use strict!!"?'

      Sadly I don't think so ;) Regardless, it doesn't make sense to have this as a marker for code tags, as a lot of posts contain short self contained snippets rather than full programs.

        as a side note: heuristic to detect (perl) code

        update

        Combining all methods with a weighting function should be enough to warn posters about missing code-tags with a high reliability.

        The fine tuning of the weights could be done with genetic training with old postings which already have code tags.

        Cheers Rolf

        ( addicted to the Perl Programming Language)