language?

Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/pied-piper.ermarian.net/includes/common.inc).

Pages

AuthorTopic: language?
Shock Trooper
Member # 5181
Profile Homepage #25
How appropriately nonsequential of you, Alec.

Please come back when you have something to offer to the discussion.

kthxbye.
Posts: 262 | Registered: Thursday, November 11 2004 08:00
Bob's Big Date
Member # 3151
Profile Homepage #26
I apologize for my flippant and accurate slur. To atone, I have replaced it with an on-topic and accurate slur.

Have fun!

--------------------
The biggest, the baddest, and the fattest.
Posts: 2367 | Registered: Friday, June 27 2003 07:00
Shock Trooper
Member # 5181
Profile Homepage #27
I applaud!
Posts: 262 | Registered: Thursday, November 11 2004 08:00
Infiltrator
Member # 154
Profile #28
quote:
Originally written by The Dog And Pony Show:

[b]Keep in mind here I'm speaking of PHP 4 and below; PHP 5 is not yet deployed enough to be worth discussing.

PHP is a poorly designed language. It has a very weak module system, and almost all of the standard library is loaded by default.
> This is true. But is the speed decrease significant?

It takes the atrocious and ugly syntax of Perl (universal sigils, etc.) without the actual useful bits (primitive regexes).
> I presume by 'sigil' you mean the variable prefix ($). I think it helps clarify the code and eases readability.
> Primative regexes- I can only assume you're talking about something like
> $a = /regexp/
> $a->match($wtf);
> I haven't taken the time to learn Perl regexes -
> I usually use POSIX.

In general, you can't choose what parts of the standard library get loaded or not at runtime. Oh, and I haven't seen any evidence of namespaces at all.
> The point is that *why* you would need
> namespaces in a web-based environment. PHP is a
> sort of 'Web-dev RAD system that yet manages to
> not be evil like most RAD systems'. In PHP5
> various OO functions were introduced, but I
> recall reading an article that generally
> said "Why the hell would you need this in web
> -dev anyway?".

Until recently, the default behavior was to automatically load CGI arguments into global variables, which is of course absurdly foolish.
> I agree that it was rediculous. They have fixed this nastiness. Why dwell on their past mistakes?

PHP encourages the mixing of data and code. Some people might consider its HTML embedding to be an advantage; I consider it to be a major flaw. Any good code would eschew such obfuscation, and most significant PHP projects do.
> The flexibility of PHP (particularly how if(){ ?> conditional HTML ?php } is valid syntax) is
> partially to blame for HTML embedding. But providing the developer is careful and responsible enough this can be avoided. I'm sure there are tons of *Perl* programs out there which are crappily written.
[?php is due to UBB's crappy HTML filtering.]

Its object model has been historically either nonexistent or hackish. This may not be interesting to procedural programmers, but it is a major flaw in my eyes.
> Are you complaining about how they implemented OO in the C sourcecode or what?

It depends heavily on pragmas and other global configuration settings, due to the aforementioned lack of granularity.
> Again, what the hell are you blabbering about.

PHP is, in general, an ugly, hackish language that shows its original purpose as a glorified SSI system in every wrinkle and crack.
> Really? Provide examples.
http://www.bitstorm.org/edwin/en/php-sucks/[/URL][/QB]
[/url]
quote:
Originally written by ARRR-enax:

And yet PHP is incredibly popular and used way more often than Ruby is.

So the market decrees you are wrong, Djur. :D (Not that I don't disagree--PHP is rather hackish--but it's good for what it does. I just pity the people who don't know any other language.)

For gods sake, popularity != goodness. Look at VB.

--------------------
Inconsistently backward.
SWOH. IM, PATF, ND.
Posts: 612 | Registered: Saturday, October 13 2001 07:00
Warrior
Member # 5091
Profile #29
I provided examples. See the link that you horrifically mangled with your failure to succeed.

You definitely need some sort of code separation when working on actual projects, not just dinky little blogs. The MVC architecture is as useful for web applications as any, if not more so.

Your quote is illuminating, really. Web applications are applications. They shouldn't be treated with any less care than any other kind of application. It's fine for your dopey blog to be a single-file hack, but real software needs to be architected. The PHP community largely doesn't realize this, mostly because it consists primarily of 14-year-old script kiddies.

My complaint about pragmas is about how there are numerous global runtime or environmental variables that fundamentally change the operation of the language. (Primary reference: magic quotes.) This requires you to develop not knowing which of those magical switches your admin flipped.

A decent programming language is consistent within itself, with no external pragmas.

[ Friday, December 17, 2004 10:03: Message edited by: The Dog And Pony Show ]
Posts: 180 | Registered: Friday, October 15 2004 07:00

Pages