کارگاه Open-Closed
Open-Closed Workshop
In this workshop, we'll focus exclusively on the open-closed principle (the O in SOLID). Using real-life code, line by line, we'll refactor a confusing class into something far more manageable and extendable. Once finished, we'll have gained the luxury of introducing new functionality, not by modifying existing code, but by instead writing a new class.
قسمتهای دوره
آنچه بازنویسی میکنیم
11m 36sExplore a real-life refactoring example using Laracasts code to apply the open-closed principle and unlock powerful improvements in this engaging tutorial.
بازنویسیهای آسان
15m 52sStart refactoring your Query class with the squint test to spot quick improvements like indentation and method names in this friendly Laracasts tutorial.
شرطها را حذف کنید و Pipeline را بپذیرید
9m 2sDiscover how to simplify your code by removing conditionals and using the pipeline pattern in this clear, friendly Laracasts tutorial.
آنچه تغییر میکند را به یک Service Provider استخراج کنید
6m 52sLearn how to extract changes from your Query class into a service provider, making future updates easy without modifying core code in this Laracasts tutorial.
بحث در مورد مسئولیت
4m 58sReflect on responsibility and awareness in coding with this thoughtful Laracasts episode, helping you write cleaner, more maintainable classes and components.




