{"id":4635,"date":"2018-02-14T09:00:54","date_gmt":"2018-02-14T08:00:54","guid":{"rendered":"https:\/\/blogs.ua.es\/pi\/?p=4635"},"modified":"2018-02-09T17:50:04","modified_gmt":"2018-02-09T16:50:04","slug":"php-es-bueno","status":"publish","type":"post","link":"https:\/\/blogs.ua.es\/pi\/2018\/02\/14\/php-es-bueno\/","title":{"rendered":"PHP es bueno"},"content":{"rendered":"<p>Me ha gustado la respuesta dada a la pregunta\u00a0<a href=\"https:\/\/www.quora.com\/Everybody-is-saying-dont-learn-PHP-Learn-JS-frameworks-but-I-find-them-too-tough-I-like-PHP-and-its-easy-for-me-I-am-understanding-its-concepts-Should-I-ignore-them-and-learn-PHP\/answer\/Vahrokh-Vain\">Everybody is saying don&#8217;t learn PHP. Learn JS frameworks but I find them too tough. I like PHP and its easy for me. I am understanding its concepts. Should I ignore them and learn PHP?<\/a>:<\/p>\n<p class=\"ui_qtext_para\">PHP is an awesome tool. Like others. It has its strong and its weak points, like others.<\/p>\n<p class=\"ui_qtext_para\">I mainly develop in PHP, Java, Python, C\/C++, C# (and Javascript, only when expressly requested)\u2026 and I have to say when I want something actionable and done fast, it\u2019s either PHP or Python and that\u2019s it.<\/p>\n<p class=\"ui_qtext_para\">PHP is best for web backends, Python is more general, comes with some awesome A.I. and analysis libraries.<\/p>\n<p class=\"ui_qtext_para\">I tell you why \u201ceverybody\u201d tells you something wrong:<\/p>\n<ul>\n<li>half of them are \u201clanguage activists\u201d (usually for Python or Javascript), most of them are not even professionals, otherwise they would just deal with the fact we are talking about\u00a0<b>tools<\/b>, not ideologies.<\/li>\n<li>several are \u201copportunity hoppers\u201d, only looking websites that tell what language earns the highest income. I would never hire such guys, because they are unreliable. Developing is serious business, you don\u2019t want a guy that after 6 months switches job because language XYZ, in year ABCD,\u00a0<i>potentially<\/i>earns him $2k a year more.<\/li>\n<li>the remaining ones, are ignorant. Ignorant in the literal sense. They read some polemics on some blogs (usually \u201clanguage purist\u201d blogs) in 2011 and never cared to read updated information.<br \/>\nNow, 2011 knowledge is stale by any standard. PHP did a drastic change starting from version 5.5, that is since about 2013 (4 years ago) and implemented tons and tons of \u201ccool developer guy\u201d syntax facilities and structures.<\/p>\n<p><span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/www.cloudways.com\/blog\/php-5-6-vs-php-7-symfony-benchmarks\/\" target=\"_blank\" rel=\"noopener nofollow\">Since version 7, PHP is twice as fast<\/a><\/span>\u00a0and implemented so many new features, that Java itself got behind in some niche constructs.<br \/>\nNowadays you can develop PHP backends that really \u201ctaste like Java\u201d.<br \/>\nFrom\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"http:\/\/docs.php.net\/manual\/da\/functions.anonymous.php\" target=\"_blank\" rel=\"noopener nofollow\">lambda<\/a><\/span>\u00a0\/\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"http:\/\/docs.php.net\/manual\/en\/class.closure.php\" target=\"_blank\" rel=\"noopener nofollow\">closures<\/a><\/span>\u00a0\/\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/en.wikipedia.org\/wiki\/Anonymous_function\" target=\"_blank\" rel=\"noopener nofollow\">anon functions<\/a><\/span>\u00a0to\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"http:\/\/docs.php.net\/manual\/en\/spl.iterators.php\" target=\"_blank\" rel=\"noopener nofollow\">iterators<\/a><\/span>, from nice\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"http:\/\/php.net\/manual\/en\/language.oop5.interfaces.php\" target=\"_blank\" rel=\"noopener nofollow\">interfaces<\/a><\/span>\u00a0to\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/sourcemaking.com\/design_patterns\/factory_method\/php\/1\" target=\"_blank\" rel=\"noopener nofollow\">factories<\/a><\/span>, from\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"http:\/\/www.phptherightway.com\/pages\/Design-Patterns.html\" target=\"_blank\" rel=\"noopener nofollow\">classic patterns<\/a><\/span>\u00a0to\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/phpunit.de\/\" target=\"_blank\" rel=\"noopener nofollow\">unit tests<\/a><\/span>,\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/xdebug.org\/docs\/profiler\" target=\"_blank\" rel=\"noopener nofollow\">profiling<\/a><\/span>and\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/github.com\/sebastianbergmann\/php-code-coverage\" target=\"_blank\" rel=\"noopener\">code coverage statistics<\/a><\/span>,\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/code.tutsplus.com\/tutorials\/all-about-mocking-with-phpunit--net-27252\" target=\"_blank\" rel=\"noopener nofollow\">mock ups<\/a><\/span>,\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/stackoverflow.com\/questions\/9205083\/traits-vs-interfaces\" target=\"_blank\" rel=\"noopener nofollow\">traits<\/a><\/span>,\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/www.phptesting.org\/\" target=\"_blank\" rel=\"noopener nofollow\">continuous integration<\/a><\/span>\u00a0(still rough), from\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/getcomposer.org\/\" target=\"_blank\" rel=\"noopener nofollow\">depenencies packages<\/a><\/span>\u00a0to\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/github.com\/datastax\/php-driver\" target=\"_blank\" rel=\"noopener\">bigdata access<\/a><\/span>, large (<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/symfony.com\/\" target=\"_blank\" rel=\"noopener nofollow\">Symfony<\/a><\/span>,\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/laravel.com\/\" target=\"_blank\" rel=\"noopener nofollow\">Laravel<\/a><\/span>,\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/wordpress.org\/\" target=\"_blank\" rel=\"noopener nofollow\">WordPress<\/a><\/span>(!) (powering millions of websites)), medium (<span class=\"qlink_container\"><a class=\"external_link\" href=\"http:\/\/www.yiiframework.com\/\" target=\"_blank\" rel=\"noopener nofollow\">Yii<\/a><\/span>\u00a0and others) and small (<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/fatfreeframework.com\/3.6\/home\" target=\"_blank\" rel=\"noopener nofollow\">Fat Free Framework<\/a><\/span>\u00a0and more) MVC \/ REST frameworks. Just name a feature, it\u2019s very possible today\u2019s PHP got it.<br \/>\nPHP even gets decent (<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/netbeans.org\/\" target=\"_blank\" rel=\"noopener nofollow\">NetBeans<\/a><\/span>,\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/www.eclipse.org\/pdt\/\" target=\"_blank\" rel=\"noopener nofollow\">Eclipse<\/a><\/span>,\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"http:\/\/www.codelobster.com\/\" target=\"_blank\" rel=\"noopener nofollow\">CodeLobster<\/a><\/span>) to awesome development environments (<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/www.jetbrains.com\/phpstorm\/\" target=\"_blank\" rel=\"noopener nofollow\">PHPStorm<\/a><\/span>\u00a0&#8211; payware).<\/p>\n<p>Plus &#8211; and no other language beats PHP at this, since the beginning PHP got blazing fast, ultra-extra-mega-flexible\u00a0<span class=\"qlink_container\"><a class=\"external_link\" href=\"http:\/\/php.net\/manual\/en\/language.types.array.php\" target=\"_blank\" rel=\"noopener nofollow\">key-value arrays<\/a><\/span>\u00a0(technically: ordered maps) and tons and tons of arrays management functions.<\/p>\n<p>So\u2026 beware, check PHP out and make yourself an idea. It\u2019s actually very quick to check PHP out and see if it\u2019s the tool for you. Just download one of zillions free \u201c<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/en.wikipedia.org\/wiki\/LAMP_(software_bundle)\" target=\"_blank\" rel=\"noopener nofollow\">LAMP<\/a><\/span>\u201d or \u201c<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/en.wikipedia.org\/wiki\/WAMP_(disambiguation)\" target=\"_blank\" rel=\"noopener nofollow\">WAMP<\/a><\/span>\u201d or \u201c<span class=\"qlink_container\"><a class=\"external_link\" href=\"https:\/\/en.wikipedia.org\/wiki\/MAMP\" target=\"_blank\" rel=\"noopener nofollow\">MAMP<\/a><\/span>\u201d (Linux \/ Windows \/ Mac) distributions, that is pre-configured packages including web server, database server and PHP. Some of those are terrific and include debuggers, control panels, additional services and much more.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Me ha gustado la respuesta dada a la pregunta\u00a0Everybody is saying don&#8217;t learn PHP. Learn JS &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/blogs.ua.es\/pi\/2018\/02\/14\/php-es-bueno\/\"> <span class=\"screen-reader-text\">PHP es bueno<\/span> Read more \u2192<\/a><\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[841],"class_list":["post-4635","post","type-post","status-publish","format-standard","hentry","category-general","tag-php"],"_links":{"self":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts\/4635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/comments?post=4635"}],"version-history":[{"count":1,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts\/4635\/revisions"}],"predecessor-version":[{"id":4636,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts\/4635\/revisions\/4636"}],"wp:attachment":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/media?parent=4635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/categories?post=4635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/tags?post=4635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}