Nikita Popov / What’s new in PHP 8.0? [eng]

  Рет қаралды 16,077

fwdays

fwdays

Күн бұрын

Пікірлер
@rodelias9378
@rodelias9378 4 жыл бұрын
Nice talk. Thanks a lot, Nikita, for all your amazing work with PHP.
@karol.sobanski
@karol.sobanski 4 жыл бұрын
19:58 this is not a minor feature! This soooo convinient, when you now actually don't have to commit additional meaningless line to each change you make on your parameters. Thank you!
@eugenesidelnyk4600
@eugenesidelnyk4600 4 жыл бұрын
What soft do you use to create presentations?
@serhiicho
@serhiicho 4 жыл бұрын
@@User('string') seems nicer than But it's all preferences, whatever these guys decide we will not complain Big Thanks to Nikita for his priceless work for open source
@maxicx75v
@maxicx75v 4 жыл бұрын
One of these may be significantly harder to implement than the other.
@johnrcornell
@johnrcornell 4 жыл бұрын
First they pick a horrible namespace separator based on a rushed 5-minute IRC conversation and now this hideous attribute syntax. It’s like they’re actively trying to ruin the aesthetics of the language as much as possible. Does the core team not realize that people have to stare at this stuff all day?
@fixmedev521
@fixmedev521 4 жыл бұрын
Спасибо
@nasragiel
@nasragiel 4 жыл бұрын
The "something or false" "Pattern" should be removed, not supported... :(
@maxicx75v
@maxicx75v 4 жыл бұрын
I agree that it's bad coding, but there are built-ins and lots of custom code out there that do that. Removing it would be a BC break.
@nasragiel
@nasragiel 4 жыл бұрын
@@maxicx75v it's a major version it would be totally OK and IMHO urgently needed to get rid of the past mistakes. Best solution would be to provide consistent named classes for all the old stuff or even better create proper classes to deal with strings or arrays for example and keep the mistakes. However, I would prefer to get the API cleaned up.
@angeljo6020
@angeljo6020 4 жыл бұрын
can we recover from fatal errors?
@buggaman2009
@buggaman2009 4 жыл бұрын
Anyway to make php asynchronous
@iamise
@iamise 4 жыл бұрын
swoole
@eugenesidelnyk4600
@eugenesidelnyk4600 4 жыл бұрын
It would be a great thing to implement variadic return type. For example, if we had such function: _function calculateResult(): int_ _{_ _return 123;_ _}_ And we want to extend functionality and return some additional information without breaking working code: _function calculateResult(): int..._ _{_ _return 123, 256; // or ...[123, 256]_ _}_ Thus, when we call _calculateResult()_ : _$a = calculateResult(); // 123_ _$a, $b = calculateReult(); // a = 123, b = 256_ And also look at medium.com/@liamhammett/php-wishlist-typing-9f16851c0258 especially where return arrays.
@kristun216
@kristun216 4 жыл бұрын
Can't you already do this?
@eugenesidelnyk4600
@eugenesidelnyk4600 4 жыл бұрын
@@kristun216 i don't think so
@kristun216
@kristun216 4 жыл бұрын
@@eugenesidelnyk4600 iirc when you return an array you can deconstruct it as an array in the return variable. function foo(){ return [123, 456]; } [$a, $b] = foo(); // a = 123, b = 456 It's not as pretty as in python or JS but it works
@eugenesidelnyk4600
@eugenesidelnyk4600 4 жыл бұрын
@@kristun216 i know this, but yeah, if there are dozens of code expecting one value returned, but we have to return also another, all these places have to be changed
@roman-romadin
@roman-romadin 4 жыл бұрын
Thank you. Please, say what soft do you use record video.
@ALZlper
@ALZlper 4 жыл бұрын
Try OBS
@Cognitoman
@Cognitoman 4 жыл бұрын
I like php, but there is a lot weird ways of doing things, and unconsisted built it function . I hate how booleans return 0 and 1s... null value shows ups empty string when printed, the arguments for built in functions order of parameters changes as well as naming convention. I hate how doing callbacks looks dirty.
@AbhinavKulshreshtha
@AbhinavKulshreshtha 3 жыл бұрын
See "25 years of PHP by Rasmus Lerdorf", He explains the logic behind these what we call inconsistency, With named parameter, these should now not be problem anymore.
@kasedsoftsilicon3268
@kasedsoftsilicon3268 4 жыл бұрын
Thank you for knowledge so good i like this video from the PHP 8
@djanthony6662
@djanthony6662 4 жыл бұрын
You are legend.
@ando-
@ando- 4 жыл бұрын
If you are here for infos about generics head over to 44:43
@Cognitoman
@Cognitoman 4 жыл бұрын
Php never will get generics lol
@arunabraham9382
@arunabraham9382 4 жыл бұрын
@@Cognitoman Even go dont have generics
@Cognitoman
@Cognitoman 4 жыл бұрын
@@arunabraham9382 yeah thats not good
@razt3757
@razt3757 4 жыл бұрын
24:56 fucking finally ffs
@paulmimicry9147
@paulmimicry9147 4 жыл бұрын
its like java beans ahhaha or java annotations :D
Sebastian Bergmann / Avoiding Mockageddon [eng]
51:14
fwdays
Рет қаралды 3,2 М.
JIT в PHP 8: Просто о сложном
19:26
Andrey Lozunov - Fullstack Web Developer
Рет қаралды 14 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Enrico Zimuel - Develop microservices in PHP
46:49
PHP Barcelona
Рет қаралды 19 М.
What's new in PHP 8.0
46:09
The Codeholic
Рет қаралды 101 М.
Nikita Popov and Nikolas Grekas: Symfony PHP 8 Compatibility
16:40
Nikita Popov - PHP Performance Trivia
44:20
PHP Barcelona
Рет қаралды 13 М.
Готовим Middleware в PHP
24:51
loftblog
Рет қаралды 10 М.
Demystifying Dependency Injection Containers by Kai Sassnowski
26:46
New Features in PHP 8.0
5:49
PHP Developers TV
Рет қаралды 13 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН