- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
It seems that so far no one has actually leveled any specific criticism against PHP/LAMP.
Unless the count the guy that thinks Active Directory has something to do with LAMP.
Hmmm.
Admin
lol. I had this exact thought.
Admin
Actually there are a number of MVC frameworks available for PHP such as CakePHP (http://www.phpwact.org/php/mvc_frameworks). PHP isn't intrisically MVC, but neither is Java Server Pages, or ASP.NET but there are frameworks available for those platforms that give you MVC capabilities (such as Struts and ASP.NET MVC).
Also you still haven;t countered the argument that there are a lot of major websites written in PHP.
Admin
Wait, I found one:
"I mean, it's not exactly friendly to an MVC solution, is it?"
How do you figure?
You can write PHP 5 code that is virtually identical to Java, not to mention that PHP itself is a templating language. Are you trying to say that Java isn't friendly to an MVC solution?
Admin
Next idiot please.
Admin
Because I don't think it means what you think it means.
Admin
Inconceivable!
Admin
Heh, I was right.
Paraphrasing: "OMG PHP suxxors"
PHP does MVC really well. Well, M and VC, anyway.
Admin
With regards to the twinkie - we all know size doesn't matter!!
Captcha: transverbero - When a verb dresses up as a noun.
Admin
To address your position: PHP is an incredibly lousy choice for an MVC platform. (As is ASP.Net.) They're not designed for it, and they've not developed towards it.
The fact that a bunch of "major websites" are written in PHP is simply an indication of sunk costs and opportunity cost. It is, by no means, a suggestion that PHP was the right choice in the first place. And, if you'll drag your tiny little memory back to what I first said, there's nothing wrong with using PHP -- if that happens to be the right choice for you.
But, let's get sane and business-like. I'm going to develop a website, in November 2009, over the next six months. I've got tens of cheap (and possibly brilliant) layout designers. I'm going to work on top of a LAMP stack, for some reason. (Hey, I'm not the CFO!)
Language of choice: so much not PHP.
Wanna know why?
It's not the fact that the language is a lash-up.
It's not the fact that the libraries are confusing mulch.
It's not the fact that I'd have to pick one out of many dismal MVC wannabe frameworks.
It's not even the fact that there are so many better alternatives out there.
No, it's the fact that 99.999% of PHP programmers are better suited to crochet. This is quite important. Have you ever tried to maintain crochet? That'll be 80% of your stupid f**king job, and believe me, I'm not even going to pay that much.
Got that?
Now. Look back at the OP, and tell me from the heart that this isn't the standard 99.999% of PHP gimp disaster.
Admin
No-one CAN make a specific criticism against PHP. There's nothing wrong with it. It was built specifically for web pages, and does the job perfectly.
Now, JSP? That's just Java. Written for graphical applications, object oriented stuff.
ASP.NET? Using C# or VBScript or VB.NET, all built specifically for desktop applications (well, not vbscript, that's a failed javascript rival they put into internet explorer). More object oriented stuff.
You don't need object oriented in a web app. Grab what you need and spit out a string. That's it. Command line apps get more complex than that. And yes, PHP does support object oriented, but it can do without as well, and that's where its power comes from. Don't need this function? Don't include the file that contains it. Simple. Everything you need is within reach of a single function call. Why waste time assigning data structures to objects when you're just going to dump it all and start again the next time the user clicks a link? Put it in an array and spit out the array. Don't know how big the array is? Doesn't matter, just use it, it'll adjust. Got convoluted spaghetti code that does weird things? You wrote it, you idi-it!
("idi" being an undefined acronym essentially meaning "make better". say it aloud.)
Admin
Admin
Oh Yes it does!
It's not the language, is it? Blah blah blah. But, as it happens, most computer languages are Turing complete. PHP5 and Java both. All you need is an Abstract Syntax Tree, a pencil, and an infinite length of paper tape. (Small King's College Cambridge joke, there.)
Being Turing complete doesn't make a language suitable for purpose -- it's a very broad definition.
Neither, incidentally, does signing off as "Anonymous Asshole" make you one tenth the man that Andre the Giant was. Mind you, he used to get driven to school by Samuel Beckett.
You? Not so much.
Admin
Next to last, please?
Admin
Admin
Given the bombastic nature of your replies combined with a total lack of supporting evidence, I'm going to guess that you work with Ruby on Rails or are part of some other similarly masturbatory clique. Am I right?
Because you're too ignorant to realize that the "P" in "LAMP" stands for "PHP?"Admin
... and thanks for ruining the site for me. Goodbye.
Admin
This sounds like sufficient cause to see a physician.
Admin
Web Applications should be written in ColdFusion, as god intended. It's the only language that was written from the ground up to be used to build web applications, and the only excuse against it was that it's not free.
Well guess what? With Railo and BlueDragon it's not 100% free and there is no longer an excuse for using somethign as awefull as PHP when something as awesome as CF is available.
Admin
Always enjoy a good holy war. eats popcorn
Admin
"PHP is a lousy choice for a templating language."
I'd have to agree with you there, but then again that wasn't really the point, was it?
"And no, I'm not."
What is it about PHP that isn't friendly to MVC (keeping in mind you can write PHP that's identical to Java, which you claim is friendly to MVC)?
"No, it's the fact that 99.999% of PHP programmers are better suited to crochet."
So you can't explain why symfony, for example, is a "dismal MVC wannabe framework" (let me guess, you've never used it?), so you've moved on to complaining about the skill level of the average PHP programmer.
...which begs the question, why don't you just learn how to interview?
Admin
And then -- not one, but two, childish idiots.
The original "P" was Perl. I don't really care whether your version of "P" is PHP or Python or PLisp or PWhatever. The general assumption is that the P in question is a scripting language, available on a Linux platform, switched through the (disgusting, but that's another issue) Apache engine, and relying for persistence on MySQL.
I'll buy ignorance for a dollar, Aaron. What I won't buy is being forced to use an idiot language like PHP when I have better alternatives. That's kind of the "Language of choice" thing.
We're all going to miss you.And no, Aaron, I don't work on Ruby on Rails. I'm a systems programmer. I watch this rubbish from the sidelines. As far as I can tell, you're all pretty worthless -- but I'm open-minded about this. Let's see what happens when I bring the next website up.
Oh ... Shit!!!
Admin
I've never learnt to play the trombone, either. There's a dangling question, if ever I saw one. Life is too short to learn either some mis-spelt abortion like "symfony" or a big brass thing that requires me to form an embouchure.
I'm not complaining about the skill level of the average PHP programmer. I never even mentioned the skill level of the average PHP programmer. In fact, I couldn't give a shit. I'm merely observing that, should you choose to distinguish the mathematical concept of "average" into the typical three categories of arithmetic, median, and geometric, then the only one that gives you a chance of hiring a decent PHP programmer (and there's a pretty good chance of them being able to program in any other language whatsoever) is the geometric. I'll admit: 99.999% is a bit extreme. But it's a good starting point.
Good Lord, man, where did "interviewing" come in? I've done that, with mixed success. I've nibbled on crocodile nipples, although I'd caution against that if the crocodile is male. I've led men up mountains, and women down valleys.
One thing I won't do is program in PHP again. It offends my aesthetic sensibilities.
Admin
"I'm a systems programmer. I watch this rubbish from the sidelines."
Oh, dear. Who better to judge web MVC frameworks than a systems programmer watching from the sidelines?
Actually, fuck it. You're right. This whole "web application" thing is going to die out soon enough.
Admin
This is why you dont hire no talent hacks for low pay to do your site coding.
It's also a great example of you get what you pay for. These companies completely deserve the quality work they get.
Hey complete WEB site design plus scripting? Then you have to pay professional wages! That means $36.00 an hour at a STARTING PAY RATE for a Noob that actually has a clue as to what he is doing.
MCSE's need not apply.
Admin
Admin
Admin
I certainly hope you don't hire an MCSE (Microsoft Certified Systems Engineer, aka Server Admin) to develop a webpage for you... or at least don't pay much money for it.
Now a MCSD or MCPD would work a lot better for you (assuming your doing ASP.Net).
(captcha similis - the next sims game)
Admin
/me contemplates starting a Linux vs Mac war with what is apparently an easy crowd to rile up today.
Admin
[quote user="Bim Job"] What's kind of what "Turing complete" means?
Because I don't think it means what you think it means.[/quote]Well, we're apparently in pantomime season.
Oh Yes it does!
It's not the language, is it? Blah blah blah. But, as it happens, most computer languages are Turing complete. PHP5 and Java both. All you need is an Abstract Syntax Tree, a pencil, and an infinite length of paper tape. (Small King's College Cambridge joke, there.)
Being Turing complete doesn't make a language suitable for purpose -- it's a very broad definition.[/quote]
Exactly, I mean even BrainF*ck is Turing complete (if the memory is assumed to be infinite), however I would dare anyone to write a database application in it. I'm sure someone can prove that it can be done, but no thanks on trying!
Yours Yazeran
Plan: To go to Mars one day with a hammer
Admin
Systems programmer going off about PHP, denying he uses RoR, and some random nutjob out of the crowd cheering on CF? Whoohoo stirred up a turd here we did.
PHP for MVC? Ok, if you must apply MVC for your needs, use a framework, make a framework, of fix a framework. But STFU, get your damn work done an quit your bitching.
JSP, I'm sorree its Java just wasn't freaking made for it. Just IMO.
New fangled jingle-jangle whosits language of the month? Hell, I bet few of you know what haXe or neko are do you? Pretty powerful stuff, but it's young and evolving and hasn't been plastered ALL OVER THE DAMN WEB BY TWITTER FREAKS. Aww. Too bad.
Tool - for - job. That simple. Lots of tools are awesomely handy. Problem is, even if its the most versatile and most power tool on the planet, if you're trying to bang a screw in with a nail hit by a ball peen hammer, you're still and IDIOT who doesn't know how to use ANY tools. Doesn't matter which f'in language it is!
WAIT WAIT WAIT
My popcorn isn't ready.
Ok, done, and buttered
You may now debate.
PS, nice broken quote.
Admin
I'm 'merely observing' that remarkable feat of double-speak. If Cirque du Soleil ever needs a new contortionist you should drop them a line.
Admin
Admin
Once again:
Good developers can write good, secure code in any language on any platform.
Bad developers can write bad, WTF code in any language on any platform.
Mediocre developers can write good code or bad code, the language and platform choice may help or hinder that. Difficult languages/platforms just give mediocre coders more rope to hang themselves with.
~80% of developers are mediocre.
A drunk can total a Ferrari just as easily as Toyota, the Ferrari just lets them do it faster and more spectacularly.
Admin
Given how misspelled words and malformed syntax drastically affect programming languages, I'm always surprised that some of the people who comment here don't do any better with regular written language.
I do agree with you that there was no reason for Bim Job to get worked up about the post above his. I disagree with your larger views on language, however.
Admin
Two stars, dummy!
Admin
If you just trash PHP without providing a good alternative, you've done nothing but troll. At least someone provided neko as an alternative to PHP, Bim Job just ranted unintelligibly. I hope it at least made you feel good Bim Job.
Admin
Gnostic nonsense. Nothing to see here.
It's pure fantasy to believe that any (turing complete, since we're on that term in this thread) language and platform can be used to develop good, secure code. Language perhaps, since it's a specification. Platform, on the other hand, is definitely untrue.
Captcha: augue: To disagree in creole.
Admin
I see nothing wrong with this. It's obvious that only admin users will be created with ** in their name directly in the database and the normal users will be restricted from using those characters with some javascript.
The real WTF is using the double stars and not hardcoding the admin names and passwords. That would make maintenance a breeze.
Admin
You guys debating PHP vs C# vs Mumps vs VB, and complaining about building admin interfaces are completely missing the boat.
Use Python + Django. Works equally well on .NET / IIS or mod_python / mod_wsgi on Apache / Linux if you want a secure site. And it builds all the admin interfaces for you!
Admin
I write my own MVC framework in Brainf**k.
Best part is the befunge based templating system for my designers.
I call it BFB.
The designer do not complain after the first application of the car battery to their toes.
BFB much better than PHP. Purple Hippo Poop is a bad language. 999.999999% of HIPPO coders eat lace because it full of holes.
BTW, I am smarter than you.
Admin
Care to elaborate on how the geometric average gives you better chances to hire a decent PHP programmer? Your argument there is as dangling as your trombone.
And by the way, the three categories of means are arithmetic, geometric and harmonic. The concept of median is unrelated to those categories.
Admin
You're a complete dumbass. Active Directory is an LDAP server with Kerberos v3 extensions. Nothing more.
Admin
And the completely missing/ignoring the point award goes to.....
Admin
It depends on who's going to be the target of your web site, which you haven't mentioned. (Or, why are you building a web site?):
For example, take the actual size of the 'site':
You can create very small web sites for placement into embedded systems, 'http://www.sics.se/~adam/uip/index.php/Main_Page'
Or, scale to large sites: http://www.aolserver.com/
That would be one axis of development.
Another would be bandwidth/connection rate. See: http://developer.yahoo.net/blog/archives/2009/10/a_engineers_gui.html
Admin
All this time, I was looking for a good craftsman. Who knew?
Admin
Objects can be extremely useful for website applications. Once I figured that out, I never looked back. Encapsulation and inheritance rock.
On a larger project, they can even save time. Not just in the long term, either.
Admin
Now, could someone explain to me how why this kind of WTF cannot happen using other languages? (if you need to see much-enterprise Java code from a major financial institution using similar backdoors, just tell me because I can provide).
Admin
Ahh good - someone said exactly what I was thinking.
Y'see - this is why system programmers aren't invited to the christmas party...
Admin
Actually, the phrase is like this: "This is not actually true. The road to Hell is paved with frozen door-to-door salesmen. On weekends many of the younger demons go ice-skating down it."