مشاهده همه دوره‌ها
Techniquesمتوسط10 قسمت

۱۰ تکنیک برای کد تمیزتر

10 Techniques for Cleaner Code

We've all written code that misses the mark. Sure, it works, but, still, you're left with the feeling that you've missed something. The difficult part, unfortunately, is recognizing what that "something" is.

In this series, we'll review ten techniques, one per episode, to improve the clarity of your PHP code.

قسمت‌های دوره

بیمه بازنویسی

13m 4s

Use tests as refactoring insurance — safely tweak and improve code, catch mistakes early, and refactor with confidence.

با اطمینان بازی کنید

17m 9s

Use tests to experiment confidently: make small tweaks, run them, and iteratively improve your code without fear.

برای جزئیات کوچک عرق بریزید

13m 19s

Improve your codebase integrity by sweating small details - indentation, naming, and clean conditionals - to prevent bugs and keep code readable.

با کنترلرهای خود سخت‌گیر باشید

16m 1s

Keep controllers clean by sticking to seven RESTful actions—prevent bloated endpoints, improve clarity, and create a new controller when needed.

یک سطح پایین‌تر بیایید

23m 2s

Refactor controller logic into the model: a friendly walkthrough of a problematic TeamMembersController (Technique #5) to simplify and test code.

یک جایگزین برای اعداد جادویی

3m 59s

Learn how to replace confusing magic numbers with clear, named constants. Improve your code’s readability and maintainability with this simple technique!

از پرچم‌ها اجتناب کنید

5m 55s

Learn why avoiding flags in your public interface leads to cleaner code. Discover how creating new methods can simplify functionality and improve maintainability!

الگوهای Strategy و Factory

9m 17s

Discover how to clean up messy controllers by combining Strategy and Factory patterns. Learn to organize code for better maintainability and clarity in Laravel apps!

UseCaseهای کپسوله‌شده

5m 26s

Learn how to create encapsulated UseCase classes that represent key user actions, organizing all steps cleanly to build maintainable, clear Laravel apps.

نام کلاس‌های خود را عاقلانه انتخاب کنید

6m 55s

Learn why choosing clear, thoughtful class names matters and how it impacts your methods. Improve your code quality with this essential naming technique!

یادگیری را ادامه دهید

تصویر بندانگشتی یک انجمن با Laravel بسازید
یک انجمن با Laravel بسازید

با Luke Downing

  • 51 قسمت
  • حرفه‌ای
  • Techniques
تصویر بندانگشتی تأملاتی در مورد کد
تأملاتی در مورد کد

با Jeffrey Way

  • 4 قسمت
  • حرفه‌ای
  • Techniques
تصویر بندانگشتی نورافکن مهمان
نورافکن مهمان

با Jeffrey Way

  • 13 قسمت
  • متوسط
  • Techniques
تصویر بندانگشتی تسلط بر مجوزها در Laravel
تسلط بر مجوزها در Laravel

با Jeremy McPeak

  • 17 قسمت
  • حرفه‌ای
  • Techniques
تصویر بندانگشتی Visual Studio Code برای توسعه‌دهندگان PHP
Visual Studio Code برای توسعه‌دهندگان PHP

با Jeffrey Way

  • 18 قسمت
  • متوسط
  • Tooling

دوست دارید گاهی خبرهای Laracasts را ایمیل کنیم؟