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