I understand the concept behind major software architectures. Their pros and cons and when to use what, etc. I can implement these my (hacky) way. But not sure whether it is the optimal way (am i missing some design pattern?).
My question is, how to convert software architecture diagram (topology) to code? What should the code look like?
Simply put, most software architecture books talks abstractly. I need the resource to be concrete.
Where can I find this red herring? In case it does not exist, what are the options for me?
What I have tried:
I went through several books but could not find sufficient sample code. Where can I find boilerplate code to implement the architectures or at least understand how these are implemented. Which design patterns shall I use to implement these architectures?
For example, there are several books which give sample code on implementing clean architecture.
Get Your Hands Dirty on Clean Architecture by Tom Hombergs
Implementing the Clean Architecture (Python Edition) by Sebastian Buczyński
Clean Architecture with PHP by Ferran Martı́n Sànchez
The Clean Architecture in PHP by Kristopher Wilson
In case of other Software Architectures, only a few books give code samples. For example:
Architecture Patterns with Python by Harry Percival, Bob Gregory
Software Architecture with Python by Anand Balachandran Pillai
Hands-On Software Architecture with Golang By Jyotiswarup Raiturkar
Hands-On Software Architecture with Java by Giuseppe Bonocore
Software Architecture by Example: Using C# and .NET by Paul Michaels
However, I want more details. For example, to create layered architecture, do this then that (with sample code). To close a layer do this (with sample code). To open a layer do this (with sample code). To use multiple database in a Service-Based Architecture, do this (with sample code). To use multiple User Interfaces in a Service-Based Architecture, do this (with sample code). To add API layer between the user interface and domain services, do this (Here is a sample code).