楼主: hewenxiang
1126 2

[书籍介绍] clean architectures in python [推广有奖]

  • 0关注
  • 0粉丝

学前班

90%

还不是VIP/贵宾

-

威望
0
论坛币
263 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
80 点
帖子
2
精华
0
在线时间
1 小时
注册时间
2017-7-17
最后登录
2019-5-10

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
The clean architecture is the opposite of spaghetti code, where everything is interlaced and there are no single elements that can be easily detached from the rest and replaced without the whole system collapsing. The main point of the clean architecture is to make clear "what is where and why", and this should be your first concern while you design and implement a software system, whatever architecture or development methodology you want to follow.

This book is divided into two parts.

The first part is about Test-driven Development (TDD), a programming technique that will help you more reliable and easily modifiable software. I will first guide you through a very simple example in chapter 1, demonstrating how to use TDD to approach a project, and how to properly create tests from requirements. In chapter 2 I will then discuss unit testing from a more theoretical point of view, categorising functions and their tests. Chapter 3 will introduce mocks, a powerful tool that helps to test complex scenarios.

The second part introduces the clean architecture. The first chapter discusses briefly the components and the ideas behind this software structure, while chapter 2 runs through a concrete example of clean architecture for a very simple web service. Chapter 3 discusses error management and improvements to the Python code developed in the previous chapter. Finally, chapter 4 shows how to plug different database systems to the web service created previously

Table of Contents
  •      
    •         Introduction
      •             What is a software architecture?
      •             Why is it called “clean” architecture?
      •             Why Python?
      •             Acknowledgments
            
    •         About the book
      •             A brief history of this book
      •             How this book is structured
      •             Typographic conventions
      •             Why this book comes for free
      •             Submitting issues or patches
      •             About the author
            
    •         Setup a Python Project
      •             Virtual environments
      •             Python projects with Cookiecutter
            
      
  •     Part 1 - Tools
    •         Chapter 1 - Introduction to TDD
      •             Introduction
      •             A real-life example
      •             A simple TDD project
      •             Setup the project
      •             Requirements
      •             Step 1 - Adding two numbers
      •             Step 2 - Adding three numbers
      •             Step 3 - Adding multiple numbers
      •             Step 4 - Subtraction
      •             Step 5 - Multiplication
      •             Step 6 - Refactoring
      •             Step 7 - Division
      •             Step 8 - Testing exceptions
      •             Step 9 - A more complex set of requirements
      •             Recap of the TDD rules
      •             How many assertions?
      •             How to manage bugs or missing features
            
    •         Chapter 2 - On unit testing
      •             Introduction
      •             Tests should be fast
      •             Tests should be idempotent
      •             Tests should be isolated
      •             External systems
      •             Focus on messages
      •             The testing grid
      •             Conclusions
            
    •         Chapter 3 - Mocks
      •             Basic concepts
      •             First steps
      •             Simple return values
      •             Complex return values
      •             Asserting calls
      •             A simple example
      •             Patching
      •             The patching decorator
      •             Multiple patches
      •             Patching immutable objects
      •             Mocks and proper TDD
      •             A warning
      •             Recap
            
      
  •     Part 2 - The clean architecture
    •         Chapter 1 - Components of a clean architecture
      •             Layers and data flow
      •             Main layers
      •             APIs and shades of grey
            
    •         Chapter 2 - A basic example
      •             Project overview
      •             Project setup
      •             Domain models
      •             Serializers
      •             Use cases
      •             The storage system
      •             A command line interface
      •             HTTP API
      •             Conclusions
            
    •         Chapter 3 - Error management
      •             Introduction
      •             Basic requests and responses
      •             Requests and responses in a use case
      •             Request validation
      •             Responses and failures
      •             Error management in a use case
      •             Integrating external systems
      •             The HTTP server
      •             The repository
      •             Conclusions
            
    •         Chapter 4 - Database repositories
      •             Introduction
      •             A repository based on PostgreSQL
      •             A repository based on MongoDB
      •             Conclusions
            
      
  •     Part 3 - Appendices
    •         Changelog
      
  •     Notes








二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Architecture Architect python Clean Lean python architecture

clean-architectures-in-python.pdf

1.76 MB

需要: 5 个论坛币  [购买]

clean architectures in python.pdf

沙发
hifinecon 发表于 2019-1-22 22:52:37 |只看作者 |坛友微信交流群

使用道具

藤椅
jiaminZ 发表于 2019-1-22 23:14:55 来自手机 |只看作者 |坛友微信交流群
hewenxiang 发表于 2019-1-22 21:06
The clean architecture is the opposite of spaghetti code, where everything is interlaced and there a ...
支持一下

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-20 10:35