Desk Nook
Desk Nook
  • Видео 12
  • Просмотров 31 201
5 Necessary Design Patterns in 30 mins
This course covers the top 5 most popular design patterns in software engineering including concepts and coding examples. The patterns include Factory Method, Strategy, Adapter, Observer, and Decorator.
♨️ Recommended
--------------------------------------------------
Speed Comparison for Popular PHP Frameworks (Fastest): ruclips.net/video/Dk8YHQZ6jfY/видео.html
PHP Fibers & Asynchronous: ruclips.net/video/Db-GFBGyD4w/видео.html
PHP 8.2 Whats New: ruclips.net/video/5JW6jnNcOnw/видео.html
PHP Generators & Iterators: ruclips.net/video/dTnis2_jIPs/видео.html
🔗 Reference
--------------------------------------------------
en.wikipedia.org/wiki/Software_design_pattern
en.wikipedia.org/wiki/Factory_metho...
Просмотров: 138

Видео

Fastest Frameworks? Speed Comparison for Popular PHP Frameworks
Просмотров 5 тыс.Год назад
Performance/Speed comparison between the popular frameworks for web programming based on the minimum bootstrap cost of in the real world, PHP 8.2 📺 Recommended Top 5 Design Patterns in Software Engineering: ruclips.net/video/YQDLrHsu-Ik/видео.html PHP Fibers & Asynchronous: ruclips.net/video/Db-GFBGyD4w/видео.html PHP 8.2 Whats New: ruclips.net/video/5JW6jnNcOnw/видео.html PHP Generators & Iter...
Fastest PHP Version? PERFORMANCE comparison
Просмотров 1,7 тыс.Год назад
Which PHP version is faster and how much each one really got performance improvements? do you need to consider upgrading the PHP? check up on this video. 📺 Recommended Top 5 Design Patterns in Software Engineering: ruclips.net/video/YQDLrHsu-Ik/видео.html PHP Fibers & Asynchronous: ruclips.net/video/Db-GFBGyD4w/видео.html PHP 8.2 Whats New: ruclips.net/video/5JW6jnNcOnw/видео.html PHP Generator...
A Beginner's Guide to Design Patterns in Software Engineering
Просмотров 299Год назад
In this brief video, I introduce design patterns for beginners in software engineering. The explanation covers the concept of design patterns and highlights the reasons why developers should learn them. If you're a beginner developer looking to level-up your skills and expand your knowledge of software development, this video is for you. Don't miss it! Recommended Videos PHP 8.2 Whats New: rucl...
PHP 8.2: Is This the Update That Will Change Everything?
Просмотров 1,4 тыс.Год назад
PHP 8.2 has been released with some new features, deprecations, and changes! Let's see what's new & changed in PHP 8.2 This release contains new features, including readonly classes, null, false, and true as stand-alone types, deprecated dynamic properties, performance improvements, and more. 🔗 References PHP 8.2 Change Log: www.php.net/releases/8.2 PHP 8.2 DNF: wiki.php.net/rfc/dnf_types PHP 8...
PHP Tutorial: Generators and Iterators - Quick Guide
Просмотров 3,1 тыс.Год назад
Generators and Iterators are two powerful features of PHP and other programming languages such as Java, Python, etc. In this tutorial video, I'll be covering the Generators and Iterators. This a quick guide, I'll be covering the basics, and how they can be used to make code more efficient and even more readable. After watching this video, you'll better understand these two features and you shou...
PHP Fibers & Asynchronous Under 11 Minutes
Просмотров 14 тыс.2 года назад
This is an introduction and a quick start with Fibers. This new feature in PHP 8.1 enables lightweight and controlled concurrency in PHP. By implementing Fibers, developers can create high-performance applications. Watch this tutorial to gain an in-depth understanding and learn how to implement Fibers to optimize your PHP code. 📺 Recommended Top 5 Design Patterns in Software Engineering: ruclip...
PHP 8 TDD Tutorial | Quickstart for Test Driven Development
Просмотров 1,1 тыс.2 года назад
This is a tutorial video to get understand what is Test Driven Development, why & benefits, and to get a quick start with TDD. Other Videos: PHP Fibers & Asynchronous | Under 11 Minutes: ruclips.net/video/Db-GFBGyD4w/видео.html What Are Design Patterns: ruclips.net/video/ZdjbRT-jNDY/видео.html OPCache Benchmarks | Frameworks Comparison: ruclips.net/video/BUcxalvD92U/видео.html FatFree PHP Frame...
OPCache Benchmarks, Popular Frameworks Comparison | echo PHP
Просмотров 1,8 тыс.2 года назад
This is a performance comparison between popular frameworks with OPCache & PHP 8.0. PHP Frameworks Bench: github.com/myaaghubi/php-frameworks-bench 📺 Recommended Videos PHP Frameworks Speed Comparison 2023: ruclips.net/video/Dk8YHQZ6jfY/видео.html PHP Fibers & Asynchronous: ruclips.net/video/Db-GFBGyD4w/видео.html What Are Design Patterns: ruclips.net/video/ZdjbRT-jNDY/видео.html PHP Generators...
FatFree PHP Framework QuickStart, Performance Comparison-Popular Frameworks
Просмотров 1,6 тыс.2 года назад
This is an introduction to the PHP Fat-Free micro-framework. It's a very useful micro-framework to use. In this video, I have a performance comparison between Fat-Free and some of the popular frameworks. 📺 Some Useful Links FatFree documentation: fatfreeframework.com PHP Frameworks Bench: github.com/myaghobi/php-frameworks-bench Composer: getcomposer.org 📺 Recommended Videos PHP Frameworks Spee...

