Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

php[architect]:
The Case for Generics in PHP
Dec 04, 2018 @ 14:30:55

The php[architect] site has posted an article pulled from their November 2018 issue providing a case for generics in PHP.

To elucidate their merit, we will look at how they might fit within the evolution of PHP’s type system to put us in a position to write more robust software:

“How can I signal that my method will return a Collection of User objects? And why would I want to do that?”

The article starts with a look at generics in other languages and how they're handled (such as Java and C#). From there they shift over to PHP, giving a code sample of a class that is typed to only accept one kind of value for its constructor. They provide an update for this that would work in PHP 7.4 (with typed properties) and how with the help of generics it would be simpler to define a more dynamic type requirement, allowing for more generalized class descriptions.

tagged: phparchitect article november2018 issue generics tutorial php74

Link: https://www.phparch.com/2018/11/the-case-for-generics-in-php/

Larry Garfield:
Book review - Functional Programming in PHP
Nov 15, 2018 @ 09:28:47

Larry Garfield has posted a book review to his Steemit site giving his thoughts about the "Functional Programming in PHP" book from php[architect] press.

I was asked by php[architect] a while back to review "Functional Programming in PHP, 2nd Ed" by Simon Holywell. I've been sitting on this review for a while, so it's time to finally get it done.

He starts with some of the usual disclosures about receiving the book (for free), what the review is based on and that the opinions are his alone. He goes on to share some of his initial impressions of the book and whether he feels it's a good book to recommend to those wanting to start out with functional programming in PHP. He also points out that, while the book was published in 2016 the recommended PHP version even then was quite old (v5.4). He covers some of the topics that the book covers, noting that many of them, while interesting, don't add much to the overall book.

He does focus on one chapter and how, at the beginning, it showed promise but quickly moved towards using 3rd party libraries for more complex operations. He finishes the review by answering the question: "does this book make me care about functional programming in PHP?"

tagged: bookreview functional programming tutorial phparchitect

Link: https://steemit.com/php/@crell/book-review-functional-programming-in-php

php[architect]:
The Dev Lead Trenches: Burning Out
Nov 05, 2018 @ 12:30:46

On the php[architect] site they've shared the contents of one of their regularly published columns - "The Dev Lead Trenches", written by Chris Tankersley - covering burnout of developers from their day-in and day-out work.

The tech industry is a double-edged sword. On the one side, we (generally) have well-paying jobs with nice perks, but on the other, we can easily slip into not only boring, repetitive work but figurative death marches. The former is used by most companies as an offset to the latter, but that rarely works out well. This leads many developers to come face-to-face with burnout.

He starts with some suggestions of ways to detect burnout in your own life including lack of motivation, sleep, and other emotional types of signs. He then makes a list of suggestions of how you can avoid burnout in your own work:

  • set working hours
  • use vacation time
  • take 15 minute breaks
  • take up hobbies outside of development

There's several others in the list too, so I'd recommend checking out the full article for more information about each.

tagged: devleadtrenches phparchitect column burnout detection avoid

Link: https://www.phparch.com/2018/10/the-dev-lead-trenches-burning-out/

php[architect]:
November 2018 Issue Release - Generics and Project Success
Nov 01, 2018 @ 09:25:56

php[architect] magazine has released their latest issue for November 2018: Generics and Project Success. In this issue they feature articles like:

  • "The Case for Generics in PHP" by Chris Holland
  • "Maintaining Laravel Applications" by Jason McCreary
  • "Getting Started With Php? Let’s Start the Right Way!" by Junior Grossi
  • "How to Knock Down Any Project in Ten Steps" by Pawe? Lewtak

The usual columns are all returning including Joe Ferguson continuing his series on creating packages, Eric Mann covering five security risks to look for in a code review, and James Titcumb with some resources you can use to continue "leveling up" in your development career.

If you want to "try before you buy", they're also offering a free article, "The Case for Generics in PHP" by Chris Holland. You can pick up a copy of your own directly from the php[architect] site or subscribe to their print or PDF versions!

tagged: phparchitect magazine nov2018 issue release generics project success

Link: https://www.phparch.com/2018/10/generics-project-success/

php[architect] Podcast:
Episode 14 – Prototyping with PHP
Oct 30, 2018 @ 12:18:47

The php[architect] podcast, hosted by PHP community members Eric Van Johnson and John Congdon, has posted their latest episode: Episode 14 - Prototyping with PHP.

In this episode Eric and John cover a wide range of topics including:

  • stickers
  • the MySQL 8 window functions
  • sub-domain takeovers
  • framework trade-offs

They're also joined by Oscar Merida who covers lessons he learned about software estimates and Marcia Burrows (a.k.a "The Logical Woman") and her experiences speaking at the Pacific Northwest PHP conference and her work on creating games. You can listen to this latest episode either using the in-page audio player or by downloading the mp3 directly. If you enjoy the show, be sure to subscribe to their feed and get updates when new shows are released.

tagged: phparchitect podcast ep14 prototyping marciaburrows

Link: https://www.phparch.com/podcast/episode-14-prototyping-with-php/

php[architect] Podcast:
Episode 13 - PHP 7.3
Oct 05, 2018 @ 10:52:38

