پی اچ پی

نکات جزیی PHP

PHP Bits

Because our industry advances so quickly, it's far too easy for bits and pieces to fall through the cracks. Each episode in this series provides a standalone two-minute dose of PHP knowledge. Think of them as Red Bull for your brain: a rapid surge of education.

سطح متوسط 8 جلسه آموزشی 00:31:00 ساعت
01
قسمت 1

Visual Debt

Nobody talks about visual debt. It's not a thing. Yet it is. We all spend eight hours a day staring at a computer screen. Like it or not, each line of code is fighting for your brain power and energy, and we only have so much to give. Sadly, the curr...

02
قسمت 2

A Clean PHPUnit Workflow in PHPStorm

One of the most compelling features of PHPStorm relates to its PHPUnit integration. What if a single keystroke could trigger a test? And what if, anywhere in your project, you could re-trigger that very test in less than a second? How would that affe...

03
قسمت 3

Array Destructuring

Destructuring in PHP 7.1 is one of the more useful additions to the language...that you probably aren't using. If you have three minutes to spare, let me run you through a handful of use cases.

04
قسمت 4

Single-Use Traits

I was recently listening to an episode of Twenty Percent Time, where they discussed one of the recommendations in my Whip Monstrous Code into Shape series that relates to using single-use traits. In this PHP Bit, let's review the basic workflow, whil...

05
قسمت 5

Better Interfaces with Ternaries

How on Earth could the ternary operator improve my interfaces? Well, as it turns out, they can do this very thing quite easily! Choose a sensible default, and then allow for an override. It's the best of both worlds.

06
قسمت 6

Invokable Classes

PHP's magic __invoke method is a useful tool to have in your belt, even if you likely won't reach for it too often. Any time that you want to piggy back on top of a closure, you may freely substitute an invokable class in its place. Let me show you h...

07
قسمت 7

Seek Out Repeated Suffixes

A useful refactoring tip is to seek out repeated method suffixes or prefixes like a hawk. Often, this indicates a class that is begging to be extracted. Let me show you in three minutes.

08
قسمت 8

Reflect Into Functions

PHP's various reflection classes allow us to do all sorts of magical things. In fact, they're very much the backbone of Laravel's service container logic. In this lesson, we'll use the ReflectionFunction class to inspect and dynamically build up the...

دوره در حال اجرا

این دوره هنوز به پایان نرسیده است و در آینده درس های دیگری به آن افزوده خواهد شد.