Labels: decoupling

A total of 8 results were found

Interface oriented programming of contracts

Blog

This section is very simple. In fact, we have already said that when we talked about dependency injection. Let's explain it in detail. Contract definition What is a contract? Contract is the so-called interface oriented programming

Published 5 years ago by cxp1539    Views: 8060    Number of likes: 3

Application Architecture

Laravel from apprentice to craftsman

brief introduction We have learned all aspects of building well architected applications through Laravel. Next, let's go deeper into some details. In this chapter, we will discuss how to decouple

Published by Xueyuan Jun 5 years ago    Number of views: 14942    Like: 13

Directory Structure

Laravel from apprentice to craftsman

brief introduction Where should I put this class? This may be a very common problem when building applications based on frameworks. Many developers have this question because they have been taught that "model" is "database"

Published by Xueyuan Jun 5 years ago    Number of views: 35247    Like: 23

Service decoupling through events and event listeners

Laravel 5.5 Chinese Document Advanced series

brief introduction Larave events provide a simple observer mode implementation, allowing you to subscribe to and listen to events in the application. Event classes are usually stored in the app/Events directory

Published by Xueyuan Jun 6 years ago    Views: 28234    Like: 9

Chapter 5: Bending or Breaking (2)

The Way of Programmer Cultivation: From Laborer to Expert

4、 It's just a view Once you divide the program into different modules based on responsibility, you have a new problem. How do objects talk to each other at runtime? How do you manage the logical dependencies between them? Also

Published by Xueyuan Jun 7 years ago    Views: 5781    Number of likes: 0

Chapter 5: Bending or Breaking (1)

The Way of Programmer Cultivation: From Laborer to Expert

In "Revocable", we talked about the danger of irrevocable decisions. In this chapter, we will tell you how to make revocable decisions so that your code can remain flexible in the face of your uncertain world

Published by Xueyuan Jun 7 years ago    Views: 6254    Number of likes: 2

Chapter II: Ways to Focus on Results (1)

The Way of Programmer Cultivation: From Laborer to Expert

1、 Repeated hazards Every knowledge in the system must have a single, unambiguous and authoritative representation, which is the DRY principle (Don't Repeat Yourself)

Published by Xueyuan Jun 7 years ago    Views: 7143    Like: 6

New Features of Modern PHP Series (II) -- Make Good Use of Interfaces

New features and best practices of modern PHP New features

Interface is not a new feature of modern PHP, but it is very important. Learning to use interface can greatly improve our programming ability, so we should use interface as much as possible in daily development. Interface...

Published by Xueyuan Jun 8 years ago    Views: 29424    Like: 26