{"id":2453,"date":"2017-05-15T20:04:58","date_gmt":"2017-05-15T18:04:58","guid":{"rendered":"http:\/\/monodes.com\/predaelli\/?p=2453"},"modified":"2017-05-15T10:49:05","modified_gmt":"2017-05-15T08:49:05","slug":"2453","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2017\/05\/15\/2453\/","title":{"rendered":""},"content":{"rendered":"<p>I want to dive a little into WordPress codebase but modern PHP is quite a different language from what I&#8217;ve learned &#8211; albeit a little &#8211; way ago, so long ago that WordPress didn&#8217;t even existed then. Beside reading the obvious official documentation, I&#8217;ve discovered that the almighty O&#8217;Really seems not to have a recent book on PHP, or a book about recent PHP either. As books from Packt publishing quite often turns out to be &#8220;quite shallow&#8221;, I&#8217;ve been looking for info the good old way, namely IRC channels. They told me these little gems:<\/p>\n<ul>\n<li>\n<h1><a href=\"http:\/\/www.phptherightway.com\/\">PHP <em>The Right Way<\/em><\/a><\/h1>\n<\/li>\n<li>\n<div class=\"row page-content\">\n<div class=\"col s12\">\n<h1><a href=\"http:\/\/hashphp.org\">##php, hashphp.org<\/a><\/h1>\n<\/div>\n<\/div>\n<\/li>\n<\/ul>\n<p>Well, they really look the right documentation for me.<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">I want to dive a little into WordPress codebase but modern PHP is quite a different language from what I&#8217;ve learned &#8211; albeit a little &#8211; way ago, so long ago that WordPress didn&#8217;t even existed then. Beside reading the obvious official documentation, I&#8217;ve discovered that the almighty O&#8217;Really seems not to have a recent&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2017\/05\/15\/2453\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"link","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[72,14,46],"tags":[158],"class_list":["post-2453","post","type-post","status-publish","format-link","hentry","category-documentations","category-software-libero","category-web","tag-php","post_format-post-format-link"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s6daft-2453","jetpack-related-posts":[{"id":9311,"url":"https:\/\/monodes.com\/predaelli\/2022\/04\/27\/9311\/","url_meta":{"origin":2453,"position":0},"title":"As I wished to add\u2026","author":"Paolo Redaelli","date":"2022-04-27","format":false,"excerpt":"As I wished to add a little NextCloud installation to my small corporate server I used its web installer that quaralled that PHP 7.2 is too old. I was used to Debian way of handling multiple versions of a package (having the major version in the package name). These notes\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3249,"url":"https:\/\/monodes.com\/predaelli\/2017\/07\/30\/learning-php-7\/","url_meta":{"origin":2453,"position":1},"title":"Learning PHP 7","author":"Paolo Redaelli","date":"2017-07-30","format":false,"excerpt":"Learning PHP 7: Learn the art of PHP programming through this example-rich book filled to the brim with tutorials every PHP developer needs to know One has to be humble enough to start from the beginning when he really wants to learn a language. I've read half of it and\u2026","rel":"","context":"In &quot;Eiffel&quot;","block_context":{"text":"Eiffel","link":"https:\/\/monodes.com\/predaelli\/category\/eiffel\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1551,"url":"https:\/\/monodes.com\/predaelli\/2016\/05\/20\/installing-php-5-and-7-on-the-same-server\/","url_meta":{"origin":2453,"position":2},"title":"Installing PHP 5 and 7 on the same server","author":"Paolo Redaelli","date":"2016-05-20","format":"link","excerpt":"\u00a0Installing PHP 5.6.x and 7.0.x with Ubuntu 14.04 and Virtualmin 5.0gpl using a PPA \u2014 23Systems I suspect I'll have to follow him to re-enable the aging StatusNet microblog installation at work, before upgrading it to Gnu Social","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5100,"url":"https:\/\/monodes.com\/predaelli\/2019\/01\/02\/choosing-a-framework\/","url_meta":{"origin":2453,"position":3},"title":"Choosing a framework","author":"Paolo Redaelli","date":"2019-01-02","format":false,"excerpt":"I've been asked to develop an application to record incoming shipments of loose materials, more precisely excavated material to be processed - washed, crushed and sieved - to produce construction materials such as sand, gravels and coarse aggregates. Ten years ago I would have used Qt or Gtk for the\u2026","rel":"","context":"In &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/monodes.com\/predaelli\/category\/php\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11656,"url":"https:\/\/monodes.com\/predaelli\/2024\/05\/18\/enum-best-practices-in-php-8-3\/","url_meta":{"origin":2453,"position":4},"title":"Enum Best Practices in PHP 8.3","author":"Paolo Redaelli","date":"2024-05-18","format":"link","excerpt":"Enums were added to PHP in 2021. In this post, I share my experience working with enums and give a brief overview. Source: Enum Best Practices in PHP 8.3","rel":"","context":"In &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/monodes.com\/predaelli\/category\/php\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3428,"url":"https:\/\/monodes.com\/predaelli\/2017\/10\/09\/from-php-to-javascript-with-node-js-matters\/","url_meta":{"origin":2453,"position":5},"title":"From PHP to JavaScript with Node.js \u2013 Matters","author":"Paolo Redaelli","date":"2017-10-09","format":"link","excerpt":"https:\/\/blog.matters.tech\/migrating-from-php-to-javascript-with-node-js-155534498b58","rel":"","context":"In &quot;Javascript&quot;","block_context":{"text":"Javascript","link":"https:\/\/monodes.com\/predaelli\/category\/javascript\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/2453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=2453"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/2453\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=2453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=2453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=2453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}