Yii Framework Forum: Future of php - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Future of php Rate Topic: ***-- 2 Votes

#1 User is offline   ajith 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 170
  • Joined: 20-March 15
  • Location:Kerala,India

Posted 25 April 2015 - 12:39 AM

hi i am new comer in programming fraternity. i am currently working as a php trainee but my elder brother(ASP.NET developer) is telling me that php is fastly being replaced by other languages and i should either study .NET or JAVA. most of the programmers(not php prgmers) i've met regard us like a third grade programmers.
is there a future for php and its developers?
1

#2 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,546
  • Joined: 10-October 10
  • Location:Denmark

Posted 25 April 2015 - 08:18 AM

Definitely a future!
And a very bright one.

I am a C++ programmer as well (and know Python, Java, Lisp, ...) and I am aware that there are a lot of "experts" who regard PHP as a horrible language.

Yes, 10 years ago - 5 years ago even - the average PHP code was horrible!

But take a look at the clean code that Yii has. Look at the beauty and elegance of modern PHP frameworks and compare that to what people are doing in .NET and Java.

Yes, PHP has baggage and quirky features, a lot of inconsistent functions, but that is a price you have to pay for backwards compatibility..

Javascript is also being called a horrible language..
I personally like it. ;)

Look at the rate at which PHP is progressing and you'll see that it is far from dead.
PHP 7 is on the horizon now.

I love PHP!
You can write beautiful code with it.
You can use dependency injection, anonymous functions, ...
I like that it is a bit.. DIRTY! :D
"Less noise - more signal"
1

#3 User is online   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,067
  • Joined: 17-January 09
  • Location:Russia

Posted 25 April 2015 - 10:01 AM

http://w3techs.com/t...ng_language/all
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I work on Yii fulltime: https://www.patreon.com/samdark
2

#4 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,546
  • Joined: 10-October 10
  • Location:Denmark

Posted 25 April 2015 - 10:14 AM

Those statistics speaks volumes SamDark :)
"Less noise - more signal"
1

#5 User is offline   ajith 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 170
  • Joined: 20-March 15
  • Location:Kerala,India

Posted 27 April 2015 - 04:07 AM

thanks for the reply guys. i think php has a bright future as long u guys r there. Posted Image
1

#6 User is offline   isabella_martin 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 12-June 15

Posted 17 June 2015 - 05:40 AM

Hi,
PHP is the best language definitely with a very good future.Java is preferred just because it is highly secure, but it never means that PHP has no future.Moreover, PHP is an open source language while ASP.net is not.And definitely as a server side language for websites PHP is the most used one.
0

#7 User is offline   Adam Christopher 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 27-June 15

Posted 27 June 2015 - 02:19 PM

I like to work on open source projects, I learned alot from it. I learned php long ago and it gives me a weird vibe on the language so I moved on to Python instead. Tried to use Pyhton as a web server-side language but web host services rarely have python installed (at least in my country). I gave up and tried to look back at php that has been updated to php 5. I was really surprised how far php has been changing and it looks a lot cleaner and pretty much looks the same as current high level languages.
0

#8 User is offline   Cálcio 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 222
  • Joined: 15-July 13
  • Location:Brasil - RJ

Posted 08 July 2015 - 09:29 AM

I think that programmers and developers should know other languages, its good. But said tha PHP is "fast being replaced" it's a stupidity. PHP was born to web. Simple like that.

The problem of PHP is not the PHP is the programmers. PHP is very to easy to learn, because of it programmers feel free to do anything.
Se minha resposta te ajudou, clique no link "Vote this post up".
If my answer help you, please check the "Vote this post up".

See my porfolio
1

#9 User is offline   faustjonson 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 13-April 16
  • Location:USA

Posted 13 April 2016 - 09:56 AM

PHP best for fast programing
0

#10 User is offline   artificial 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 130
  • Joined: 11-December 10
  • Location:Sydney, Australia

Posted 18 April 2016 - 11:35 PM

Just to build on what's been said, PHP has also been regarded as a sub-par language based on its performance. However, it's gotten a lot faster in recent years! PHP7 is actually pretty fast, and hopefully if they keep on optimising for performance (i.e. implementing/tweaking JIT in PHP7) it can get even faster (PHP7 already outperforms HHVM in a lot of situations). I know if you talk to some of the brain trusts behind PHP, that's the direction they're looking towards. Performance in mind, application design is the biggest bottleneck in 99.9% of situations and not PHP itself, so it's a bit of a non-argument.

If you're talking purely about the language then yes, it's a bit of a mess. It's all fairly inconsistent and a bit all over the place. Unfortunately for backward compatibility issues, that's going to always remain the case. The language itself is going to annoy some purists, and you'll often hear it cop a bit of flack from Java developers as a result. What's more, earlier versions had very rudimentary OO support, and the language fell pretty short as a result. However, these days OO support is up there with Java.

