Link Details

Link 943677 thumbnail
User 257292 avatar

By surajnaikin
via tlabsonline.com
Published: Mar 23 2013 / 15:54

PHP is considered as one of the best languages for web programming today. PHP which saw its inception somewhere in the year 1994 has till date become a favorite with all those who know about it and use it. So what is so special about this web programming language?
  • 5
  • 20
  • 1299
  • 1422

Comments

Add your comment
User 338269 avatar

Miloskov replied ago:

10 votes Vote down Vote up Reply

PHP its a Frankenstein of a bad designed language, It is not for sure one the best for web, there is much better alternatives as C#, Python, Ruby, Javascript even Perl is much better language than PHP. People get used to PHP because 1) it was easy to create quickly a page with a form and some logic but as we all know that went really bad with spaghetti code inside the templates and not following good practices, 2)In the past it was easy to find cheap hosting with it but now with the cloud offers everything changed. 2c.

User 187417 avatar

sproketboy replied ago:

3 votes Vote down Vote up Reply

You forgot the best one: Java

User 338269 avatar

Miloskov replied ago:

0 votes Vote down Vote up Reply

You are right I forgot Java

User 254233 avatar

alien3d replied ago:

0 votes Vote down Vote up Reply

i dono to vote up or down. actually php is nearly subset of perl at the first time and involve a lot a fast rate.Ya java also involve at fast rate and getting the milestone to do work. In the end i like php then other language because i also involve learning from procedure based php to object orient language which can implement the same concept in java and .net language. ,

User 236075 avatar

henk replied ago:

5 votes Vote down Vote up Reply

In my, not so humble opinion, PHP is just wrong! I'll take Java, C#, Scala, etc over it any day.

User 357343 avatar

hte replied ago:

1 votes Vote down Vote up Reply

The post is basically a plug for a PHP course, which in fine, but there is one crucial thing missing in the course curriculum: security. Don't intend to fuel a flame war, but based in experience I do agree with Miloskov that PHP is a dangerous mess of a language but for simply teaching basic concepts of programming I guess its OK. Any language will do allthough I would pick a language that enforces some dicipline onto the pupil - because they might as well learn that up-front. Remember that "cool n' fun" tinkering with dynamic web pages is one thing. I really don't think that everyone and their dog should be allowed unleash* unprotected code onto the Internet. That's another situation that calls for careful consideration in guarding against intrusions like SQL-injection, unvalidated input (closely related to injection), cross-site scripting ...just to name a few. Now that we run so much of business and society on software, and a lot of that software is accessible through the Internet, we might as well teach new programmers to take responsibility. * (pun intended)

User 338269 avatar

Miloskov replied ago:

1 votes Vote down Vote up Reply

"but for simply teaching basic concepts of programming I guess its OK" The problem with PHP it is same as with VB, it teaches bad practices. We need better quality in our industry, so we should ditch the things that teach bad practices.

User 357343 avatar

hte replied ago:

0 votes Vote down Vote up Reply

I come from Java background and totally agree that PHP & VB don't enforce good practices. I also completely agree with the need for better quality. What I meant by "basic concepts of programming" is stuff like "whats is an array", "how do you iterate it" etc. Once you have the basics down and want to begin writing stuff that's robust enough for deployment, I'd move people up the programming language foodchain. That would separate the wheat from the chaff. Problem with PHP & VB is that they support the disastrous "everyone is a programmer" vision and thus enjoy widespread adoption and many of their users (won't call them programmers) never learn better. "Easy" is not always the answer.

User 1095575 avatar

ajevans85 replied ago:

0 votes Vote down Vote up Reply

Agree this post is a plug for a training course and so is a very biased view with no justification other than a sales pitch. The one thing I agree with in the article is PHP has a very low entry point to get started. While this is good as it lets a complete beginner quickly build 'web' applications and deploy them it also means it's var to easy to do things badly and not understand basic concepts which are more stringently enforced in other languages. The negative of the ease of entry is applications written by inexperienced people obviously are going to have a lot of holes as it's early in the learning curve. While I disagree php is one of the best languages to learn and I cry every time I need to touch PHP it's a sensible starting place if you are web focussed. It lets you see how dynamic websites work, build basic all round html / css / js / db skills as well, is php ever used completely serverside? not in my experience. Also the job market for PHP juniors in the UK at least very active so it gets you on the career ladder. The good devs will take the next step on to other languages and learn different principals/style, the rest, they'll stick with what they know.

User 249531 avatar

Kaveh Shahbazian replied ago:

1 votes Vote down Vote up Reply

PHP is ... let put it this way: It's like marrying your own mother. "It's totally possible and every guy can do that. Actually there are thousands out there that have successfully tried that" that's the reasoning behind PHP.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Apache Hadoop
Written by: Piotr Krewski
Featured Refcardz: Top Refcardz:
  1. Play
  2. Akka
  3. Design Patterns
  4. OO JS
  5. Cont. Delivery
  1. Play
  2. Java Performance
  3. Akka
  4. REST
  5. Java