4 ms·
> Doesn't change anything. It is still shit. To be fair there is no perfect language ,especially in dynamic/weakly typed ones. PHP "grew organically", was suc
by aikah 12y ago
> Doesn't change anything. It is still shit.
To be fair there is no perfect language ,especially in dynamic/weakly typed ones. PHP "grew organically", was successful because at the time it came , it was easy enough for hobbyists and non programmers.
It's still the cheapest way to develop web apps and for those who like java patterns they can still upgrade to these because of its class system.
While I wish Ruby or Python would be more popular, they are not as easy to use as PHP(while ironicaly it is easier to go further faster with rails for instance than bare bone PHP),they are not as cheap to deploy too.
There is a natural progression between learning HTML and then adding some server-side behavior , that wasn't met by other solutions (while java has JSP, forced OO makes it too complicated for beginners)
Nevertheless, PHP has excellent libraries , extensions that even some "hotter" languages do not have , I think when people start projects they don't just look at the language but also the ecosystem.
- imakesnowflakes 12y ago>PHP has excellent libraries http://www.reddit.com/r/lolphp/comments/2xw0ky/thread_doesnt_inherit_parents_working_directory/ http://www.reddit.com/r/lolphp/comments/2xw0ky/thread_doesnt... DateTime and DateTimeImmutable Objects? and how about Datetimeimmutable::modify() method? http://php.net/manual/en/datetimeimmutable.modify.php http://php.net/manual/en/datetimeimmutable.modify.php http://www.reddit.com/r/lolphp/comments/2oyxs8/php_bug_53711_casting_floatstringfloat_with_locale/ http://www.reddit.com/r/lolphp/comments/2oyxs8/php_bug_53711... http://www.reddit.com/r/lolphp/comments/2l2z04/fixing_pdoparam_bool_to_work_as_expected_is_a/ http://www.reddit.com/r/lolphp/comments/2l2z04/fixing_pdopar... Excellent? Really?
- aequasi 12y agobecause three bad libraries means PHP has no excellent ones.... /s
- EarthLaunch 12y ago> they are not as easy to use as PHP(while ironically it is easier to go further faster with rails for instance than bare bone PHP) PHP's frameworks (Laravel, Yii, etc), being based on previous frameworks, are more mature and frankly just better than Rails in most ways, though less integrated with the stack. Which also provides more choice and 'competition' in the PHP ecosystem. To be generous; starting with plain PHP would be like starting with Ruby, not Rails.
- makeitsuckless 12y agoThe relation with Rails illustrates how lively the PHP community is. Rails was one big step ahead, PHP copied Rails in a hundred different ways, iterated through that for 3 generations of frameworks and is now well ahead of the simplistic RoR ecosystem. Ruby is still a better language, but that really doesn't matter unless you project involves writing stuff from scratch.
- EarthLaunch 12y agoAgreed on Ruby, and great point about Rails being the one to break new ground in frameworks. I experimented with switching from Laravel to Rails recently, but I was too late to see it as innovative. Like how classic art comes to be cliche by virtue of being the root of its genre.