An interview with Larry Wall (LinuxVoice)
An interview with Larry Wall (LinuxVoice)
Posted Jul 16, 2015 10:27 UTC (Thu) by epa (subscriber, #39769)In reply to: An interview with Larry Wall (LinuxVoice) by marcH
Parent article: An interview with Larry Wall (LinuxVoice)
But although the a01 code expresses exactly *what* you are getting the machine to do, it says nothing to a human reader about *why*. You could, I suppose, write code in this style and rely on comments to explain the intent, but normally it is better to use both ways of communicating, so that both the program code (through meaningful variable names, routine names, code structure and ordering) and the comments give a human reader some idea of what you were thinking and what all this highly specified, minutely detailed code is intended to be *for*.
Posted Jul 16, 2015 15:24 UTC (Thu)
by marcH (subscriber, #57642)
[Link] (8 responses)
Absolutely. It is difficult because programming languages must be both completely unambiguous (unlike Perl) and help humans to understand code *as well*. Not just one or the other.
The (successful) approach to square this circle and make code easier for humans *without* helping ambiguities, corner cases and bugs is: higher level of abstractions and mathematics. Not natural languages. Yes this means that programmers with a mathematical and scientific background and/or taste (rather than... linguists) make better programmers. How's that new?
Posted Jul 16, 2015 15:50 UTC (Thu)
by epa (subscriber, #39769)
[Link] (4 responses)
Most of the syntactic sugar in Perl or any language (like having both 'for' and 'while', or having both 'if' and 'unless') does not introduce any ambiguity or uncertainty about how a program will be parsed and executed.
Posted Jul 16, 2015 16:02 UTC (Thu)
by marcH (subscriber, #57642)
[Link] (3 responses)
Quote from this nice and short interview of an incredibly smart person:
> Arguably in Perl 1 through to 5 we didn’t manage it quite adequately enough. Sometimes the computer was confused when it really shouldn’t be. With Perl 6, we discovered some ways to make the computer more sure about what the user is talking about, even if the user is confused about whether something is really a string or a number.
"...discovered some ways to make more sure even if the user is confused"?! Bye Perl!
Posted Jul 16, 2015 17:52 UTC (Thu)
by raiph (guest, #89283)
[Link]
What Larry was talking about was the concepts that A) sometimes coders are confused (this is true in any language) and B) it's a good thing to provide better error messages (this is also true in any language) and that Perl 6 is better able to provide better error messages when a coder is confused.
Posted Jul 17, 2015 9:04 UTC (Fri)
by epa (subscriber, #39769)
[Link]
Posted Jul 18, 2015 19:15 UTC (Sat)
by flussence (guest, #85566)
[Link]
I believe this is referring to design decisions like $a + $b producing either a number or helpful type mismatch error message, whereas in the language holding the front of the web together, addition is a non-commutative operator and also "grapefruit" is a legal return value.
Maybe with a little education you'll be offended at the right languages?
Posted Jul 16, 2015 17:39 UTC (Thu)
by raiph (guest, #89283)
[Link] (2 responses)
Perl 6's grammar is defined in terms of Perl 6 Rules (https://en.wikipedia.org/wiki/Perl_6_rules) which are PEGs (https://en.wikipedia.org/wiki/Parsing_expression_grammar) which "can not be ambiguous". Were you talking about Perl 5 or are you imagining that the Perl 6 grammar is not completely unambiguous?
> programmers with a ... scientific background and/or taste (rather than... linguists)
"Linguistics is the the scientific study of ..." (from https://en.wikipedia.org/wiki/Linguistics). You are presenting a false dichotomy.
> make better programmers
Please cite non-controversial scientific evidence for this claim.
Also, I'm curious; do you self-identify as having a mathematical or scientific background and/or taste and as being a better programmer?
Posted Jul 16, 2015 17:48 UTC (Thu)
by juliank (guest, #45896)
[Link] (1 responses)
But in practice...
Posted Jul 17, 2015 12:35 UTC (Fri)
by Wol (subscriber, #4433)
[Link]
But then, unless you have at least some clue as to why it makes sense to argue how many angels can dance on the head of pin - I did know, but have forgotten - you're likely to dismiss Philosophy as irrelevant. Unfortunately, mathematicians and scientists have specialised so much, they've forgotten where their disciplines came from.
(Newton was a "Natural Philosopher" - he dabbled in maths, physics, alchemy, medicine, the lot. They hadn't invented those disciplines back then :-)
Cheers,
An interview with Larry Wall (LinuxVoice)
An interview with Larry Wall (LinuxVoice)
An interview with Larry Wall (LinuxVoice)
An interview with Larry Wall (LinuxVoice)
An interview with Larry Wall (LinuxVoice)
An interview with Larry Wall (LinuxVoice)
An interview with Larry Wall (LinuxVoice)
An interview with Larry Wall (LinuxVoice)
An interview with Larry Wall (LinuxVoice)
Wol