PHP Classes

10 Pieces of PHP Developer Advice in 2022: Advice #2: Use a Readable PHP Coding Style - 3 minutes - Lately in PHP Podcast Episode 90 Part 2

Recommend this page to a friend!
  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog 10 Pieces of PHP Deve...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Viewers: 308

Last month viewers: 1

Categories: PHP Tutorials, Lately in PHP Podcast

Using a PHP coding style that is readable and consistent in all your PHP projects is a significant factor in increasing the chances of your PHP Open Source project being adopted and used by other PHP developers.

The explanation about this advice to any PHP developer is the main topic of part 2 of the Lately in PHP podcast episode 90.

Read this article, watch a 3-minute podcast video or listen to this podcast episode to learn more about the importance of using a readable and consistent coding style.




Loaded Article

In this article you can learn:

Why It is Important to Get Good Advice

What Pieces of Advice You Can Get as a Developer

1. Previous article: Be a Good Community Member Sharing Your Open Source Work in Community Sites

2. This article: Use a Readable PHP Coding Style

3. Next: Share Reusable Classes with Simple Documentation and Example Code


Contents


Listen or download the podcast, RSS feed and subscribe in iTunes

Click on the Play button to listen now.


Download Size: 1MB Listeners: 564

Introduction music provided by http://spoti.fi/NCS



View Podcast in iTunes

In iTunes, use the Subscribe to Podcast... item of the Advanced menu, and then enter the URL above to subscribe to this podcast.

Watch the podcast video


See the Lately in PHP podcast play list on YouTube and Subscribe to this channel there.

Episode 90 Part 2 Video

What was said in the podcast

1. Be a Good Community Member Sharing Your Open Source Work in Community Sites

2. Use a Readable Coding Style

Coding style is a topic that leads to neverending discussions. If you disagree with other people's coding style, use your own coding style that makes you more productive.

Keep in mind that you may need to use the coding style that other people in the project already use if you work in projects of other people or other companies. This makes it easier for everybody to read and understand it just by looking at it.

If you do not have a favorite coding style, I suggest that you start learning the coding style defined by the PSR 2 (PHP Standards Recommendation), defined by developers of many projects precisely to agree on a more consensual style readable and follows predictable patterns.

If you prefer some other coding style, that is OK too, as long as you can easily read the code you read, so you can understand it even many years after you wrote it.

3. Next: Share Reusable Classes with Simple Documentation and Example Code

Stay tuned to the next part of the Lately in PHP podcast episode 90. For now, feel free to post your comments below so we can give you attention to what you want to say about being a Good PHP Community Member.

  • PHP FIG  - Framework Interoperability Group
  • PSR-2 - PHP Standards Recommendation 2 - Coding Style Guide
  • PSR-12 - PHP Standards Recommendation 12 - Extended Coding Style



You need to be a registered user or login to post a comment

Login Immediately with your account on:



Comments:

No comments were submitted yet.




  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog 10 Pieces of PHP Deve...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)