{"id":4514,"date":"2017-09-22T09:00:08","date_gmt":"2017-09-22T07:00:08","guid":{"rendered":"https:\/\/blogs.ua.es\/pi\/?p=4514"},"modified":"2020-05-21T18:14:11","modified_gmt":"2020-05-21T16:14:11","slug":"es-php-realmente-un-mal-lenguaje","status":"publish","type":"post","link":"https:\/\/blogs.ua.es\/pi\/2017\/09\/22\/es-php-realmente-un-mal-lenguaje\/","title":{"rendered":"\u00bfEs PHP realmente un mal lenguaje?"},"content":{"rendered":"<p>Yo le ense\u00f1o PHP a mis estudiantes, considero que es un buen lenguaje\/plataforma para aprender los conocimientos b\u00e1sicos del desarrollo web. Sin embargo, PHP tiene muchos enemigos y reconozco que no es un excelente lenguaje\/plataforma, debido seguramente a la forma en que se ha desarrollado. Sin embargo, la raz\u00f3n de los comentarios negativos\u00a0se encuentra en lo siguiente (<a href=\"https:\/\/www.quora.com\/If-people-consider-PHP-a-bad-language-what%E2%80%99s-the-alternative\/answer\/Al-Klein\">If people consider PHP a bad language, what\u2019s the alternative?<\/a>):<\/p>\n<blockquote><p>The reason that PHP is a bad language is that it\u2019s so easy to learn the basics &#8211; which makes it easy for people who don\u2019t understand programming to learn PHP \u2026 and write totally insecure programs. SQL injection is horrible, trivial to prevent, but a lot of people still use msql() functions in older installations. There\u2019s no reason not to &#8211; if you understand what you\u2019re doing but I guess that so many people don\u2019t that they had to take the whole thing out of version 7. (Mysqli() functions aren\u2019t that much better, PDO is almost inherently safe, but it\u2019s still easier to stick with what you\u2019ve been using for years &#8211; even if 10 year old can hack into the resultant site.<\/p>\n<p>The alternative isn\u2019t a different language if you\u2019re comfortable writing PHP code, the alternative to writing bad PHP code is to write good PHP code. C++ is a good language too &#8211; yet you can still write terrible code in it. Some people suggest Python. You can write insecure sites in Python too, if you don\u2019t watch what you\u2019re doing.<\/p>\n<p>Security is something the developer does, it\u2019s not something in the language.<\/p><\/blockquote>\n<p>Es decir, una de las ventajas de PHP, que sea f\u00e1cil de aprender y sea elegido como plataforma de iniciaci\u00f3n para mucha gente que quiera aprender el desarrollo web se ha convertido en su mayor &#8220;enemigo&#8221;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yo le ense\u00f1o PHP a mis estudiantes, considero que es un buen lenguaje\/plataforma para aprender los conocimientos b\u00e1sicos del desarrollo web. Sin embargo, PHP tiene muchos enemigos y reconozco que no es un excelente lenguaje\/plataforma, debido seguramente a la forma &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/blogs.ua.es\/pi\/2017\/09\/22\/es-php-realmente-un-mal-lenguaje\/\"> <span class=\"screen-reader-text\">\u00bfEs PHP realmente un mal lenguaje?<\/span> Leer M\u00e1s  &raquo;<\/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":[1536,841],"class_list":["post-4514","post","type-post","status-publish","format-standard","hentry","category-general","tag-aprender","tag-php"],"_links":{"self":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts\/4514","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=4514"}],"version-history":[{"count":1,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts\/4514\/revisions"}],"predecessor-version":[{"id":4515,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts\/4514\/revisions\/4515"}],"wp:attachment":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/media?parent=4514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/categories?post=4514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/tags?post=4514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}