<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I was sort of kidding, and while I think the author of that piece is far, far out of his depth, there's another side that I find interesting.<div><br></div><div>Leaving aside the question of whether Perl is cruftier than Python or Javascript is scarier than Obj-C or whatever, I believe there really is an aesthetic sensibility in favor of more expressive versus more natural-sounding computer language.</div><div><br></div><div>(I say "natural-sounding" on purpose; I don't think there is such a thing as "natural-looking" instructions for a computer.)</div><div><br></div><div>A lot of people think it's better if it sounds more like a natural language:  "repeat ten times!"  "YOU HAVE TEN SECONDS TO COMPLY!"</div><div><br></div><div>But a lot of other people can "speak computer" well enough to understand how limiting it is to declare it all in English, and presumably as a result of their fluency they have an aesthetic preference for a "foreach" or whatever.</div><div><br></div><div>For instance I think this bit of Ruby is super cool and very powerfully expressive:</div><div><br></div><div><div>(1..10).each do|n|</div><div>  puts "number #{n}"</div><div>end</div></div><div><br></div><div>I don't speak Ruby, but I speak "computer" well enough to quickly grasp what the |n| is about, and I like the sound of it.  It tells me a lot, and doesn't beat around the bush.  Probably everyone on this list understands that you can "do" more this way, but my point is that I think with experience you have an actual aesthetic feel for it, and it feels better.</div><div><br></div><div>Of course, as with natural languages, not everyone is going to agree on what feels best and why.  I'm probably not going to convince you that Hungarian sounds better than French, but to me it does.  Arguing that English codes better than code is more like saying Pig Latin sounds better than French... there might be someone for whom that is true, but would you want to have unch-lay with them?</div><div><br></div><div>cheers</div><div><br></div><div>-- f.</div><div><br></div><div><br></div><div><div><div>On Jan 6, 2012, at 11:41 PM, Philip J. Hollenback wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I agree, it's a terrible example (and several commenters on the article<br>point that out).  Even though I haven't written any C in 10 years or so<br>I still cringe every time I see one of those.<br><br>On Fri, Jan 6, 2012, at 11:35 PM, Kevin Frost wrote:<br><blockquote type="cite">And of course his example of Perl is this:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">   for(int i = 0; i < 10; i++) {<br></blockquote><blockquote type="cite">   }<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I can never tell whether "int" is random syntax or whether I'm speaking<br></blockquote><blockquote type="cite">the wrong $LANGUAGE.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Jan 6, 2012, at 9:16 PM, Philip J. Hollenback wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">That stupid study about how perl is worse than random syntax is popping<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">up all over the place:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://www.fastcodesign.com/1665735/why-arent-computer-programming-languages-designed-better">http://www.fastcodesign.com/1665735/why-arent-computer-programming-languages-designed-better</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">--  <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Philip J. Hollenback<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="mailto:philiph@pobox.com">philiph@pobox.com</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://www.hollenback.net">www.hollenback.net</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">SanFrancisco-pm mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote>--  <br>Philip J. Hollenback<br><a href="mailto:philiph@pobox.com">philiph@pobox.com</a><br>www.hollenback.net<br><br></div></blockquote></div><br></div></body></html>