随笔分类 -  design_patterns

摘要:https://mp.weixin.qq.com/s/MYSF8lCF92ItG_Lc8nOspg 一个加班多新人多团队,我们的代码问题与重构 陈于喆 高可用架构 2020-10-21 微服务编码问题 RPC 接口必须是业务职责 RPC 接口是微服务的生产者提供一定的能力给到消费者进行使用,这个时候 阅读全文
posted @ 2020-10-21 13:48 papering 阅读(192) 评论(0) 推荐(0)
摘要:策略模式 VS 状态模式 策略模式 VS 状态模式 | 菜鸟教程 https://www.runoob.com/w3cnote/state-vs-strategy.html 阅读全文
posted @ 2020-09-11 18:04 papering 阅读(167) 评论(0) 推荐(0)
摘要:https://www.geeksforgeeks.org/service-locator-pattern/ Service Locator Pattern Last Updated: 06-03-2018 The service locator pattern is a design patter 阅读全文
posted @ 2020-09-09 19:10 papering 阅读(267) 评论(0) 推荐(0)
摘要:图说设计模式 — Graphic Design Patterns https://design-patterns.readthedocs.io/zh_CN/latest/index.html 阅读全文
posted @ 2020-08-18 10:07 papering 阅读(268) 评论(0) 推荐(0)
摘要:RPC 框架要实现这个功能,我们可以使用泛化调用。那什么是泛化调用呢?我们带着这个问题,先学习下如何在没有接口的情况下进行 RPC 调用。 阅读全文
posted @ 2020-08-11 12:52 papering 阅读(563) 评论(0) 推荐(0)
摘要:1 阅读全文
posted @ 2020-07-30 12:47 papering 阅读(102) 评论(0) 推荐(0)
摘要:《设计模式》书评:可复用面向对象软件的基础 - 知乎 https://zhuanlan.zhihu.com/p/125541048 Builder 模式现在也没有书中说的什么构建逻辑的抽象那么玄乎,现在在 Java 等语言中基本充当一个命名参数的构造函数的作用,或者一次配置,多次构造的构造器,后者的 阅读全文
posted @ 2020-07-29 19:22 papering 阅读(125) 评论(0) 推荐(0)
摘要:Managing enterprise accounts - GitHub Docs https://docs.github.com/en/graphql/guides/managing-enterprise-accounts Resource limitations - GitHub Docs h 阅读全文
posted @ 2020-04-23 23:47 papering 阅读(707) 评论(0) 推荐(1)
摘要:让错误抛出 发现其中的问题 # coding=utf-8 from rest_framework.views import exception_handler from rest_framework.exceptions import ErrorDetail from share.dj_custom 阅读全文
posted @ 2020-04-04 19:13 papering 阅读(344) 评论(0) 推荐(0)
摘要:monad和y combinator 阅读全文
posted @ 2020-03-11 18:22 papering 阅读(178) 评论(0) 推荐(0)
摘要:1 继承和多态 - 廖雪峰的官方网站 https://www.liaoxuefeng.com/wiki/1016959663602400/1017497232674368 Guo磊 python与鸭子类型 部分参考来源:作者:JasonDing https://www.jianshu.com/p/6 阅读全文
posted @ 2020-03-08 09:13 papering 阅读(250) 评论(0) 推荐(0)
摘要:https://design-patterns.readthedocs.io/zh_CN/latest/structural_patterns/bridge.html 阅读全文
posted @ 2020-01-13 21:01 papering 阅读(204) 评论(0) 推荐(0)
摘要:Class as decorator in python . https://www.geeksforgeeks.org/class-as-decorator-in-python/ http://code.activestate.com/recipes/412719/ http://wiki.c2. 阅读全文
posted @ 2019-11-13 09:13 papering 阅读(207) 评论(0) 推荐(0)
摘要:模块化参数 阅读全文
posted @ 2019-08-27 14:18 papering 阅读(186) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/ZTh4a-YST5RdIipHykWpPQ 阅读全文
posted @ 2019-04-19 13:17 papering 阅读(341) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/-bj71dBylRHRqiPorOpVyg 原创: 李立敏 Java识堂 3月10日 有一个卖煎饼的店铺找上了你,希望你能给她们的店铺开发一个收银系统,已知一个煎饼的价格是8元,一个鸡蛋的价格是1元,一根香肠的价格是2元。 你二话不说写出了如下 阅读全文
posted @ 2019-04-19 13:06 papering 阅读(425) 评论(0) 推荐(0)
摘要:访问者模式 https://baike.baidu.com/item/访问者模式 访问者模式(Visitor Pattern)是GoF提出的23种设计模式中的一种,属于行为模式。据《大话设计模式》中说算是最复杂也是最难以理解的一种模式了。 定义(源于GoF《Design Pattern》):表示一个 阅读全文
posted @ 2019-04-19 01:26 papering 阅读(1024) 评论(0) 推荐(0)
摘要:表驱动方法(Table-Driven Methods) - winner_0715 - 博客园 https://www.cnblogs.com/winner-0715/p/9382048.html What 表驱动方法(Table-Driven Methods),在《Unix 编程艺术》中有提到,《 阅读全文
posted @ 2019-04-18 20:49 papering 阅读(2470) 评论(0) 推荐(2)
摘要:一些资源管理器常常设计成单例模式。 https://baike.baidu.com/item/单例模式/5946627?fr=aladdin 单例模式,是一种常用的软件设计模式。在它的核心结构中只包含一个被称为单例的特殊类。通过单例模式可以保证系统中,应用该模式的一个类只有一个实例。即一个类只有一个 阅读全文
posted @ 2019-03-11 11:47 papering 阅读(669) 评论(0) 推荐(0)