[22:24:13] <~moots> man people here must be EXPERT PROGRAMMERS
[22:24:17] <~moots> go post on /prog/ more, they'll love you
What are your opinions on php?
Name:
Anonymous2008-06-26 17:33
I've used better languages, but its ubiquity makes it a useful one to know. Also, the online language reference is very good indeed.
Name:
Anonymous2008-06-26 17:35
“When you become professor, you will get all these students here. I will arrange the scholarships.”
“Great”
Now, let us discuss HIVEMIND over dinner.
Name:
Anonymous2008-06-26 19:11
It was my starting language, and I can't seem to get away from it. I know a dozen other languages, but I almost always find PHP the best for the task. Certain techniques are of course easier in a language that has it built-in, but almost no matter how complex, I can figure out a way to do it in PHP (including monads, type polymorphism, lazy evaluation, etc.). As long as it can obey my commands faster than I can give them and give me the needed information within 5 seconds of execution, speed isn't much of an issue,
I think it's because I've gotten used to the documentation. When I want to do something complex, the documentations of other libraries and languages are more complex and thus offers a more moderate learning-curve until I get used to them, and I get bored while searching for new information.
Name:
Anonymous2008-06-26 19:22
>>4
php.net is an excellent resource. But I can't get past how hacked together the language feels.
>>4 I almost always find PHP the best for the task
You obviously don't do anything interesting.
Name:
Anonymous2008-06-26 21:24
>>5
That's because it is one large hack... It's only saving grace IS the documentation, but since it's one large hack, you *have* to continually refer to it.
PHP is great for making small simple websites quickly. It is shit for any kind of serious work or structured programming.
Name:
Anonymous2008-06-26 21:58
>>7
We're posting these comments on a website poweredbyPHP!
>>2 Also, the online language reference is very good indeed.
Of course it's good. The fact that they have a million of functions to do the same thing (with subtle differences among them) and parameters that are inconsistent across those functions ensure that you will have to use php.net a lot to get anything done.
Name:
Anonymous2008-06-27 2:01
>>14
Not to mention inconsistent naming conventions, fake lambda, strings as code without explicit eval...
Name:
Anonymous2008-06-27 2:27
>>15
functions which return arrays cannot be indexed syntactically1, some functions are syntactic keywords2...
>>18
No language needs either (which explains why Haskell has both).
Name:
Anonymous2008-06-27 6:25
>>15,16
this is why we should be using ecmascript. seriously, it's fucking 2008, why the fuck hasn't anyone come up with a decent way to use ecmascript for server-side scripting?
Name:
Anonymous2008-06-27 6:25
>>15,16
this is why we should be using ecmascript. seriously, it's fucking 2008, why the fuck hasn't anyone come up with a decent way to use ecmascript for server-side scripting?
Name:
Anonymous2008-06-27 6:31
ecmascript for server side scripting,you never heard of ajax?
PHP is a very good template language. So it's very good if you want to make a simple site with some dynamic content, for example including the current time or including other files, so you can seperate the actual content from the header and footer of your pages.
It's also very easy to learn. A simple hello world program is just: <?php echo "hello, world";?>
However it is a very bad programming language. So if you're building larger websites, e.g. anything with a database, you shouldn't use PHP.
>>28
Well there's a number of options. You could build it using something like the popular Django framework, or you could do it from scratch using FIOC technology.
Any language designed by Guido van Rossum should be fine to use, too.
Maybe write something with Google App Engine, I hear it's pretty nice.
The important thing is to stay away from Java and RoR, really.
I don't mind modern PHP that much as a language, just stay away from any form of PHP 'community', PHP users can't code worth shit.
>>25
<?fact
Php is very good copy and paste language because there are a lot of examples on the Internet, most of them using some primitive "template systems".
PHP is very bad programming language because you actually have to have some brain to program something.
?>
Google App Engine <- lmao, I'd rather use jaxer then this RoR wannabe.
Name:
Anonymous2008-06-28 14:40
>>36
Python seems very elegant compared to a lot of programming languages.
It's perfectly clear if you've ever written C. It will look familiar if you've ever written BASIC. If you're not an idiot you'll be able to jump right in from Java (But then again, if you're not an idiot, why on earth were you using Java in the first place?) It might even be sort of grokkable if all you've ever written is Lisp.
The only somewhat common language I'd honestly believe you'd have a problem coming in from would be C++. But then again, C++ programmers have irregular and arcane syntax permanently fused together with basic programming concepts in their brains, and will never amount to much anyway.
Now Ruby, there's a beast from another world. I don't object to any specific feature, but when it all comes together it seems so horribly unstructured to me. Some kind of Perl-Smalltalk mish-mash. What are you going to do with such a silly-putty language, throw clumps of it at the problem until something sticks?
Name:
Anonymous2008-06-28 15:17
Scheme seems very elegant compared to a lot of programming languages.
It's perfectly clear if you've ever written Common Lisp. It will look familiar if you've ever written Dylan. If you're not an idiot you'll be able to jump right in from RLisp (But then again, if you're not an idiot, why on earth were you using RLisp in the first place?) It might even be sort of grokkable if all you've ever written is Dylan.
The only somewhat common language I'd honestly believe you'd have a problem coming in from would be Arc. But then again, Arc programmers have irregular and arcane syntax permanently fused together with basic programming concepts in their brains, and will never amount to much anyway.
Now CLOS, there's a beast from another world. I don't object to any specific feature, but when it all comes together it seems so horribly unstructured to me. Some kind of Flavors-Common LOOPS mish-mash. What are you going to do with such a silly-putty language, throw clumps of it at the problem until something sticks?
Name:
Anonymous2008-06-28 19:44
>>42 What are you going to do with such a silly-putty language, throw clumps of it at the problem until something sticks?