Author: Manuel Lemos
Updated on: 2021-08-24
Posted on: 2021-08-24
Last month viewers: 41
Categories: Lately in PHP Podcast
Manuel Lemos and Samuel Adeshina comment specifically about the benefits of PHP 8 function parameter lists using trailing commas in the sixth part of this podcast episode.
Listen to the podcast, watch the video with manually edited subtitles in English, read the transcript to learn more about these exciting PHP 8 topics, and find where to buy the original PHP elePHPants shown in the podcast video.
Download Size: 3MB Listeners: 601
Introduction music provided by http://spoti.fi/NCS
In iTunes, use the Subscribe to Podcast... item of the Advanced menu, and then enter the URL above to subscribe to this podcast.
See the Lately in PHP podcast play list on YouTube and Subscribe to this channel there.
Episode 88 Part 6 Video
List of Transcript Sections That You May Read Below
PHP 8 to Allow Trailing Comma in Parameter List (0m 17s)
Manuel Lemos: So moving on to the last feature.
Samuel Adeshina: OK. This is one of the most basic ones. It was introduced basically for convenience.
So when calling your functions in PHP, or rather when defining your functions, at the end of the parameter list, currently you are not allowed to have a comma by mistake or whatever may have caused it to have a comma, but you are not allowed to do that.
And this is a feature you see in other languages. You can do this in languages like Python and get away with it. And PHP currently does not allow that.
So it's nifty to pass errors that you have to go and check: oh god damn it I have to fix this.
Other than that but PHP is going to solve all of that. You can afford to have a trailing comma at the end of your function calls and get away with it.
This will make your code more readable, much more readable, and also save you from one less very common programming mistake. I really encourage you to try this.
Manuel Lemos: Yes. This is something that you will figure that what is good about this when you try it. It's not like you need to add one comma less.
How you save one character every day. OK, it's not a big deal but if it makes people happy to have this feature awesome.
This is also a sign of perfectionism. There's no problem trying to be perfect. It's really hard to really be perfect. That's why PHP 8 is here.
How to Buy the Official PHP elePHPants (2m 20s)
Manuel Lemos: And we are practically ending this podcast. And it's up to you. This is just one episode of the Lately PHP podcast on which we are talking about PHP 8. We will also talk about other aspects.
What I would like to say to end this podcast if you allow me, we are doing this podcast is also work, work of collaboration we are not asking anybody to pay us.
We are doing this because we have fun. We are doing this as a part of the content that will be published in the PHP Classes site, as well in YouTube.
And what we would like, if you allow us, is that if you would like to support not only the PHP community as a whole but also PHP Classes, is try to find these in the PHP Classes just to show...
Samuel Adeshina: The best stress relief you need as a PHP programmer.
Manuel Lemos: ...this is the official PHP ElePHPant that was allowed to be produced and sold, by Vincent Pontier from France, the creator of the design. Actually, there one improvement, like PHP 8, think about this is the PHP 7 ElePHPant. The PHP 8 is more like this.
This is the the pink, as you may see. And we are going to also make available the possibility to personalize your elephants with maybe your name, like Carolina, and oh this is the PHP Classes also. These are optional. Actually you need to do extra work to pay that cost a bit more.
And one possibility is this to have the PHP 8 logo. There this is also a design of Vincent Pontier.
We are very, very grateful for him and for his kindness. He's been supporting the site for many years. Not only he allowed us to produce this one but also the previous one which was also an improvement from a contributor of the site.
And we want actually to pay him royalties and he was being kind enough to waive those royalties. And all the money that we can get to to the site is reverted to continue further development.
Upcoming PHP Classes Marketplace (5m 04s)
We want to pay more contributors, more PHP developers to help us to improve the feature that many developers want. Oh I would like the PHP Classes to be better.
And PHP Classes will be better in a way that I hink many people will like, which is, we are going to help developers to buy and sell their own software products written in PHP or maybe APIs or components or courses, many things that will be announced soon and are part of a plan that we have been executing very slowly but is moving on every day a single bit until we get there.
So we hope in the next months we open the PHP Classes marketplace which will be like many markets that are out there on which can help you, Samuel, or other people to have their products be sold in the market.
Conclusion (6m 16s)
So basically that's it. I would like to thank you for the opportunity to listen to us. And hopefully we have provided value in terms of knowledge about the new features of PHP 8, as well features for the upcoming versions of PHP, by versions I mean the other features that PHP 8 has implemented.
And on my behalf that is all for now. I'll like to leave you with the last words from Samuel. Last words for now. He is not going to die okay?
Samuel Adeshina: Thank you for this episode about PHP 8. And I would just encourage you to check it as soon as it is released which is hopefully in less than two weeks from now.
Manuel Lemos: OK. Let's see us again soon. If you would like to propose topics or even participate in the podcast with us, just contact us. We're going to make available the contacts.
We are very accessible and anybody can contact us. Send us emails. Send us spam. Send us complaints. Send us complaints. Send whatever you feel it's right for you to comment. So we will be waiting for your comments, or not, it's up to you. On my behalf that is all for now. Bye.
Samuel Adeshina: Thank you. Thank you. Bye.
- PHP 8 Allow trailing comma in parameter list in the PHP wiki
- Buy the Original PHP ElePHPant Mascot Plush Toys
- Comprar a Mascote Original do PHP Azul ou Rosa no site do Mercado Livre
- Comprar a Mascote Original do PHP personalizado com o seu logo no site do Mercado Livre
You need to be a registered user or login to post a comment
Login Immediately with your account on:
No comments were submitted yet.