Комментарии

  • @gowork2973
    @gowork2973 Месяц назад

    please please please - add Codeigniter 3 on here as well - I think it will be much faster that CI4 - and many others

  • @mobinamahmudian2243
    @mobinamahmudian2243 4 месяца назад

    👏🏻

  • @thenightwolf224
    @thenightwolf224 4 месяца назад

    Yo Your Channel Is Amazing you Gotta make A Full Series for Design Patterns in php

  • @indrasaputra87
    @indrasaputra87 4 месяца назад

    For those who ask, what is the use of the multi-thread capability? This feature will be useful for those working on very large data or processes, such as 10 million pieces of data that need to be processed individually. for PHP is a single thread it will definitely take a very long time to process one by one, with multi threads the work will be completed much more quickly (by using CPU and RAM resources more optimally). but I'm tired of researching PHP, it seems PHP is not designed for true multi-threading. I've moved to C#, a real multithreading language and don't want to go back 😅 thank you for the video , mate!

  • @This-Is-The-End
    @This-Is-The-End 5 месяцев назад

    Laravel! 😊😊😂😂😊😊 PS: Thank you for your work.

  • @johnsteve1276
    @johnsteve1276 6 месяцев назад

    thank you so much, brother!

  • @rhtservicestech
    @rhtservicestech 6 месяцев назад

    For Lavarel to be the most popular, it has some of the worst performance based on the graphs shown.

  • @rafageist
    @rafageist 6 месяцев назад

    Long live pure PHP!

  • @JanezNovak-fk4qr
    @JanezNovak-fk4qr 8 месяцев назад

    Nice. Next time add Trongate framework. It’s mentioned ont the website that is fast.

  • @tanjakahlo5255
    @tanjakahlo5255 8 месяцев назад

    Test Trongate PHP. Thx.

  • @aurelian3401
    @aurelian3401 8 месяцев назад

    Let's test Nicotine Framework for PHP & MySQL!

  • @snithfferx
    @snithfferx 8 месяцев назад

    Un poco de volumen no vendría nada mal.

  • @AllanSavolainen
    @AllanSavolainen 9 месяцев назад

    I would love to see similar test but with using pure php + pure sql vs frameworks and ORM

    • @hahabanero
      @hahabanero 3 месяца назад

      Lol, why?

    • @AllanSavolainen
      @AllanSavolainen 3 месяца назад

      @@hahabanero So that people would see that those frameworks make most things orders of magnitude slower. And don't get me started with ORMs and many-to-many relations...

  • @vinniv6806
    @vinniv6806 10 месяцев назад

    Laravel is so shitty nowadays....

  • @bgeneto
    @bgeneto Год назад

    I really like Codeigniter a lot! But unfortunately, since version 4, it has been bloating and losing performance. In many benchmarks, it's shown to be lagging behind only Laravel :-(

  • @midophriya3657
    @midophriya3657 Год назад

    phalcon, trongate?

  • @ivan.melendez
    @ivan.melendez Год назад

    missing to add KumbiaPHP :(

  • @MelroyvandenBerg
    @MelroyvandenBerg Год назад

    Thank you so much! This is very valuable information, keep doing this great work & benchmarks!

  • @RaineWilder
    @RaineWilder Год назад

    So which one is fastest, and has smallest footprint? Pure php?

    • @DeskNook
      @DeskNook Год назад

      Smaller frameworks has lower footprint, for the case, micro-frameworks are better considering OPCache On, between frameworks Symfony is faster and between micro-frameworks leaf & fatfree are in the same range however for micro-scale projects I prefer pure php

  • @DeskNook
    @DeskNook Год назад

    Like & Subscribe Like & Subscribe Like & Subscribe

  • @naranyala_dev
    @naranyala_dev Год назад

    can you add leaf php in benchmark?

    • @DeskNook
      @DeskNook Год назад

      Check out ruclips.net/video/Dk8YHQZ6jfY/видео.html

  • @TariqSajid
    @TariqSajid Год назад

    can you please benchmark fomo framework and laravel with octane ?

    • @DeskNook
      @DeskNook Год назад

      For a new framework 1:00 make sure to add it in the repo and ask for PR, asyn base stuff is out of the scope for the library

  • @terryweb
    @terryweb Год назад

    Why isn't Leaf more popular? It's one of the best PHP frameworks out there, and this benchmark proves it. It can even work with Swoole.

    • @DeskNook
      @DeskNook Год назад

      The competition between frameworks is high and speed is one of the factors however it wins in this comparison

    • @Trance_Code
      @Trance_Code Год назад

      @@DeskNook Can you try a new test with Laravel Octane and Swoole, this can give a really best performance, and test with pure php of course, this is really better than OPCache...

    • @maxymajzr
      @maxymajzr Год назад

      @@Trance_Code it's not better, it's also ridden with problems and the apparent speedup is negligible as you get better results with PHP-FPM without sideffects that come with Swoole and Octane. Octane is one big, big problem and shouldn't be used by serious apps.

  • @truthteachers
    @truthteachers Год назад

    I always knew Laravel is an overloaded mess. The developers became greedy and. integrated too much rubbish into it. Hit a bug and Laravel will send you to the loony bin, especially newbies. My advise: stay away from it.

    • @DeskNook
      @DeskNook Год назад

      Laravel has its pros and cons and one of the cons is the performance

    • @truthteachers
      @truthteachers Год назад

      @@DeskNook That is why o decided to create my own framework using pure php and basic libraries.

    • @truthteachers
      @truthteachers Год назад

      Yes we all should do that. Use Laravel only as template model. Only then innovation and intelligence begins.

    • @SodalisUK
      @SodalisUK 9 месяцев назад

      As with all benchmarks, the relative performance depends heavily on the functionality you use in your benchmark code. If you are selecting a framework to do a "hello world" application, the best framework is the "none" framework. It is startlingly fast. It loads only 1 file. But if you're benchmark includes the sort of functionality that Frameworks provide, like ORM usage, html templates, data manipulation, the results will be different. Also, why would you ever run a complex framework with opcache off? Any benchmark with opcache off is irrelevant. That said, frameworks trend to preliad the entire framework and make zero effort to lazyload only the parts of the framework and application that are actually used. Doing this would be very beneficial to performance.

    • @LtMatrix1
      @LtMatrix1 8 месяцев назад

      And this will scale with biger apps. As creator of PHP said all freimworks suck and as PHP progress this will be more and more true to the point of switching from framework to custom php solutions as it will yield much more stability, security and performace

  • @sliceem88
    @sliceem88 Год назад

    Nice one ! You did massive work !! Maybe you could also compare Async Frameworks ?

    • @DeskNook
      @DeskNook Год назад

      Thanks buddy, not sure about it actually its challenging to have fair benchmarks on PHP Async libs

  • @amirhosseinsafari1662
    @amirhosseinsafari1662 Год назад

    Great work, well explained. Thank you for creating this video about design patterns. That is one of concepts that I was looking forward to know about. I appreciate how you simply explained it, looking forward to see your other videos about some of design patterns.

    • @DeskNook
      @DeskNook Год назад

      Glad to hear that Planned for that video however it's not the next one, make sure to hit the bell button to get notified of upcoming videos

  • @GonzaloMassa
    @GonzaloMassa Год назад

    So ArrayIterator won't check if current() is using a valid key, but your MyIterator class didn't check that and it worked with a foreach loop... what am I missing?

    • @DeskNook
      @DeskNook Год назад

      For the current() function it will validate the current position of the key too For MyIterator which is an implementation of the Iterator interface, validity gonna check by valid() method, the same thing for ArrayIterator

  • @GonzaloMassa
    @GonzaloMassa Год назад

    You don't need a for loop if you want to keep track of the index, you can just do foreach($files as $index => $file)

  • @NedumEze
    @NedumEze Год назад

    Thanks a million for the Tutorial. It was fun. But may require watching repeatedly a number of times, to enable internalization. But, please zoom in a bit more to help those of us with aging eyesight.

  • @mobinamahmudian4257
    @mobinamahmudian4257 Год назад

    👏🏻ساعت چارونیم خوابم نبرده پناه اوردم ب ویدیوهای ترسناک پی اچ پی

  • @daviddavid-zl6gw
    @daviddavid-zl6gw Год назад

    I apologize for the inconvenience, I have another question, you did not test the execution time by a normal loop script and by Fiber, to notice that it is faster than normal

    • @DeskNook
      @DeskNook Год назад

      Its not faster than normal, thats not the point about Fibers. Check out 0:35

    • @daviddavid-zl6gw
      @daviddavid-zl6gw Год назад

      @@DeskNook I didn't really understand what is the purpose of using Fiber, I tested your code in both cases the case with normal loop and the case with Fiber, the execution time is the same 0.003s. Please can you explain to me even in a line what is the best to use fiber (Do you mean that it is available for making a multitasking framework) do you know a multitasking framework that uses fiber, instead of using pcntl fork, I want to execute the same code in parallel on several hundreds of data, each processing takes 3s to finish, I want everything to finish in 3 sec, not in 3s X 100 ? Thank u.

    • @DeskNook
      @DeskNook Год назад

      ​@@daviddavid-zl6gw As a short answer to your questions, Fibers are good for non-blocking stuff. I highly recommend you watch the video again. That example in the video is just about how to use Fibers, neither async nor performance. In case, you may use pthreads via cli mode too.

  • @SachinSingh-vy7pm
    @SachinSingh-vy7pm Год назад

    ruclips.net/video/3C1S84sTEwQ/видео.html

  • @sliceem88
    @sliceem88 Год назад

    Curios in performance !

  • @nathanielsabanski
    @nathanielsabanski Год назад

    file_put_contents() is blocking, this won't work unfortunately.

    • @DeskNook
      @DeskNook Год назад

      Thats blocking so our files are created in order from a to z, actually the code works fine with file_put_content however it's not optimized for async

  • @karthikhebbar4485
    @karthikhebbar4485 Год назад

    at 6:02 , how did the $myIterator object started behaving like an array? am i missing something? please shade light on this.

    • @DeskNook
      @DeskNook Год назад

      Check out 2:21 (Example: Iterator OOP)

  • @vitaliejalbu8206
    @vitaliejalbu8206 Год назад

    so basically yii2 is almost on the 2nd-3rd place?

    • @DeskNook
      @DeskNook Год назад

      In that diagram, yii2 has won the first place among the frameworks, and the 3rd place among microframeworks But thats updated, check out the link in the description

  • @gillesashley9314
    @gillesashley9314 Год назад

    But what do you think about the performance difference between native PHP vs frameworks?

    • @DeskNook
      @DeskNook Год назад

      In the updated version of that chart, pure php is about 52 times faster than laravel 9.1 for a simple hello world github.com/myaghobi/PHP-Frameworks-Bench#results-2022522

    • @gillesashley9314
      @gillesashley9314 Год назад

      @@DeskNook Oh Wooohhooo. 52 times? That serious.

    • @DeskNook
      @DeskNook Год назад

      @@gillesashley9314 Yes it is, however, this is just for a simple hello world so for a full project the speed rate should be different

    • @gillesashley9314
      @gillesashley9314 Год назад

      @@DeskNook Well I still believe pure PHP would be faster than laravel in huge projects. There are lots of hooks constantly been called per every request, and that is the main weakness of frameworks. I think Rasmus Lerdorf explained something like that. Well, Laravel's performance can be super charged with Octane though, so it's still a great framework.

  • @gillesashley9314
    @gillesashley9314 Год назад

    Never knew Phalcon was that fast.

    • @DeskNook
      @DeskNook Год назад

      They made it via C just like the PHP so its fast

  • @preeper_
    @preeper_ Год назад

    greate vid!

  • @sliceem88
    @sliceem88 Год назад

    Your are back ! Good to see you !

    • @DeskNook
      @DeskNook Год назад

      Thanks, I'm a bit slow for videos but always around

  • @DeskNook
    @DeskNook Год назад

    Here’s the GitHub repo containing the examples (source code) from this video: github.com/myaghobi/examples-generators-iterators

  • @mobinamahmudian2243
    @mobinamahmudian2243 Год назад

    💙awli

  • @mobinamahmudian2243
    @mobinamahmudian2243 Год назад

    seda ghashng😂

  • @issamjaafari5519
    @issamjaafari5519 Год назад

    Great video, but I didnot get the idea of this function

    • @DeskNook
      @DeskNook Год назад

      The Fiber is an easy way to have async in PHP

    • @issamjaafari5519
      @issamjaafari5519 Год назад

      @@DeskNook keep it up, great way to explain, need more videos for php 8.2

    • @DeskNook
      @DeskNook Год назад

      @@issamjaafari5519 Thanks, sure

  • @kubaleman3440
    @kubaleman3440 2 года назад

    still dont understand what thsi featreu can give me in any project

    • @DeskNook
      @DeskNook 2 года назад

      There is not use for fibers in usual projects, its for low level programming better for async purpose

    • @smtkumar007
      @smtkumar007 4 месяца назад

      i used to work in both node and php , for web development there is hardly any need of aysnc code , cause i found myself using aysnc await always for thing to work on node as its async by default , while php is sync by nature which is mostly u will be needing if working on web devlopment. But if there are some tasks where IO operation needs to be performed then i can see this beign usefull , as now i use to call python or c# to process the data , now i guess that will change. Hard to digest that it took them decades to put this in php ecosystem.

  • @PQUdotCH
    @PQUdotCH 2 года назад

    Great video showing actual TDD, thanks

  • @ZAcharyIndy
    @ZAcharyIndy 2 года назад

    Thanks

  • @DeskNook
    @DeskNook 2 года назад

    Subscribe Subscribe Subscribe ...

    • @daviddavid-zl6gw
      @daviddavid-zl6gw Год назад

      Hello why fiber is not activated for php-v8.1 in debian 11, how activate fibers the extension isn't loaded, thank u

    • @DeskNook
      @DeskNook Год назад

      @@daviddavid-zl6gw I'm using ubuntu 22 which is a debian based distribution with the latest update of php8.1 & php8.2. Fibers work fine with both, so for your issue, I suggest to try with a clean install of php

    • @daviddavid-zl6gw
      @daviddavid-zl6gw Год назад

      @@DeskNook Thanks for your reply, it's good, "fiber" it works very well, the problem is in my code I used an old script which uses fiber->create instead of fiber->strat() I want to ask you a question that can help me, which use is the most efficient in parallel execution time: to use fiber or pcntl_fork. Thank you.

    • @DeskNook
      @DeskNook Год назад

      @@daviddavid-zl6gw pcntl_fork is more efficient than Fiber, however I prefer to use fibers or pthreads

  • @kadbano.m8420
    @kadbano.m8420 2 года назад

    It was great I used

  • @sliceem88
    @sliceem88 2 года назад

    Hey ! nice vid. Maybe you could use some kind library swool or ReactPhp or Amphp. Show differences and usage?

    • @DeskNook
      @DeskNook 2 года назад

      Thanks buddy. For Amp/ReachPHP the difference is in the scope, both are written by PHP and already updated with Fibers. Swoole is an extension, good in performance and features.

    • @sliceem88
      @sliceem88 2 года назад

      @@DeskNook yes, i've seen comparison between nodeJs and swool. In ReactPHP there were yeald hell some time ago, but in AmPhp there where sort of promises already. Who is faster and yeasy to implement, in your opinione?

    • @DeskNook
      @DeskNook 2 года назад

      I remember an old benchmark that ReactPHP got a higher speed factor than Amp, for now there shouldn't be much difference between these two. I prefer React, Amp more readable with Auryn & Coroutines. I would choose one if it wasn't a cool thing for me and go with another one, this is my strategy :) Have it in mind, you can use Amp as an event loop for React (means you can use both)