클린 아키텍처 인 PHP
클린 아키텍처 인 PHP
책 소개
처음엔 개발 속도도 빠르고 잘 진행되는 것 같았는데, 언젠가부터 진도가 안나간다. 아주 간단한 기능 하나 추가하는데도 하세월이 걸린다. 건드리지도 않았는데 전혀 관련없는 코드에서 버그가 난다. 테스트를 작성할 시간 같은건 애초에 존재하지도 않았다. 어쨋든 지금은 다 깨져서 옴짝달싹 못하게 되버렸다.
이쯤되면 즐거웠던 프로그래밍이 재미없는 일이 되버린다.
애플리케이션의 구조를 잘 잡는게 중요하다. 방향을 잘못잡으면 나중에 악몽에 시달리게되고, 새로운 요구사항에 맞게 애플리케이션을 리팩토링하기가 거의 불가능해진다. 비록 이 책에서 소개하는 방법이 애플리케이션을 개발하는 유일무이한 방법은 아니지만 다음과 같은 특징을 갖도록 개발할 수 있게 도와줄 것이다.
- 테스트 가능한
- 리팩토링 가능한
- 작업하기 쉬운
- 유지보수하기 쉬운
이 책은 엉클 밥이 제시한 클린 아키텍처가 무엇인지, PHP에선 이를 어떻게 구현할 수 있는지 소개한다. 뿐만 아니라 SOLID의 개념, 다양한 디자인 패턴과 아키텍처도 함께 설명한다.
Table of Contents
-
-
소개
- 구성
- 저자
- 코딩 스타일에 대해
-
소개
-
코드가 갖는 문제
-
좋은 코드 작성하기는 어렵다
- 나쁜 코드 쓰기는 쉽다
- 어떤 것도 테스트 할 수 없다
- 바꾸면 다 망가진다
- 프레임워크에 살고 프레임워크에 죽는다
- 모든 라이브러리를 사용하고 싶다
- 좋은 코드 쓰기
-
아키텍처란 무엇인가?
- 아키텍처는 어떻게 생겼는가?
- 소프트웨어 레이어
- 나쁜 아키텍처의 사례
- 나쁜 아키텍처의 비용
-
우리의 적 커플링
- 스파게티 커플링
- 왜 커플링이 적인가?
- 어떻게 하면 커플링을 줄일 수 있을까?
-
좋은 코드 작성하기는 어렵다
-
디커플링 툴박스
-
디자인 패턴 기초
- 팩토리 패턴 (The Factory Patterns)
- 리포지토리 패턴
- 어댑터 패턴
- 전략 패턴
- 디자인 패턴 더 배우기
-
SOLID 디자인 원칙
- 단일 책임 원칙
- 개방/폐쇄 원칙
- 리스코프 치환 원칙
- 인터페이스 분리 원칙
- 의존성 역전 원칙
- SOLID 원칙 적용
-
의존성 주입
- 제어의 역전
- 의존성 주입은 언제 쓰는가
- 많은 의존성 다루기
- 우리는 여전히 커플링 되어 있는가?
-
인터페이스로 계약 작성하기
- PHP에서의 인터페이스
- 인터페이스를 타입 힌트로 사용하기
- 인터페이스를 계약으로 사용하기
- 제삼자 코드를 계약을 따르게 만들기
-
어댑터로 추상화하기
- 어댑터 세팅하기
- 이게 어떻게 도움이 되는가?
-
디자인 패턴 기초
-
클린 아키텍처
-
MVC, 그리고 MVC의 한계
- 다이어그램으로 보는 MVC
- MVC 구성요소
- 라우팅
- MVC만으론 충분하지 않다
- 비만 모델
- 모든 것을 위한 더 많은 레이어!
-
클린 아키텍처
- 클린 아키텍처
- 양파 아키텍처
-
프레임워크 독립성
- 프레임워크의 문제
- 프레임워크 독립성
- 손이 많이 간다
-
데이터베이스 독립성
- 도메인 모델
- 도메인 서비스
- 데이터베이스 인프라스트럭쳐 / 영속성
- 코드 조직화하기
- 요약
-
외부 기관 독립성
- 인터페이스, 어댑터, 의존성 주입 사용하기
- 이득
-
MVC, 그리고 MVC의 한계
-
클린 아키텍처 사례 연구
-
과금 시스템
- 애플리케이션 워크플로우
- 사전준비
-
도메인 구축하기
- 프로젝트 세팅하기
- 엔티티 만들기
- 도메인 서비스
- 요약
-
젠드 프레임워크 2 준비
- 컴포저로 설치하기
- 스켈레톤 지우기
- 데이터베이스 세팅하기
- 테이블 게이트웨이 팩토리
- 요약
-
젠드 프레임워크 2로 애플리케이션 만들기
- 고객 관리
- 주문 관리
- 송장 관리
-
독트린 2
- 영속성 레이어 재구축하기
- 독트린 기반 레파지토리 만들기
- 엔티티 맵핑
- Doctrine과 젠드 프레임워크 통합하기
- 새 레파지토리 주입하기
- 수화기 업데이트
- 요약
-
라라벨로 전환하기
- 라라벨 세팅하기
- 독트린 설정하기
- 대시보드 세팅
- 고객 관리
- 주문 관리
- 송장 관리
- 다음 단계
- 요약
-
과금 시스템
- Notes
Authors have earned$10,261,184writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.
Learn more about writing on Leanpub
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Top Books
C++20
Rainer GrimmC++20 is the next big C++ standard after C++11. As C++11 did it, C++20 changes the way we program modern C++. This change is, in particular, due to the big four of C++20: ranges, coroutines, concepts, and modules.
500 QUIZ MMG COMMENTATI
ALS Medicina Generale500 Quiz degli ULTIMI Concorsi di Medicina Generale (2014/2016/2017/2018/2019)
Riassunti e suddivisi per area con Griglia risposte vuota e Griglia risposte esatte Ministeriale
Commentati con link alla fonte per approfondimento e ausilio allo studio
R Programming for Data Science
Roger D. PengThis book brings the fundamentals of R programming to you, using the same material developed as part of the industry-leading Johns Hopkins Data Science Specialization. The skills taught in this book will lay the foundation for you to begin your journey learning data science. Printed copies of this book are available through Lulu.
Ansible for DevOps
Jeff GeerlingAnsible is a simple, but powerful, server and configuration management tool. Learn to use Ansible effectively, whether you manage one server—or thousands.
Atomic Kotlin
Bruce Eckel and Svetlana IsakovaFor both beginning and experienced programmers! From the author of the multi-award-winning Thinking in C++ and Thinking in Java together with a member of the Kotlin language team comes a book that breaks the concepts into small, easy-to-digest "atoms," along with exercises supported by hints and solutions directly inside IntelliJ IDEA!
Continuous Delivery Pipelines
Dave FarleyThis practical handbook provides a step-by-step guide for you to get the best continuous delivery pipeline for your software.
C++ Best Practices
Jason TurnerLevel up your C++, get the tools working for you, eliminate common problems, and move on to more exciting things!
Visualise, document and explore your software architecture
Simon BrownA short guide to visualising, documenting and exploring your software architecture.
Discrete Mathematics for Computer Science
Alexander Shen, Alexander S. Kulikov, Vladimir Podolskii, and Aleksandr GolovnevThis book supplements the DM for CS Specialization at Coursera and contains many interactive puzzles, autograded quizzes, and code snippets. They are intended to help you to discover important ideas in discrete mathematics on your own. By purchasing the book, you will get all updates of the book free of charge when they are released.
Functional Design and Architecture
Alexander GraninSoftware Design in Functional Programming, Design Patterns and Practices, Methodologies and Application Architectures. How to build real software in Haskell with less efforts and low risks. The first complete source of knowledge.
Top Bundles
- #1
Software Architecture for Developers: Volumes 1 & 2 - Technical leadership and communication
2 Books
"Software Architecture for Developers" is a practical and pragmatic guide to modern, lightweight software architecture, specifically aimed at developers. You'll learn:The essence of software architecture.Why the software architecture role should include coding, coaching and collaboration.The things that you really need to think about before... - #2
Software Architecture and Design Practice Reference
2 Books
Dive deeper in Software Architecture with the Design Practice Reference. Learn all about software architecture and design from the books in this bundle:Software Architecture covers topics from quality attributes to designing and modeling components, interfaces, connectors, and containers, all the way to services and microservices. The Design... - #6
Linux Administration Complet
4 Books
Ce lot comprend les quatre volumes du Guide Linux Administration :Linux Administration, Volume 1, Administration fondamentale : Guide pratique de préparation aux examens de certification LPIC 1, Linux Essentials, RHCSA et LFCS. Administration fondamentale. Introduction à Linux. Le Shell. Traitement du texte. Arborescence de fichiers. Sécurité... - #7
The Python Craftsman
3 Books
The Python Craftsman series comprises The Python Apprentice, The Python Journeyman, and The Python Master. The first book is primarily suitable for for programmers with some experience of programming in another language. If you don't have any experience with programming this book may be a bit daunting. You'll be learning not just a programming... - #8
All the Books of The Medical Futurist
6 Books
We put together the most popular books from The Medical Futurist to provide a clear picture about the major trends shaping the future of medicine and healthcare. Digital health technologies, artificial intelligence, the future of 20 medical specialties, big pharma, data privacy, digital health investments and how technology giants such as Amazon... - #10
Mastering Containers
2 Books
Docker and Kubernetes are taking the world by storm! These books will get you up-to-speed fast! Docker Deep Dive is over 400 pages long, and covers all objectives on the Docker Certified Associate exam.The Kubernetes Book includes everything you need to get up and running with Kubernetes!