Hacker News new | ask | show | jobs
by bendemott 6473 days ago
I see the complaint as this: Does Lisp Feature a PECL Installer? - What if you need a clustered server environment - how are you going to role out a large application to 20, 30, 500 servers? PECL and PHP Offers libraries (functions really) to accomplish much more off the shelf through it's Standard Library than many other languages. -Compiled-In DB Drivers (MSSQL,MYSQL,PGSQL,ODBC,SQLITE) -LDAP -KADM5 -Mcrypt -PDO -Sockets -XML -SOAP -(an excellent set of string and array functions)

Actually can someone who knows more about .Net, Ruby, or Java tell me of the features I listed what languages have these features that come with, or are optional?

I don't find the language to be ugly, dirty, or unpleasant. Java is the most popular programming language in the world, and I cannot stand it, if I have to create one more NEW object simply to format CSS text I am going to explode.

I have no problem properly naming and using 1,000 functions. I would rather know each function than have 10 objects with 100 methods each. Objects have their place for Webapps (which ultimately output text last time I checked) Web Applications do not need to be abstracted to the point of Object Inheritance Oblivion!

Can someone please tell me of all the better ways to write this in other languages that are so far superior to PHP?

<?php $br = "<br />"; if(!empty($_SERVER['HTTP_REFERRER'] && !stripos($_SERVER['HTTP_REFERRER'],$_SERVER['HTTP_HOST'])) { print "Remote Login Denied!" . $br; } else { print "Success!" . $br; } ?>

1 comments

Here is even a better way...

$br = "<br />" && !empty($_SERVER['HTTP_REFERRER'] && !stripos($_SERVER['HTTP_REFERRER'],$_SERVER['HTTP_HOST']) && print("Remote Login Denied!" . $br;) || print("Success!" . $br);

I always code like this and call it if-less programming. No matter how smart the new grad is, they find it very hard to follow:-) Job security dude.