Personally I hope future releases are more focused on performance rather than introducing new language paradigms. Once PHP7 is a bit more matured, it'd be great if the language was forked, cleaned up a little and released as something else, and we wouldn't be so heavily reliant on language constructs that were introduced ad hoc some 15 years ago.
Alex Berriman
www.formcorp.com.au
0

#11 User is offline   programista 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 31-December 10

Posted 30 April 2016 - 05:00 PM

I think that the future of php is full OO environment with php app living permanently in ram, it is the next step.

Why interpret anything over and over, why creating the whole app from start every request?

It will happen, sooner or later.
0

#12 User is online   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,067
  • Joined: 17-January 09
  • Location:Russia

Posted 30 April 2016 - 05:18 PM

It already happened. I saw at least two projects using Yii 1.1 as a long running process.
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I work on Yii fulltime: https://www.patreon.com/samdark
0

#13 User is offline   oligalma 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 419
  • Joined: 07-April 12
  • Location:Spain

Posted 24 May 2016 - 08:42 PM

PHP is behind the best frameworks and CMS, for example Wordpress. Around 25% of websites are made with Wordpress. Really, I can't imagine Wordpress disappearing :rolleyes:
0

#14 User is offline   Webdaadi 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 20-March 17
  • Location:USA

Posted 27 March 2017 - 06:05 AM

PHP is a best programming language for better future
0

#15 User is offline   Louis Gac 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 64
  • Joined: 13-June 14

Posted 06 June 2017 - 08:18 AM

.NET and Java coders love to troll php coders. Here the fact: PHP is a script language, intermediate between compiled language (such as C++) and client side languages (JavaScript). C++ and Java are old languages, to code in the old style, like in the 90's.

JavaScript is the future: in a decade, it will be the most used language for any development (Web Apps, Desktop apps, even microcontroller code). But, IMHO, it's not really ready, it lacks some solid and clean frameworks.

So for now, C++ and JAVA are just completely collapsing:
https://www.tiobe.com/tiobe-index/


Meanwhile, PHP7 became faster than Ruby or Python, and the PHP Frameworks (like Yii, Laravel or Symfony) just became better than most frameworks of other languages (.NET: it has been written for Desktop apps, not web apps, and if it became better in last version, it's still not natively written for web apps) B)

So here my bet: PHP7 will just continue leading web app dev for the next 10 years. Then JavaScript will take over it.

For developments requiring compilation, my bet is C# and Java will not be used anymore (way too much dirty), but rather certified languages such as OCaml (where you can prove, mathematically, that the program will never bug).

So PHP + JS master race ;-)
1

#16 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,546
  • Joined: 10-October 10
  • Location:Denmark

Posted 06 June 2017 - 09:56 AM

Don't forget about Nim, Golang and Elm Posted Image

I think - and hope! that Javascript usage will dwindle in the future.

Especially with WebAssembly, where language actually does not matter.

Then I could - and probably would! write web application in pure C :P
"Less noise - more signal"
0

#17 User is online   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,067
  • Joined: 17-January 09
  • Location:Russia

Posted 07 June 2017 - 07:51 AM

JavaScript as a language is too unsafe. That's why there are many superlanguages on top of it such as excellent Microsoft's TypeScript.

I don't see how Java and C# won't be used. JVM and .net are solid platforms and these languages are excellent. Especially C#.

I see a lot of potential in golang.

I think that PHP is quite bad as language but excellent as a platform.
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I work on Yii fulltime: https://www.patreon.com/samdark
0

#18 User is offline   Louis Gac 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 64
  • Joined: 13-June 14

Posted 09 June 2017 - 09:09 AM

View Postsamdark, on 07 June 2017 - 07:51 AM, said:

JavaScript as a language is too unsafe. That's why there are many superlanguages on top of it such as excellent Microsoft's TypeScript.

Let say ECMAScript in general: it's the future, will be the new lingua franca.
But, not now.


View Postsamdark, on 07 June 2017 - 07:51 AM, said:

I don't see how Java and C# won't be used. JVM and .net are solid platforms and these languages are excellent. Especially C#.

They are collapsing, it's a fact: https://www.tiobe.com/tiobe-index/
I'm saying that it's going to happen since years, and I always been mocked for that. Here we are.

They are many different reasons for this current collapse of C and Java:
The main one is that it's cheaper, easier, and faster to code in script languages rather than compiled languages.

In a far future, any development that needs to be as close as possible to the hardware will rather use functional languages such as OCaml: because when it needs to be close to the hardware, it also needs to be close to the mathematical basis of Computer Science (Lambda Calculus).

Quote

I see a lot of potential in golang.

I think that PHP is quite bad as language but excellent as a platform.


I agree with both statements.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users