News for hackers. Stuff that matters.
Re:An experiment-driven guide to Perl by sea6ear on Tuesday February 11, 2014 @05:03PM (#7220812)
I posted this article. I believe that the author, Matt Might is a professor specializing in programming language theory at the University of Utah.

My understanding of this article was that it was less of a tutorial and more of an analysis of the actual semantics of Perl. Thus it is less about how one should write "Modern Perl" than it is about how Perl actually behaves in various circumstances.

Re:An experiment-driven guide to Perl by mst on Tuesday February 11, 2014 @05:20PM (#7220908)
Right, but when there's more than one syntax to use to get that behaviour, he invariably picks the c.2001 preference rather than what we've done since.

It's like if somebody started their ruby tutorial off with how to implement your own object system with method_missing.

Sure, it fits the 'actual semantics', but it's not what we really want people to see first :)

Re:An experiment-driven guide to Perl by sea6ear on Tuesday February 11, 2014 @05:28PM (#7220963)
I'd actually enjoy that :) However, I first really understood objects from learning how to create them from closures in Scheme. And I'm not sure how many object systems built from array reference hacks in Tcl I've looked at.

But probably not what most people are probably looking for when they are first trying to understand something like Perl or Ruby.

Re:An experiment-driven guide to Perl by perigrin on Tuesday February 11, 2014 @08:53PM (#7221973)
Actually (and sadly) for some jobs with Perl that involve codebases older than 2007. That material would be useful. Because, like the languages you mention, deriving object systems from Perl5's rough axioms, was at one point something of a hobby for people.
Re:An experiment-driven guide to Perl by mattmight on Tuesday February 11, 2014 @05:36PM (#7221019)
Over the course of the article, I tried to show as many different ways of doing something as possible, without assigning judgment as to the "right" way to do something.

If you point out instances where I only documented the old syntax, let me know, and I'll add newer examples as well.

Re:An experiment-driven guide to Perl by Mithaldu on Tuesday February 11, 2014 @05:40PM (#7221035)
The point is that in every single topic you touch where there is a more modern way to do it, if you mention that modern way, you do it as an aside; instead of first showing the modern way of doing it, and then mentioning as an aside that there is an insane way of doing it.
Re:An experiment-driven guide to Perl by mst on Wednesday February 12, 2014 @01:37PM (#7226277)
Wow. Author asks for bug reports ... you explain it's all buggy and don't provide a single example.

For your sins, I'm going to see if I can convince the author to get it into a repository and then I'm going to give you a commit bit ... :D

Re:An experiment-driven guide to Perl by mattmight on Tuesday February 11, 2014 @05:40PM (#7221039)
You're exactly right.

An alternate theme for this article might be: "What happens when a formal semanticist looks at Perl?"

Re:An experiment-driven guide to Perl by ediblenergy on Wednesday February 12, 2014 @03:59PM (#7227243)
That would be a better title than "Learn Perl by experiment" or "perl-by-example" or "A Guide to Perl: By Experiment" all of which suggest a tutorial, which you're saying is not what you're trying to present.
Re:An experiment-driven guide to Perl by Mithaldu on Tuesday February 11, 2014 @05:13PM (#7220865)
If it's not a tutorial then i don't understand why he explains EXTREMELY basic things in the worst possible way, fails to actually explain the interesting details of subtle and complex things (like the differences between the ways a sub can be called (no, they do NOT all do the same thing)), and managed to produce a document that looks like it contains literally ALL the things from ALL the bad tutorials i've seen in the past 9 years, with nothing from any of the good ones.
Re:An experiment-driven guide to Perl by jsnell on Tuesday February 11, 2014 @05:23PM (#7220930)
It appears that you've decided it must be a tutorial, and your only basis for that is that it's not a tutorial. That's extremely uncharitable, almost insanely so. Especially since the word "tutorial" appears nowhere in the text. The only reference to learning or teaching is a list of resources for actually learning Perl.
Re:An experiment-driven guide to Perl by mst on Tuesday February 11, 2014 @05:23PM (#7220928)
Actually, he does appear to explain &foo() later on, he just doesn't bother mentioning up front that it's completely different.

I think if you consider it as an academic piece, where you're supposed to read all of it and then think, it wouldn't be a bad introduction to perl as it was written in 2003.

Re:An experiment-driven guide to Perl by tredontho on Tuesday February 11, 2014 @06:46PM (#7221453)
Okay, I've read a few of Might's posts, and they're pretty interesting. But it irks me for some reason that nowhere in the posts can I find a date. Am I missing something? Where did you grab this 2003?
Re:An experiment-driven guide to Perl by mst on Wednesday February 12, 2014 @01:27PM (#7226198)
From the code. Were I to paranthesise the sentence, "perl as it was written in 2003" would be one clause.