Tuesday, 27 December 2016







PHP (Personal Home Page)
Rants about php are anywhere, and that they even come from smart guys. While Jeff Atwood wrote yet every other rant approximately personal home page, it made me think about the best parts of php.

The most important trouble of these rants is that they arrive from human beings stuck inside the old days of personal home page. They both do not care or they do not need to confess that php sincerely evolves at a totally rapid pace, both at the language level but additionally on the community degree. In truth,web development it evolves lots faster than some other language or internet platform. It has no longer constantly been the case; however the remaining 5 years have been an remarkable journey for Hypertext Preprocessor.

Earlier than speak me about the terrific matters the personal home page community has carried out currently, let's see some interesting numbers: Hypertext Preprocessor is used by seventy seven. Nine% of all of the websites whose server-aspect programming language is thought. Word press is utilized by 16.6% of all of the websites inside the international. If you have a have a look at the top 3 cmses, for the web sites that use a monitored content material control gadget: word press is first with 54.3%, joomla is 2d with 9.2%, and Drupal is third with 6.8%. Three products written in php.




Hypertext Preprocessor need to have performed something right, no?

now, allow me tell you a mystery, the php "excursion de pressure": despite the changes through the years, personal home page continues to be the easiest language to study for non-technical people: it allows every person to create dynamic web sites faster than with another technology, it lets in absolutely everyone to host websites cost effectively and with none hassles. Hypertext Preprocessor might be now not the exceptional designed language within the global, however it lets you get matters achieved, and you can't argue with that.

Hypertext Preprocessor, the language
Hypertext Preprocessor 5.0 (released in 2004) introduced us a totally strong object model. Wait a minute; I’m speaking about something released nearly eight years in the past. Rapid ahead now. The modern day php launch, personal home page 5.four, comes with all of the bells and whistles you may dream of in a modern-day web language: yes, personal home page supports namespaces; sure, php supports closures; yes, Hypertext Preprocessor helps trends.

it took some time, however php 5.four additionally comes with a few first-class syntactic sugar that makes the complete enjoy higher than ever: sure, personal home page helps [] to outline arrays; sure, php supports calling a way on a newly created item ((new foo())->bar()); sure, Hypertext Preprocessor supports getting an array object from any expression ($foo->bar()[1]).

Hypertext Preprocessor has even discovered from its errors: register_globals and magic_quotes are truly long gone.

ultimate, but not the least, Hypertext Preprocessor even comes with a integrated web server that eases neighborhood checking out... and it starts off evolved in a rely of micro-seconds.

Subsequent demanding situations: how do we "upgrade" all the vintage tutorials speak me about Hypertext Preprocessor on the internet? What’s the first-class way to help the web socket generation in a Hypertext Preprocessor software?

Personal home page, the atmosphere
Having a terrific language is awesome; however having an excellent ecosystem is even higher. And the Hypertext Preprocessor surroundings has evolved lots in the previous few years.

Git

I won't communicate an excessive amount of about this one. Git is everywhere and Hypertext Preprocessor embraced Git pretty rapid. Almost all primary Hypertext Preprocessor libraries, frameworks, and merchandise are now the usage of git, consisting of Hypertext Preprocessor itself.

Composer

 Years in the past, i wanted to dispose of my unsightly-pear-hack i did in symphony 1 to aid plugins. I desired to replace it with something that became able to manage challenge dependencies, not an international installer like pear. Dealing with dependencies isn't a smooth task, so i attempted to discover the fine set of rules to manipulate software dependencies; i had a observe everything: from Perl to ruby, from debian to red hat.
Not anything was excellent: simplest homegrown solutions that appear to work... empirically. Then, i stumbled upon zippy.
That becomes it.
Zippy makes use of a sat solver to manage dependencies. Speedy forward. Thanks to the tough paintings of Nils alderman and jordi boggiano, Hypertext Preprocessor now has one of the first-rate dependency supervisor, composer.

Sure, Hypertext Preprocessor has a better dependency and web development supervisor than some other languages.


And thanks to git, composer, and the php built-in internet server, it has never been less complicated to down load/deploy/test a Hypertext Preprocessor assignment.

1 comment: