If you read carefully, I'm not bad-mouthing other languages. Other language. Specific. PHP. I'm not slagging Python, Ruby, or any other of the interpretive bretheren (although I admit to not liking them - Python's whitespace in particular is a deal breaker).
PHP at a basic level is a similar language to Perl. PHP has emerged from a specific problem domain, and is now being thought of as a general purpose scripting language. My thoughts on PHP mirror RMS' thoughts on TCL - it seems to be a pointless diversion.
If people think PHP is easier to learn than Perl, I think they're wrong. However, that can't be happening through critical analysis, because apart from the specific case of code-in-web-page, Perl wins over PHP. Something else is causing people to think PHP is more suitable for work than Perl, to the extent they discuss it as above.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|