Email the Author

You can use this page to email Adel F about Architecture of complex web applications.

Please include an email address so the author can respond to your query

This message will be sent to Adel F

This site is protected by reCAPTCHA and the Google  Privacy Policy and  Terms of Service apply.

Architecture of complex web applications
Architecture of complex web applications
With examples in Laravel(PHP)
Adel F

Learn more

About the Book

I have worked with a lot of projects which was written by usual "everything in controller" way and when they become to grow their support complexity grows exponentially. Every project (simple internal app or app with 10 million unique visitors per day) had the same illnesses: Copy-paste driven development, God classes, etc. Modern frameworks offers a lot of features to implement functionality super-fast, but when project grows almost all these "optimizations" becomes a big pain for developers. In the same time there a lot of dogmas, like SOLID and others, which described very abstractly and becomes some kind of cargo cults. "if project has 100% code coverage by unit tests, it has super code quality", "if project doesn't have static methods, it's well organized", etc. Someone very clever said: Software Engineering Is Art Of Compromise. Some of these dogmas have very important exceptions. Some of them easy to misunderstand.

In this book I'm going to analyze usual project with common mistakes. How implementing new requirements can decrease code quality. Then step by step I'll show how I usually refactor the code: extracting classes, using DI, using exceptions. How this refactoring consequences moving to layered architecture. After moving to layered architecture we will talk about pro and contras of Command Query Responsibility Segregation(CQRS). After CQRS it's hard to don't talk about Event Sourcing(ES).

I'll use examples in Laravel , but it's not very important. The book is about framework-agnostic code.

About the Author

Adel F’s avatar Adel F

@Adelf32

Software developer with 15+ years of experience. Contributed to Laravel plugin for PhpStorm. Created a .env files support plugin for PhpStorm.

Logo white 96 67 2x

  • About
  • About Leanpub
  • Blog
  • Contact
  • Press
  • Authors
  • Why Leanpub
  • Testimonials
  • Climate Change
  • Simplifying
  • Grandfathering
  • Freemium
  • Manifesto
  • Author Support
  • The Leanpub Manual
  • Author Help Center
  • Leanpub Authors Forum
  • The Markua Manual
  • The Leanpub Flavoured Markdown Manual
  • Supported Languages
  • API Docs
  • More
  • Newsletters
  • Podcast
  • Redeem a Token
  • Reader Help
  • Causes
  • Legal
  • Terms of Service
  • Copyright Policy
  • Privacy Policy

Leanpub is copyright © 2010-2019 Ruboss Technology Corp. All rights reserved.

Leanpub requires cookies in order to provide you the best experience. Dismiss