Комментарии:
Although not explicitly stated, what the 'generator' has to do is 'remember ' the complete current 'state' of the object it is 'part of' so that it can be 'restarted' by the 'next()' function. Obviously, this is the reason for the 'reduced' memory usage.
It also allows for some 'interesting' coding techniques such as using 'co-routines' in a single PHP execution.
'Generators' are a very powerful construct indeed. I was surprised to see them in PHP. I agree that most people will use them as shown here.
Your explanations are very good. thank you. Appreciated.
Awesome 👏 thanks bro ❤
ОтветитьThanks for creating these tutorials. They are awesome! When it loops and yields the POD statement in Ticket.php, does it make a database query call for each record?
ОтветитьThis is the best PHP course ever. Thanks a million!
ОтветитьI do not know how but this video I just saw once and I understood every word that you have said, It is beacuse how you explaing. The greatest coach the PHP has ever seen!!!!
ОтветитьNice Explanation Gio!!
ОтветитьAwesome explanation
Ответитьkindly explain how construct method in model class access app::db without using app class in model class,
Ответитьmy page showing out of memory error even using generators, can you explain why?
ОтветитьThis is impressive, I learned a lot in this video
Ответитьyou rocks
ОтветитьI have many years of experience with PHP but was still always confused about Generator until I watched this video. Thank you <3
ОтветитьCool
ОтветитьAs an idea, It would be awesome to hear something about DDD implementation with Laravel or design patterns that you commonly use. But it's already a great job! It's a great course. Thank you very much.
ОтветитьI've watched dozens of these PHP series and are they definitely are the best out there! Very concise and comprehensive. Thanks! P.S. 20+ years in programming.
ОтветитьThanks, your tutorials are always well detailed
Ответитьfor($i = 0 ; $i < 1000;$i++){yield "thank you for this lesson"}
ОтветитьLove you! Perfect videos!
ОтветитьI love your video
ОтветитьLike all video's I've watched in this series, it has been very enlightening and useful. Excellent content. The speed of it is high, but I can pausing and go back, where needed. I have programmed in php for a while, but not much in OOP and this course offers many subjects that I still wanted to learn and not yet have used or understood. It is the best and most complete course that I've found for php.
Some sideline reactions that pop up:
When you state that it isn't production ready because of edge cases and such... and I've heard that disclaimer before ... will the course get students to a point solutions can be used in production? It would be nice to at least know how to get solutions to that point.
I would like this grows to something full stack including js or react, because even WordPress is expanding in that direction more and more. A second course that adds that would be nice too.
In the first part of the course I learned about the DIRECTORY_SEPARATOR constant, but I have never seen you used that to build paths. Is that in practice a redundant constant that is only used in the basic lessons?
This video actually does an excellent job explaining the keyword yield! Thank you!!
ОтветитьAmazing explanation . Thanks a lot.
ОтветитьGreat stuff! Like over the top - best I've ever seen! Go on!
ОтветитьBrilliant explanation, thank you very much!
ОтветитьThanks again.
ОтветитьWent through again while practicing it. Just beautiful. I have a question that I'm probably asking because I'm considerably new to programing but.. why would one want to or need to rewind an iteration/generator?
ОтветитьAgain, another very valuable lesson that I would have to watch again. Thanks alot Gio.
ОтветитьWhat fonts are you using they are great?
Speciall the joined signs.
was great hear how do you read the text
ОтветитьThis was very helpful, I've liked and subscribed !
ОтветитьReally nice tutorial. Thanks a lot
ОтветитьThank you Gio for the great explaination and the efforts you put
ОтветитьThankyou sir 🙏🙏
ОтветитьLet me iterate again 🤣👍 Great explanation of generator and very clear, very similar of Python and Javascript.
ОтветитьThank you so much Gio. all of your tutorials are awesome and really helpful. waiting for more tutorials from you.
Is it possible to have more video about advanced laravel?
Thanks
Nice tutorial. I hope you also make one for PHP fiber
ОтветитьGreat explanation!
ОтветитьYour course is simply the best php course, thank you for your efforts
ОтветитьWho knows PHP better than creators of course ma man Gio )) Gio tell honestly you know Python as well as PHP? I won't believe you not.
ОтветитьThank you again for such a beautiful explanation for everything you teach ♥ ♥ ♥ ♥ ♥
Ответитьnice
Ответить”Let me reiterate”
Best NPI ever. 😂
🥰 best tutorial and teacher i had seen The great Gio
ОтветитьVery helpful and well explained! Thank you!
ОтветитьProfissional as always.
Is it possible to use generators for large video files to stream them?
Great job
ОтветитьWhats the difference between generators and coroutines, because they seem very similar?
ОтветитьThank you again for such a beautiful explanation for everything you teach ♥ ♥ ♥ ♥ ♥
ОтветитьFinally bro you posted :D
Ответить