Personally, I hate seeing a solution before even having a try at the problem; that spoils all the fun. But I do admit that having a way to ignore such "black outs" would be nice.
Also, I take it as being too much trouble to hide something creating a whole table just to put a cell in it.
Not to mention the fact that not all Perl programmers know much of HTML, as NateTut pointed out. And even if they do, they sometimes have to think before posting.
I'm talking
<black>solution</black>
against
<table...
er...
<table bg?
<table><tr><td bgcolor="black" ??
See? :-) | [reply] [d/l] [select] |
Personally, I hate seeing a solution before even having a try at the problem; that spoils all the fun.
Agreed. My point was not that such threads would be necessitated to present the solution, rather that the presentation of the solution be done in a manner conducive to learning perl. Consider:
Q. Perl question of the week.
A. <span class="spoiler">The Solution</span>
versus
Q. Perl question of the week.
A. [id://node|The Solution]
Both methods seperate the question from the solution, but the latter does so without obsfucation (and in my opinion, with a better presentation).
However, in the interest of completeness, for those who aren't as HTML savy and want to use the tags, have you considered adding the "spoiler code" to your user preferences for the text-area default content?
<!--
<span class="spoiler"></span>
-->
The comments would preclude the code from being inserted in every post, yet it would be there as a reminder whenever necessary.
Having said that, HTML is an abstraction. PerlMonks tags are an abstraction of an abstraction. While I have found the [] tags particularly beneficial for intrasite links, I find the proposed <spoiler> tags akin to bbcode, namely a further abstraction. The point being that if one is to learn an abstraction, they may as well learn a productive one. HTML is universal; the proposed <spoiler> tags are not. Consider:
<spoiler></spoiler>
<span class="spoiler"></span>
The proposed tags are slightly shorter, but their use necessitates understanding of HTML (opening and closing tags). The addition of an attribute would require slightly more effort, but as I've said, if you're going to use an abstraction, you may as well use something universal. | [reply] [d/l] [select] |
Both methods seperate the question from the solution, but the latter does so without obsfucation (and in my opinion, with a better presentation).
I disagree with the "better presentation". I prefer the former one. The latter one requires another client-server round, downloading another perlmonks page - with all it's irrelevant stuff like boxes, headers and banner ads. Just for what's often is less than a line of text or code. Very inefficient in user time. It's even worse if you have a post with several replies with masked answers. Instead of getting the original post, and the, say, five masked answers in one HTTP transaction, you need six for the link variant.
| [reply] |
Having said that, HTML is an abstraction. PerlMonks tags are an abstraction of an abstraction. While I have found the [] tags particularly beneficial for intrasite links, I find the proposed tags akin to bbcode, namely a further abstraction. The point being that if one is to learn an abstraction, they may as well learn a productive one. HTML is universal; the proposed tags are not.
You seem to overlook the fact that with special tags we can all kinds of server side special processing of the contents of the special tags. Doing so with attributes would be much much more difficult, to the point that in my mind it would be impossible. For instance how would you simulate the behaviour of the default "link-and-omit" with attributes and without JS?
This is an example spoiler....
| [reply] |