Re^2: Do not understand code
by Anonymous Monk on Sep 28, 2017 at 14:01 UTC
|
That's right, kids, when you're writing Perl, remember to restrict yourselves to the subset of the language that looks sort of like C, otherwise people might not understand! The statement unlink $file if /.BGV/; should obviously have been written this way:
my @str = split //;
for (my $i = 1; $i < scalar(@str) - 2; $i++) {
if ($str[$i] eq 'B' && $str[$i+1] eq 'G' && $str[$i+2] eq 'V') {
unlink $file;
$i = scalar(@str) - 2;
}
}
See how much more readable that is? | [reply] [d/l] |
|
No way! All I know is Python, so this the only right way to write Perl!
| [reply] |
Re^2: Do not understand code
by Anonymous Monk on Sep 28, 2017 at 12:28 UTC
|
| [reply] |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Re^2: Do not understand code
by LanX (Saint) on Sep 28, 2017 at 19:10 UTC
|
| [reply] |
|
Gentlemen, I think some of the points written by mr. Robinson are in fact valid, albeit surrounded by a lot of "cute statements". I believe it would be correct to point out present mistakes in the node, however I do not think it is correct to just let bad blood flow in this forum.
Having said that, thank you all for help you provide to others. It means a lot to people like me.
| [reply] |
|
> I do not think it is correct to just let bad blood flow in this forum.
Imagine a self proclaimed driving instructor from England - obsessive and deaf - constantly preaching to continental students to drive on the left side. *
> I believe it would be correct to point out present mistakes in the node,
These corrections bind more energy than feeding all the other trolls together, because you can't leave them uncommented.
Just have a look at Worst Nodes of The Year ²
And the proportion of his negative posts is astronomic. ³
> however I do not think it is correct to just let bad blood flow in this forum.
A lot has been said and proposed already, even automatically marking or reaping exceptionally negative posts.
But if you think "some of the points ... are in fact valid" you are welcome to put your energy into discussing them.
updates
*) well imagine a Brexiter "politician" giving all his jingoistic speeches in public in Europe ...
²) now try to imagine worst nodes of the last years.
³) almost one quarter of his posts are negative, far more have been down-voted at least once.
It's obvious that almost everybody is relieved when he doesn't show up and practically nobody would miss him.
update
See also
| [reply] |
|
|
|
|
|
|
ok, the hate he gets doesn't make this place look friendly, but he is a troll, it's what he wants
| [reply] |