ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Location: Student of University of Mumbai, Maharastra State, India
Distribution: Redhat Linux 9.0, Knoppix LIVE CD, Ubuntu Live CD, Kubuntu Live CD
Posts: 483
Rep:
asp has some disadvantages over cgi and php. However, php is new and strong enough and much like the scripting language in Unix used for shell scripts (saying this on basis of $x and stuff...)....
Go for php or cgi....(priority to php)
On your choice and the kind of your website (what services information etc it is providing...)
My preference goes to... JSP
But PHP is very used, very stable, very fast, very standard, cross-platform... well that's the one you want (although I hate the language itself: it lacks consistency).
Originally posted by theYinYeti My preference goes to... JSP
But PHP is very used, very stable, very fast, very standard, cross-platform... well that's the one you want (although I hate the language itself: it lacks consistency).
Yves.
Well it sounded as if he was saying it against php so
wanted to ask find out
You're right, I'm both pro- and anti-PHP
PHP was created, and has improved, to do a specific job: dynamic web pages (even though it can do a lot more). And PHP does this job very well.
But, as I said, I don't like the way it lacks consistency. A few examples:
- Some functions have a long name (get_html_translation_table, number_format...) and some have a short name, often inspired by C (substr, strstr...).
- Some functions are prefixed by their "category" (strtoupper, str_pad, array_keys), and some aren't (crypt, count).
- Some multi-word functions have underscores (convert_cyr_string, in_array), and some have not (stripslashes, natcasesort).
- Some array functions take the array as first parameter (array_push, sort), and some take it as the last parameter (array_key_exists, in_array).
- Same with the main string in string functions: first position (wordwrap, substr_count) or not (str_replace, explode).
I use this language nonetheless, because it's working well. It's just that it is far from "elegant", and makes it easy to write mistakes, all the more because there's no strong typing.
By the way, in Java, nothing is loaded that is not used (except the core classes, much like "stdio"). If you use something, you import it, else you don't and it is not loaded.
There are indeed a vast number of classes. That's because each class is very specific: it does one thing and does it well. It's actually very close to the Unix philosophy. Each tool does a single little thing, and the power of Unix comes from the ability to combine those tools (with pipes, redirections...) to do what Windows users wouldn't even dream of doing. Same with Java.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.