Тёмный

PHP doesn't suck (anymore) 

Aaron Francis
Подписаться 40 тыс.
Просмотров 198 тыс.
50% 1

PHP in 2023 is very different than PHP in 2012. Let's run through some of the changes!
Looking for PHP jobs or looking to hire PHP devs? Check out Larajobs: larajobs.com/?partner=108
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

Наука

Опубликовано:

 

25 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1,4 тыс.   
@kman12275
@kman12275 10 месяцев назад
Sorry man. If you liked Looper, I can't trust your ability to determine what sucks
@aarondfrancis
@aarondfrancis 10 месяцев назад
Oh it gets worse. I have an entire page on my site that ranks the Fast and Furious movies. aaronfrancis.com/lists
@MrNedinator
@MrNedinator 10 месяцев назад
@@aarondfrancis it makes sense that you make videos on php AND have a list like that.
@aarondfrancis
@aarondfrancis 10 месяцев назад
@@MrNedinator two awesome things!
@victorpinasarnault9135
@victorpinasarnault9135 10 месяцев назад
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkK!
@hixac2105
@hixac2105 10 месяцев назад
@@aarondfrancis, you are truly gigachad! Continue doing what you love!
@salimibrohimi9813
@salimibrohimi9813 10 месяцев назад
How is it possible? Ten minutes flew so fast. You rock, man. Keep it up!
@aarondfrancis
@aarondfrancis 10 месяцев назад
Thank you so much!
@lachezarraychev1391
@lachezarraychev1391 9 месяцев назад
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!
@Kay8B
@Kay8B 10 месяцев назад
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.
@guai9632
@guai9632 10 месяцев назад
when someone claims that something is not dead, then it definitely is. otherwise no need in such statements
@Kay8B
@Kay8B 10 месяцев назад
you are not dead @@guai9632
@oogolixoo
@oogolixoo 10 месяцев назад
Python is not dead.@@guai9632
@luisebaq
@luisebaq 6 месяцев назад
@@guai9632 >70% of web, dead sure
@tranquility6358
@tranquility6358 10 месяцев назад
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.
@kokizzu
@kokizzu 10 месяцев назад
same here, hail Go :3 even minor projects i use Go XD
@tacopito
@tacopito 10 месяцев назад
hey go devs, may I ask what do you use go on your daily basis@@kokizzu
@user-zy4yh8iw1f
@user-zy4yh8iw1f 10 месяцев назад
​@@kokizzuyou guys tried sveltekit?
@morphles
@morphles 10 месяцев назад
Work has pushed me from php to go... Haven't worked much with go, but so far I think... php is light years better for web dev, and likely in general. Jesus Christ no ternary... useless vars and statements FTW... what a load of bs....
@B20C0
@B20C0 10 месяцев назад
@@morphles If you ever worked in a big team you would have learned to hate ternaries. Just keep the code readable.
@ariell121
@ariell121 10 месяцев назад
Most people that say "PHP sucks" have never used PHP and started coding with javascript with React
@kwinso
@kwinso 10 месяцев назад
Well, js and react suck as much as PHP does
@austinedeclan10
@austinedeclan10 10 месяцев назад
​@kwinso I avoid JS like the plague. Unfortunately JS is the web's programming language but if I can do it without Javascript, I'll do it without Javascript
@AprendaWebDev
@AprendaWebDev 10 месяцев назад
@@kwinso What doesn't suck in your opinion (for back-end web development)?
@hamsterboy56
@hamsterboy56 10 месяцев назад
​@@AprendaWebDevRust or Go
@philheathslegalteam
@philheathslegalteam 10 месяцев назад
I have used PHP. I had to make my own PHP framework to make the language remotely usable. It fucking sucks. The only usable thing about PHP is that it’s Turing complete, but hey so is brainfuck.
@hovhadovah
@hovhadovah 10 месяцев назад
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.
@FnordSho
@FnordSho 10 месяцев назад
leave it. learn ruby with rails (full stack mvc), sorbet (statical types) and hotwire (SPAs, animations etc.), or elixir with phoenix (also full stack mvc) and liveview (SPAs...). laravel has something similar btw, livewire for SPAs. javascript and node have chaotic ecosystem, in time dependencies grow into unmanagable and unreliable mess. also, react has insane update rates. both problems will result in burnout. aside from javascript being javascript. Learn serious framework written in well designed language. The 3 i have mentioned are fullstack, meaning that you can use them to build frontend and backend, APIs, CMSs, SPAs and so on. With wasm the possibilities are endless. And if you want to have knowledge about client-side apps, learn Angular - stable, mature, consistent. And there are 2 version for different usages. One written in Typescript, the other in Dart. oh, and do not be a fullstack at work. You will have 2 times more responsibilities than front or backend dev. If front-end -> Angular, Dart, maybe Flutter and Unity if you want mobile apps, games, interactive movies. If backend -> Rails, Phoenix (the advantage is concurrency/parralelism and functional, not object-oriented paradigm, contrary to the rest options) or Laravel (or Symfony). That is, if you want to stick with web development. If operating systems and desktop apps would be more interesting -> C and Rust, maybe Zig but start with Nim, Crystal or Go to be comfortable with compiled languages and different memory management methods and garbage collection styles. If big data, machine learning, computer science and AI -> Python, Julia, Matlab, R and Ocaml. Python and Julia are the easiest, Ocaml is as difficult as Rust. Do not touch the JVM ecosystem, it is a mess comparable to node case.
@pearl911
@pearl911 10 месяцев назад
And it for the most part is still worse that php
@vedranb87
@vedranb87 10 месяцев назад
To me who started on PHP around 2012 and continued using it until around 2017 and moved to React it seems that PHP of today is also finding ways of reinventing JavaScript, which I don't see as a bad thing. We learn and we grow collectively from each other and somewhere around year 2100 we'll have one language to rule them all.... but to my experience it will end up competing with every other language and these wars will continue. :D
@SXsoft99
@SXsoft99 10 месяцев назад
Because it is, just in a bad way 😅
@CottidaeSEA
@CottidaeSEA 10 месяцев назад
PHP and Turbo is all you need for most use cases.
@marko3808
@marko3808 10 месяцев назад
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.
@BenHolmen
@BenHolmen 10 месяцев назад
"when have you personally needed 50,000 requests per second? how many users do you have?" 💀
@aarondfrancis
@aarondfrancis 10 месяцев назад
Had to do it to 'em
@n1njaF4c3palm
@n1njaF4c3palm 10 месяцев назад
* thdxr enters the chat *
@bgeneto
@bgeneto 10 месяцев назад
Which language should we use in this case? What do you think guys.... Python? I don't think so...
@BenHolmen
@BenHolmen 10 месяцев назад
@@bgeneto if you're hitting 50k plus it's time to roll some qbasic
@neociber24
@neociber24 10 месяцев назад
​@@bgenetosomething compiled maybe
@jhdk356
@jhdk356 10 месяцев назад
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
@BrunoSantos-ek9ug
@BrunoSantos-ek9ug 10 месяцев назад
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!
@aarondfrancis
@aarondfrancis 10 месяцев назад
Honestly we owe the PHP team a lot for continuing to adapt
@effexon
@effexon 10 месяцев назад
if you use PHP and talk of speed, you are in wrong application area :D also, xeons and memory these days are cheap, add as many cores as needed. 2004 PHP was struggling, not anymore.
@nikolaslijepcevic
@nikolaslijepcevic 10 месяцев назад
All of this new unique feature that new PHP has now, C# had in 2008
@biomorphic
@biomorphic 9 месяцев назад
True, many of them. But PHP started as a scripting language to create dynamic web pages. It was initially developed by Rasmus Lerdorf in 1993. Rasmus was not an expert in compiler design. C#, instead, has been designed by Anders Hejlsberg, who created Turbo Pascal, Delphi, and then eventually moved in Microsoft when he first built a Java compiler, and then he made C#, and most recently Typescript. Hejlsberg is one of the most influent compiler designer. That why C# used to be so much better.@@nikolaslijepcevic
@creativecraving
@creativecraving 4 месяца назад
Dude! C# had a lot of positive changes over the same time. I'm not sure if you got the better deal or not.
@redilinxa
@redilinxa 10 месяцев назад
Thank you for continuously promoting PHP. From a fellow PHP developer.
@aarondfrancis
@aarondfrancis 10 месяцев назад
❤️
@egamer3328
@egamer3328 10 месяцев назад
@orenders
@orenders 10 месяцев назад
yes, we moved from "some" framework to php with our 1M uniq per mo, and hardware cost lowers x3
@cl-7832
@cl-7832 10 месяцев назад
I'm coming from the Java world and started learning PHP for a future personal side gig, and after reading about PHP 7 and 8, I'm excited about it. I chose PHP over NodeJS because I didn't want to deal with NPM hell.
@muhamadsarhad6566
@muhamadsarhad6566 10 месяцев назад
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.
@nunosdonato
@nunosdonato 10 месяцев назад
thats why people who criticize PHP are so damn annoying, they are doing a disservice to everyone and they are just misinformed.
@WilsonSilva90
@WilsonSilva90 10 месяцев назад
Sorry. The bad things are still there. But you'll never run out of job options. NEVER.
@neptronix
@neptronix 10 месяцев назад
Almost every language has bad things in it. But PHP is the only programming language designed specifically for web backends; it's a great fit for the task.
@pixelsam123
@pixelsam123 8 месяцев назад
@@neptronix I'm pretty sure sending JSON and dealing with non-get and non-post methods are a pain. I don't think PHP is designed for anything other than server side rendered HTML
@neptronix
@neptronix 8 месяцев назад
@@pixelsam123 it sounds like could understand PHP a little better. PHP can handle JSON extremely well and even has an optional SIMD accelerated library for it. It can certainly deal with non-post methods, we use them. And yes, it excels at and was originally designed around sending hypertext through the hypertext transmission protocol. It does the above better than any other language i've seen.. and the reason should be obvious, it was designed for web backends from the start.. hypertext is even in the name.. :)
@kurshadqaya1684
@kurshadqaya1684 10 месяцев назад
Sweet. You recapped very well. Although I was aware of almost all of them, I could never recap this way. Good for you!
@aarondfrancis
@aarondfrancis 10 месяцев назад
Thanks!
@ryan_town
@ryan_town 10 месяцев назад
"I'm no longer an accountant, and PHP no longer sucks" 😂💖
@aarondfrancis
@aarondfrancis 10 месяцев назад
Everything works together for the good 😂 ❤️
@DennisIvy
@DennisIvy 7 месяцев назад
Glad I finally found your personal channel. Love your videos!
@aarondfrancis
@aarondfrancis 7 месяцев назад
It's me! You made it! 🫡
@Prezbar
@Prezbar 18 дней назад
Haven't really touched PHP since 2004. It was nice to have a summary of those things. I appreciate the fast pace!
@evilscientist3400
@evilscientist3400 10 месяцев назад
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!
@ThePandaGuitar
@ThePandaGuitar 10 месяцев назад
Amazing video. Didn’t know PHP could do most of these. Lovely features.
@sixkiller9240
@sixkiller9240 10 месяцев назад
Aaron, I love your videos man! I am so happy that you became popular in the community and started doing such cool things!
@grzegorzbankowski8757
@grzegorzbankowski8757 2 месяца назад
Thank's a lot Aaron for this great video and your support for PHP 🙏👍😀
@teej_dv
@teej_dv 10 месяцев назад
I already knew php wasn't dead because this channel exists.
@elkatedratico
@elkatedratico 9 месяцев назад
wow, i have learning much from this video, i had not idea of naming parameters in functions, "match" function, destructure in array,
@nicolascanala9940
@nicolascanala9940 10 месяцев назад
Yet another gem, thanks Aaron!
@FaeRhanX
@FaeRhanX 10 месяцев назад
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.
@blakeacheson9387
@blakeacheson9387 10 месяцев назад
Or just use roadrunner if your framework uses psr request/response objects
@RichardTippin
@RichardTippin 10 месяцев назад
Php continues to get the job done! Something else that's a "newer" addition I love...using First class callable syntax, often in place of where I may have a verbose arrow function callback. Places like collections, array methods, or even when you need a callback to bind a class into the container.
@mabdullahsari
@mabdullahsari 10 месяцев назад
This man knows his stuff.
@RichardTippin
@RichardTippin 10 месяцев назад
@mabdullahsari Says the very man who introduced me to FCC's!
@development2301
@development2301 10 месяцев назад
Great video. Thank you for your efforts
@avikkycodes9929
@avikkycodes9929 10 месяцев назад
Really worth the time, i enjoyed the video. and learnt a few things. Thanks Aaron
@chewcodes
@chewcodes 10 месяцев назад
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!
@ZephniStrife
@ZephniStrife 10 месяцев назад
I've been using PHP for my job for the last 14 years or so, I try to keep up with the version updates but so often forget what's possible because I'm so used to old school PHP. I learnt a completely new one from your video though, I did not know you could pass key: value named parameters to functions that's amazing! 😲Also had forgotten about the match() function instead of switch statements which is beautiful.
@matt6frey
@matt6frey 8 месяцев назад
Great video! 👍
@zachariascreutznacher3093
@zachariascreutznacher3093 10 месяцев назад
Best video of the year Aaron! 🥰
@KimHogeling
@KimHogeling 10 месяцев назад
I'm switching jobs. After about 10 years of PHP I worked with Java for almost 5 years and soon back to PHP. I'm excited to use this modern and useful syntax!
@BenHolmen
@BenHolmen 10 месяцев назад
I love that this is JUST talking about PHP. The language itself has grown so much, and this video doesn't even touch on the fantastic ecosystem, the best package manager around (composer), frameworks like Laravel, etc.
@aarondfrancis
@aarondfrancis 10 месяцев назад
I want to do one on composer only at some point. It's so so good
@MansoorKhan-ns2bt
@MansoorKhan-ns2bt 10 месяцев назад
​@@aarondfrancisDefinitely on composer, Its d d d best
@BudaSuyasa
@BudaSuyasa 10 месяцев назад
Great wrap up Aaron. Thanks for this. Enum is so good.
@lpanebr
@lpanebr 10 месяцев назад
Loved this. Thanks. Subscribed.
@74Gee
@74Gee 10 месяцев назад
I've been using PHP professionally as my primary language since PHP 3, it rocks a lot more than it used to!!
@nimmneun
@nimmneun 10 месяцев назад
😂 remember when PHP 4 slowly made it to virtual hosting machines and broke everything so you had to rename files .php3 for them to be ran through the php3 interpreter 😅
@coldestbeer
@coldestbeer 10 месяцев назад
XAMPP & WAMP
@74Gee
@74Gee 10 месяцев назад
@@nimmneun yeah I remember it well, there were a few episodes like that through the years but each one brought more understanding of the architecture, I'm happy it taught so much
@74Gee
@74Gee 10 месяцев назад
@@coldestbeer LEMP/LAMP stacks mainly but I do have a VM with XAMPP that I use sometimes
@coldestbeer
@coldestbeer 10 месяцев назад
@@74Gee I'm talking about the old days when I'd use xamp & wamp. Today its lamp.
@MrMisterkrazy
@MrMisterkrazy 10 месяцев назад
An interesting overview of new things! But what made me dislike PHP back in the day isn't so much what it lacked, but the weird things it DID have. I'd be very interested in a video about what ISN'T in modern PHP... what are some things that were bad that nobody uses anymore (even if they're technically in the language)?
@aarondfrancis
@aarondfrancis 10 месяцев назад
Interesting question... I'll noodle on it!
@RaineWilder
@RaineWilder 10 месяцев назад
Rest assured no one has ever touched goto operator 😂
@RaineWilder
@RaineWilder 10 месяцев назад
Or eval for that matter… not any time recently
@shdon
@shdon 10 месяцев назад
Gone entirely or indeed so rarely used that they might actually be gone: non-numeric strings comparing equal to 0, eval, register_globals, magic quotes, open_basedir, a lot of the headaches with different character encodings (UTF-8 is now the [sane] default everywhere), the mysql extension (all mysqli now), the "each" function (the foreach construct makes much more sense)
@hb-man
@hb-man 9 месяцев назад
It really is a slow process to get things removed from the language, as that will usually prevent someone from just upgrading. However, there was a big game changer: Composer dependency manager.
@TheArmanist
@TheArmanist 10 месяцев назад
Great explained, thanks
@HealthyDev
@HealthyDev 10 месяцев назад
Nice video Aaron, caught a bunch of stuff I wasn’t aware of!
@Benni1000games
@Benni1000games 10 месяцев назад
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
@aarondfrancis
@aarondfrancis 10 месяцев назад
A very good point indeed. Forgot about list
@mibrahim4245
@mibrahim4245 10 месяцев назад
example please
@MarkoBolliger
@MarkoBolliger 10 месяцев назад
$info = array('coffee', 'brown', 'caffeine'); // Listing all the variables list($drink, $color, $power) = $info; echo "$drink is $color and $power makes it special. ";@@mibrahim4245
@codemonkeybusiness
@codemonkeybusiness 10 месяцев назад
@@mibrahim4245 $array = [1, 2, 3]; list($first, $second) = $array; var_dump($first, $second); //int(1), int(2)
@ontheruntonowhere
@ontheruntonowhere 10 месяцев назад
True, but list is fussy. You can only use it with indexed arrays, and you don't have much control over which elements to extract. List: $array = [10, 20, 30]; list($foo, $bar, $cat) = $array; echo $foo; // Outputs: 10 echo $bar; // Outputs: 20 echo $cat; // Outputs: 30 Destructuring: $array = ['a' => 10, 'b' => 20, 'c' => 30]; ['c' => $foo, 'b' => $bar] = $array; echo $foo; // Outputs: 30 echo $bar; // Outputs: 20
@HoSza1
@HoSza1 10 месяцев назад
First impression: PHP became a Frankenstein's monster because it mixed and matched a ton of features of at least half a dozen other languages. But of course languages seem to converge more and more, it's interesting to think about when are they going to be so similar that they would stop multiplying like they keep doing at the moment.
@bilp_bloup_bot
@bilp_bloup_bot 7 месяцев назад
one decisive factor is the ecosystem: laravel symfony and apiplatform... very few (if any ?) backend oriented languages have such a strong ecosystem when it comes to productivity, 8.2 + those tools = the best backend developer experience out there
@HoSza1
@HoSza1 7 месяцев назад
@@bilp_bloup_bot I'm not an expert at web app backend development so bear this in mind when you respond: what's your opinion about Python and its related "ecosystem" with respect to backend development experience? Isn't it efficient/straightforward/mature enough?
@docmars
@docmars 10 месяцев назад
This is amazing! Thanks for the rundown. Haven't used PHP since 2013 probably, when I was doing WordPress brochure sites. I might just have to try it again someday!
@colinleroux1925
@colinleroux1925 8 месяцев назад
Your content, enthusiasm and embracing style makes me relish the fact I have endured with PHP since version3 - keep up these amazing posts - thank you
@aarondfrancis
@aarondfrancis 8 месяцев назад
Gah that's so encouraging. Thank you
@ratlinggull2223
@ratlinggull2223 10 месяцев назад
Most of these have been implemented in other languages, so I'd be still sticking to Typescript. But the sensitive variable stuff is very intriguing, not going to lie.
@TheRafark
@TheRafark 9 месяцев назад
Typescript is still JavaScript @ runtime 🤮
@Super_SixFour
@Super_SixFour 10 месяцев назад
PHP has Laravel. All you need.
@tomasma4896
@tomasma4896 10 месяцев назад
Amazing. Was working with PHP for years, but it's almost 10 years ago. Now I see that it is evolving as every other language and for me it looks like all languages are coming closer to each other providing same tricks and shortcuts for us :)
@muhammadjonsharipov2200
@muhammadjonsharipov2200 9 месяцев назад
Good job, man!
@PimmHogeling
@PimmHogeling 10 месяцев назад
Really well-made video. It demonstrates how PHP caught up with TypeScript in a lot of ways. This is incredible news for PHP developers. The reason I feel PHP isn't very relevant today, however, is that I don't see any reason why someone would switch from TypeScript/Kotlin/Python to PHP.
@norayr3975
@norayr3975 10 месяцев назад
Considering that 80% of all websites run on PHP, I'd say that PHP is the most relevant of all. The RU-vid influencer bubble gives a skewed perception of reality. In the real world, PHP is king.
@mrk131324
@mrk131324 10 месяцев назад
Python is slow as shit as an application language, Koatlin/Java is proprietary and expensive to run and TypeScript is not even a language. JS is indispensable but a mess of a language.
@aintnochange
@aintnochange 10 месяцев назад
@@mrk131324 openjdk is free and not proprietary
@clintdebattista5013
@clintdebattista5013 9 месяцев назад
PHP is 3x faster than Python now
@conaticus
@conaticus 10 месяцев назад
While your points are valid and PHP definitely isn't dead, would be interesting to see a comparison of PHP to the other options to really see if it's worth adding to one's skillset. I feel like a lot of companies are still using PHP because they haven't been able to afford to switch to something else due to having large scale apps. Awesome video :)
@mrk131324
@mrk131324 10 месяцев назад
If you ask contextless question like „which language is the fastest?” The answer will never be one of the popular languages (zig is the fastest language, Lua the fastest scripting language). Which language is most performant for handling web requests? Elixir/Erlang. What matters much more is the landscape and infrastructure around that language. Here PHP is King in the web application environment, no other language can compete. And nowadays PHP outperforms all other big name scripting languages (except Node).
@johnforeverrules
@johnforeverrules 10 месяцев назад
thanks Aaron for yet another great video.
@MarcoMezzavilla88
@MarcoMezzavilla88 10 месяцев назад
A perfect video. Quick, informative, and entertaining. I think it will be linked very often in response to lazy comments.
@imdtap1448
@imdtap1448 10 месяцев назад
Haters gonna hate....They were saying PHP was gonna die 10 years ago. It's changed so much, continues to grow, has a great, supportive community, and owns how much of the web again? Just Wordpress alone (love it or hate it) is enough said. If PHP is enough for me to make decent cash to support my family... I ride the PHP wave until it crashes. PHP lives on.....
@whilechannel
@whilechannel 10 месяцев назад
PHP is dead walking
@guai9632
@guai9632 10 месяцев назад
even fortran and algol is not completely dead. they just aren't as alive as they used to be. so is php
@tannercampbell
@tannercampbell 10 месяцев назад
i have been using PHP for several years and still work with many version, and named function arguments are easily my favorite
@salehmo66
@salehmo66 10 месяцев назад
awesome. great work
@ivanjelenic5627
@ivanjelenic5627 10 месяцев назад
You do good videos, and seem positive. Good job! Also, I love PHP, so that helps. I wish you did more videos on PHP.
@aarondfrancis
@aarondfrancis 10 месяцев назад
I want to be a positive force for PHP. Thank you for saying that. ❤️
@CottidaeSEA
@CottidaeSEA 10 месяцев назад
I find that PHP is really all I need for most things I build. PHP, Twig and Turbo goes a long way. If I have something more complicated, there's Symfony and Laravel. I do prefer other languages, but just for making a website without much hassle, PHP is the way to go.
@RealAshleyBailey
@RealAshleyBailey 10 месяцев назад
PHP is amazing, and far from dead, PHP is what got me programming at the age of just 9 years old, its languages like PHP that really give people the opportunity to learn programming.
@morelli93
@morelli93 10 месяцев назад
thanks for this video!!! I've been working with php for 2 years, but didn't know some of this stuff. Thanks
@rickyanthony
@rickyanthony 8 месяцев назад
This made me realize how outdated my code was for something I built a year ago. Thank you!!!!
@nimmneun
@nimmneun 10 месяцев назад
Btw ... I hope you'll find the chance to do videos a bit more frequently. They are pleasant to watch and there are many cool/modern open source projects to cover ... and PHP is not just wordpress, laravel and symfony 😊
@aarondfrancis
@aarondfrancis 10 месяцев назад
Thank you! I'm glad you enjoy them. I'm certainly going to try to do them more frequently
@nimmneun
@nimmneun 27 дней назад
​@@aarondfrancisso nice that you followed through 🎉 100k subs this year gogogooo 🎉
@heychazza
@heychazza 10 месяцев назад
Definitely a +1 with the PHP speed, we run a game analytics platform and we easily handle 20-30mil requests per week. It’s nowhere near as bad as people make it out to be
@dhkatz_
@dhkatz_ 10 месяцев назад
Isn’t that like 2 requests per second?
@tomeric64
@tomeric64 10 месяцев назад
@@dhkatz_ no, it‘s up to 50 per second
@JigarDhulla
@JigarDhulla 10 месяцев назад
For those like me who never thought PHP sucked, title of this video is "Modern PHP in 10 minutes!". Thanks @aarondfrancis!
@baldcoder_
@baldcoder_ 6 месяцев назад
Time to look at PHP again. Awesome video!
@regibyte
@regibyte 10 месяцев назад
Thank you Aaron for keeping the PHP flame alive! These new kids think every shinny new toy is better than the last one, they see NextJS and think PHP is dead, when we know that's not the case. I say PHP is years ahead of anything in the NodeJS ecosystem, it's just so bad and needs to mature a lot, the ecosystem and the community around it...
@filiphajek4103
@filiphajek4103 10 месяцев назад
Well problem is there is no job in our country for PHP developers .. well there are some jobs but those jobs are about deprecated code in PHP or moving PHP into some reasonable codebases which are written in .. Java, C# or Python. So yeah PHP is dying .. even my university does not teach PHP anymore.
@royarnefylkesnes
@royarnefylkesnes 10 месяцев назад
If you need to handle many requests or in async, PHP Swoole can be used. Also, use load balancers and put as many web servers under as needed. PHP is still scalable in this way 😂. And when the cloud servers starts to get expensive, you can always switch to dedicated servers with 80 cores, 256 GB RAM, 2x4TB nvme disks for 260 EUR per month. Those should be able to eat some req per sec and store some data for ya! 👍
@Peter-bg1ku
@Peter-bg1ku 10 месяцев назад
The existence of swoole indicates that there's something lacking in the language.
@lako2023
@lako2023 9 месяцев назад
Yeah. I have a side projects where Google decided to send me ~500k additional real users over a couple of days (they suddenly added >100k pages to the Google index) with millions of requests. My little server for that costs less than 50 USD per month and wasn't disturbed at all. Just proper modern code with PHP 8.2 and it ruuunnnns.
@ErikBongers
@ErikBongers 10 месяцев назад
Has been ages since I last used PHP. Thanks for the update.
@bs_1101
@bs_1101 10 месяцев назад
THANK YOU Aaron!
@neociber24
@neociber24 10 месяцев назад
I really like when a language improves but I think most of the time you end up working in a 7 years old project that is never updated, I believe that's the reason why devs prefer moving to other language.
@aarondfrancis
@aarondfrancis 10 месяцев назад
Pretty good point, probably true
@bijayaprasadkuikel5162
@bijayaprasadkuikel5162 Месяц назад
The problem is going to be repeated after the 7 years for the application built with new Language too. So it’s not the language which is a problem but the culture of the company is.
@abdirahmann
@abdirahmann 10 месяцев назад
there is no way this is PHP??!? yall just looked at JS and thought... huh!! *copies syntax frantically* 🙂 js devs: 🧐👀 am dead! 😂😂 but i love it. I will try PHP.
@jediampm
@jediampm 10 месяцев назад
The best part is that is all vanilla / native. no need external tools ;(
@thecyrilcril
@thecyrilcril 10 месяцев назад
Thanks for this Aaron
@Naton
@Naton 10 месяцев назад
Php with enums, union types, and match was what got me through the pain of -> . Else I would've resigned, laravel or not
@karlkrasnowsky3895
@karlkrasnowsky3895 10 месяцев назад
It took so long to get enums. That was a glaring problem with PHP for years.
@bobbyiliev_
@bobbyiliev_ 10 месяцев назад
This video is awesome! 👏
@classicjonesy
@classicjonesy 9 месяцев назад
OK I am in love with this video; Bravo to the editor. You sir have earned a subscriber.
@aarondfrancis
@aarondfrancis 9 месяцев назад
🫡 I won't let you down!
@LaravelOnline
@LaravelOnline 10 месяцев назад
Great job Aaron - I will probably refer back to this video several times ;)
@user-er4ow2td6t
@user-er4ow2td6t 10 месяцев назад
Best possible productive 11 minutes. 🔥
@xanderbanter3752
@xanderbanter3752 10 месяцев назад
Well done, thank you sir!!!
@michaelionita
@michaelionita 5 дней назад
Nice one!
@carneios08
@carneios08 9 месяцев назад
Whoah! Didn't know they added all this! Might have to brush up on some PHP!
@tonylea4941
@tonylea4941 10 месяцев назад
Killing it homie 🤜🤛 Keep it up!
@aarondfrancis
@aarondfrancis 10 месяцев назад
Thanks Tony! ❤️
@seeds_of_growth-yi5gx
@seeds_of_growth-yi5gx 5 месяцев назад
Your way of saying things is so much fun, making this a really fun and easy watch, I have a little comment, it would be nice to just tag every example with a since PHP x version, so we have a reference, thanks for sharing
@splons
@splons 10 месяцев назад
8:54 Love the transition from types to constructor promotion!
@aarondfrancis
@aarondfrancis 10 месяцев назад
Thank you! I was proud of that one 🤓
@hokko6475
@hokko6475 9 месяцев назад
Php has really made some improvements. Nice to see.
@confusedprogrammer4859
@confusedprogrammer4859 10 месяцев назад
I love you bro. Thank you for this
@aarondfrancis
@aarondfrancis 10 месяцев назад
I gotchu ❤️
@nullzeon
@nullzeon 10 месяцев назад
Another banger PHP vid, PHP we're so back
@andrelimatv
@andrelimatv 10 месяцев назад
Amazing video, thank you as always! My PHP experience was always limited to Wordpress, and even that I haven't touched in awhile...
@chadlung4353
@chadlung4353 9 месяцев назад
Wow, first off great video - thanks. Second, I need to look into PHP again (last used it circa 2010 ). Had no idea the improvements. Between this and your Laravel video I'm excited to do some weekend hacking. Installing PhpStorm...
@Korodarn
@Korodarn 10 месяцев назад
Well done, I remember writing PHP a few years ago, used it for a quick website for my wedding and had used it previously for a small church website in early 2000s but it's good to know the language isn't what it used to be.
@colin_cameron
@colin_cameron 7 месяцев назад
I use PHP 8.2 every day - I thought I was pretty up-to-date on modern PHP, but you've just blown my mind with the null chaining operator. No idea how I missed that!
@albuslrc
@albuslrc 10 месяцев назад
This content is great! 😄
@tldw8354
@tldw8354 9 месяцев назад
very informative! I was still in the past php universe
@robrobob
@robrobob Месяц назад
I'm suffering from a bit of JavaScript burnout right now and this video makes me remember how much fun PHP can be!
@7Tijntje
@7Tijntje 10 месяцев назад
Hey you are that friendo from the very good planetscale vids. Subbed! You are great :)
@aarondfrancis
@aarondfrancis 10 месяцев назад
It's me! Hi! Thanks for the kind words
@techtinkererfullstack
@techtinkererfullstack 9 месяцев назад
Great Inspiration!!! I am an accountant i will start tinkering with PHP soon. Thank you :)
@aarondfrancis
@aarondfrancis 8 месяцев назад
Twins!
@k98killer
@k98killer 10 месяцев назад
Really good video, btw. I was unaware of some of these more recent developments since I've been using primarily Python since the apocalypse.
@RushOrbit
@RushOrbit 3 месяца назад
PHP has put a roof over my head, food in my stomach, and numerous backpacking adventures around the world.
@CS-si4nn
@CS-si4nn 2 месяца назад
🎉
@phoenixeveaspacio4181
@phoenixeveaspacio4181 10 месяцев назад
My man be ranting his about people’s stereotypes about PHP, and he totally deserves the attention.. kudooos for this..
@Stoney_Eagle
@Stoney_Eagle 10 месяцев назад
I realy love this video, finally PHP is getting some good light shining on it.
@LuBre
@LuBre 9 месяцев назад
Been working with PHP since 2001. I freaking LOVE it.
@nv1t
@nv1t 9 месяцев назад
coming from php3 and stopping at php5 using php, it is quite interesting to see the changes now.
Далее
PHP on the frontend! No more Javascript!
14:47
Просмотров 117 тыс.
The purest coding style, where bugs are near impossible
10:25
Спасибо Анджилишка, попил😂
00:19
PHP is the future
34:27
Просмотров 167 тыс.
How Senior Programmers ACTUALLY Write Code
13:37
Просмотров 1,4 млн
PHP 8 3 Released
11:03
Просмотров 100 тыс.
Go IS Slower Than PHP | Prime Reacts
5:22
Просмотров 73 тыс.
Laravel vs React
9:40
Просмотров 44 тыс.
Is PHP the Secret King of Code?
6:42
Просмотров 53 тыс.
Zig for Impatient Devs
9:48
Просмотров 68 тыс.
Naming Things in Code
7:25
Просмотров 2 млн
#miniphone
0:16
Просмотров 3,5 млн