مشاهده همه دوره‌ها
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!

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

تصویر بندانگشتی قوانین ساده برای کد ساده‌تر
قوانین ساده برای کد ساده‌تر

با Jeffrey Way

  • 5 قسمت
  • متوسط
  • Techniques
تصویر بندانگشتی بازی با PHP
بازی با PHP

با Andre Madarang

  • 8 قسمت
  • متوسط
  • Techniques
تصویر بندانگشتی حرکت برای وب
حرکت برای وب

با Simon Vrachliotis

  • 43 قسمت
  • متوسط
  • Techniques
تصویر بندانگشتی تکه‌های PHP
تکه‌های PHP

با Jeffrey Way

  • 8 قسمت
  • متوسط
  • Languages
تصویر بندانگشتی یک جمع‌کننده بازی ویدیویی بسازید
یک جمع‌کننده بازی ویدیویی بسازید

با Andre Madarang

  • 21 قسمت
  • متوسط
  • Frameworks

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