PHP doesn't suck (anymore)

preview_player
Показать описание
PHP in 2023 is very different than PHP in 2012. Let's run through some of the changes!

00:00 Intro
01:16 Traits
01:34 Short array syntax
01:47 Array destructuring
02:05 Variadic functions
02:12 Spread and splat
02:34 Generators
02:49 Anonymous classes
03:06 Trailing commas in function calls
03:26 Arrow functions
03:48 Null coalescing and null coalescing assignment
04:11 Null chaining operator
04:36 Named arguments
04:47 Attributes (annotations)
05:05 Non-capturing catch
05:28 Sensitive parameter attribute
05:43 Match statements
06:12 Weak maps
06:28 Enums
07:04 Typehints
07:19 Types, types, and more types
09:27 Readonly properties and classes
09:47 Addressing the speed of PHP
Рекомендации по теме
Комментарии
Автор

Sorry man. If you liked Looper, I can't trust your ability to determine what sucks

kman
Автор

How is it possible? Ten minutes flew so fast.
You rock, man. Keep it up!

salimibrohimi
Автор

Most people that say "PHP sucks" have never used PHP and started coding with javascript with React

ariell
Автор

I started my career with PHP, 5 years ago and even if I now work primarily in Go, I still keep up with all the new features. It's still massively useful to me for small websites and other minor projects.

tranquility
Автор

I sometimes wish I hadn't missed out on PHP when it was popular. I got into web dev with React around 4 years ago. It sometimes feels like the Node ecosystem is finding increasingly convoluted ways of reinventing PHP.

hovhadovah
Автор

I actually got my first job in PHP 10 years ago and since then jumped around using, JS, GO, Python, C# and today I work for a company who uses PHP. Its definitely not dead.

KayB
Автор

"when have you personally needed 50, 000 requests per second? how many users do you have?" 💀

BenHolmen
Автор

I had no idea PHP evolved so much. All of the things I wish it had when I stopped using it actually are implemented now. Awesome vid!

lachezarraychev
Автор

Great video! It's been quite some years since I worked with PHP, happy to see it has adapted a lot of the features, I enjoy in other languages (C# and Typescript). Keep up the good work

jhdk
Автор

Php with enums, union types, and match was what got me through the pain of -> . Else I would've resigned, laravel or not

Naton
Автор

I am an SE student for this fall semester we use PHP in one of our courses. this video was a relief. honestly, I have only heard bad things about PHP and I was worried. thanks for the video.

muhamadsarhad
Автор

Loved the video! The flow of it was purely amazing and entertaining! I am using PHP professionally and yet most of these went under my radar.

marko
Автор

from someone who went from c# to php, and saw all those changes from php 5 to 7 and now 8, this language is gathering its fast application on market alongside with the goods that comes with statically typed languages. Absolutely amazing work from the PHP team!

BrunoSantos-ekug
Автор

Thank you for continuously promoting PHP. From a fellow PHP developer.

redilinxa
Автор

"I'm no longer an accountant, and PHP no longer sucks" 😂💖

HeyRyanHaskell
Автор

Small correction to your array destructuring segment: No, you didn't have to manually declare seperate variables and then access by index. Long before that was a feature, PHP shipped with the list() function which does essentially the same thing only slightly more verbose

Bennigames
Автор

I used PHP for work (specifically with Laravel), and I was introduced to 7.4, but when I saw what 8.0 and 8.1 had, I knew PHP was a competitor. I would still likely not choose it, but it's definitely on par with modern languages in my opinion. Thanks for making this!

chewcodes
Автор

For huge number of requests you can use the Swoole extension where you get a Node-like webserver continuesly running and processing requests with an event loop. At one place I even had to introduce sleeps in the microsecond range as the database was not fast enough to keep up with changed data.

FaeRhanX
Автор

Dude, I feel like I am quite on the edge using PHP8.1 and stuff for quite a long time but even I learned something thats cool AND useful to me (usually it's just cool). Great video!

evilscientist
Автор

Sweet.
You recapped very well.
Although I was aware of almost all of them, I could never recap this way.
Good for you!

kurshadqaya