tag:blogger.com,1999:blog-5910101498857524639.post5651566537373927452..comments2014-08-10T06:17:30.786+02:00Comments on # where we turn Perl inside out: Why PHP is not my favourite language?prznoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-5910101498857524639.post-81671300395058147292009-11-07T12:04:34.807+01:002009-11-07T12:04:34.807+01:00jsr solutions a software development company is or...jsr solutions a software development company is organising a test in quest univercity Mohali(landra) on the basis of apttitude and gernal knowledge.The top 50 students who pass this test have to be taken for you can register your roll no here <a href="http://training.jsrsolutions.com/registration.aspx" rel="nofollow"> free B-tech Training </a> on freenikehttp://www.blogger.com/profile/07590482350736606909noreply@blogger.comtag:blogger.com,1999:blog-5910101498857524639.post-42649385896246790512009-09-29T18:15:57.185+02:002009-09-29T18:15:57.185+02:00I dislike php because you can do the following is ...I dislike php because you can do the following is incredibly hard to debug, and the interpreter will silently go on without any warnings or errors:<br /><br />$ZipCode = &#39;90210&#39;;<br /><br />... <br />... lots of code<br /><br />print &quot;the zip is: $ZIPCode\n&quot;;<br /><br />In my opinion this is fundamentally broken, and I will have a hard time convincing myself to use php for any reason because of this.<br />This is solved with one line in perl5:<br /><br />use strict;<br /><br />I was also surprised that ruby and python while they would fail on the above sudo code, they wouldn&#39;t fail on the following case:<br /><br />zipcode = database_row[zipcode];<br />if(new_data_is_entered) {<br /> zipcdoe = new_zipcodel;<br />}<br /><br />In both ruby and python, every assignment translates to &quot;my variable = &quot;.Leonardhttp://blog.lib.umn.edu/leonard/perl/noreply@blogger.comtag:blogger.com,1999:blog-5910101498857524639.post-37729545783483135722009-09-29T18:08:25.939+02:002009-09-29T18:08:25.939+02:00Mostly because of the things that Perl has and PHP...Mostly because of the things that Perl has and PHP doesn&#39;t. It&#39;s not that PHP is &quot;evil&quot;. That trap is so easy to fall into. But:<br /><br />- No map<br />- I hate all the variations on sort<br />- (proper) closures<br />- a lack of a central code repo (PEAR and PECL not withstanding)<br />- a lack of &quot;best practices&quot;<br />- not a big testing culture (though there is movement in this)<br />- wheel reinvention; this goes with the lack of a central code repo (everyone redoes everythign)<br />- the use of one data type for both indexed and associative data structures<br /><br />That being said, for most PHP apps, deployment is dead simple.Dave Doylehttp://www.blogger.com/profile/17023725818103796500noreply@blogger.com