The php[architect] podcast, hosted by Eric van Johnson and John Congdon, has posted their latest episode: Episode #13 - PHP 7.3.

Fresh off of hosting WavePHP in San Diego, Eric van Johnson and John Congdon put the finishing touches on the latest episode. Eric and John talk about stickers, forthcoming PHP 7.3 improvements like garbage collection, how to make estimates, penetration testing for security, job hunting, and more.

Sammy Kaye Powers joins to discuss podcasting, swing dancing, and challenges when upgrading legacy applications.

They also give some reasons why you should update to PHP 7.3 (when it's released), deprecated features, and a preview of what might be added in PHP 8. You can listen to this latest episode either using the in-page audio player or by downloading the mp3. If you enjoy the show, be sure to subscribe to their feed to get updates when new shows are released.

tagged: phparchitect podcast ep13 php73 sammykayepowers

Link: https://www.phparch.com/podcast/episode-13-php-7-3/

php[architect]:
2018 Audience Survey
Sep 14, 2018 @ 11:23:14

If you're a reader of php[architect] magazine or even just want to have an influence on what the future of the magazine might look like, you should contribute your thoughts to their 2018 audience survey.

Our 2018 audience survey is online to help gauge how we can provide what you need to be a better developers. Whether you subscribe to the magazine, listen to the podcast, or just visit phparch.com, I want to here from you. I’m no fan of long surveys so I’ve kept it short and to the point. It should take about 10 to 15 minutes at most to complete.

The questions on the survey differ slightly for subscribers versus non-subscribers. There's questions about:

  • why you subscribe/don't subscribe
  • if you know what a subscription comes with
  • preferred distribution method (PDF, print, ePub, etc)
  • their php[podcast]

There's also some questions for general demographics around your job, technologies commonly used and preferred devices. Help php[architect] magazine keep providing the content that PHP developers need and can help them enhance their careers - follow out the survey today!

tagged: phparchitect audience survey magazine

Link: https://www.phparch.com/2018/09/2018-audience-survey/

php[architect] Podcast:
Episode 12 - Whole lot of Xdebug
Sep 10, 2018 @ 09:19:23

The php[architect] podcast, hosted by PHP community members Eric van Johnson and John Congdon, has posted their latest episode: Episode #12 - Whole lot of Xdebug

Our twelfth episode is in the can, thanks to Eric van Johnson and John Congdon. Eric and John discuss freelancing and how it changed John’s life, regular expressions, PhpStorm, and how the PHP community gets together. [Their guest] Oscar talks about trying to use Xdebug regularly and the value of debugging tools in general [and there's an] interview with Mark Niebergall on his Xdebug article, his day to day work, and working remotely.

You can listen to this latest episode either using the in-page audio player or by downloading it directly. If you enjoy the show, be sure to subscribe to their feed to get updates when new shows are released.

tagged: podcast phparchitect ep12 xdebug freelancing remote work

Link: https://www.phparch.com/podcast/episode-12/

php[architect]:
September 2018 Issue Release - Magniphpicent 7.3
Sep 06, 2018 @ 12:19:14

On the php[architect] site today they've posted the announcement of the release of the magazine's latest issue: September 2018 - Magniphpicent 7.3

Articles in this edition include:

  • "PHP 7.3 is On Track!" by Damien Seguy
  • "Upgrading Old Legacy Apps to PHP 7 and Beyond" by Sammy Kaye Powers
  • "Using the Symfony Workflow Component as a State Machine for Ecommerce" by Michelle Sanver

All of the usual columns are back too with helpful hints and information about time estimates, thinking like an attacker, describing tests and many more. You can find out more about this issue and pick up a copy of your own on the php[architect] site.

tagged: phparchitect magazine sept2018 issue release magniphpicent php73

Link: https://www.phparch.com/2018/09/masterful-code-management-2/

php[architect]:
Pro Parsing Techniques With PHP, Part Three Using Regular Expressions
Aug 29, 2018 @ 10:55:15

On the php[architect] site they've posted the latest part of their series of magazine excerpts sharing methods for parsing text with PHP. In this third (and last) part the author focuses on the use of regular expressions. This article was originally printed in the magazine's August 2018 edition.

This is the final installment of a set of three articles offering strategies for parsing text with PHP. The first article described the basics of parsing, followed by an article on developing fault tolerant parsing strategies. This article is dedicated to regular expressions.

Regular expressions, or sometimes simply called regex, represent a powerful set of tools which allow developers to split strings, perform character substitutions, and extract text based on matched patterns. The patterns, used in regular expressions, are an actual language that describe combinations of type castings and values that match the text you want to split, substitute, or extract. Regular expressions are an enormously powerful tool for the developer who understands them.

The tutorial starts by walking through some of the basics of what regular expressions are and the functions provided by PHP (using preg_*) to work with them (including basic code examples). It then briefly talks about pattern matching with regular expressions and gives a more specific example showing phone number extraction.

tagged: phparchitect august18 parsing text series part3 regularexpression tutorial

Link: https://www.phparch.com/2018/08/pro-parsing-techniques-with-php-part-three-using-regular-expressions/