Retiring the Singleton Pattern## Retiring the Singleton Pattern Engineering ## Concrete suggestions for what to use instead CppCon 2020 September 18, 2020 Peter Muldoon Senior Software Developer TechAtBloomberg.com © 2020 Bloomberg com/questions/137975/what-is-so-bad-about-singletons ## Talk outline 1. Examine the Singleton Pattern 2. Refactoring out the Singleton in an example function • Ensuring the callers of that function do not need with phased introduction of the replacement pattern 6. Dealing with initialization order of interdependent Singletons 7. Dealing with groups of Singleton dependencies 8. Stateful groupings of dependencies0 码力 | 70 页 | 1.59 MB | 1 年前3
Applicative: The Forgotten Functional Pattern## Applicative: The Forgotten Functional Pattern ## +23 ## BEN DEANE ## 20 23 October 01 - 06 ## APPLICATIVE THE FORGOTTEN FUNCTIONAL PATTERN  FUNCTIONS A functor functional terms from their vocabulary while explaining the continuation monad... ## SPOT THE FUNCTIONAL PATTERN  Eric Niebler0 码力 | 141 页 | 11.33 MB | 1 年前3
Back to Basics: The Factory Pattern## Back to Basics: The Factory Pattern ## MIKE SHAH 2021 October 24-29 ## Please do not redistribute slides without prior permission ## Software Design: Factory Pattern Mike Shah, Ph.D. @MichaelShah there is a common pattern that can help solve this problem--the factory design pattern. In this talk, we are going to discuss a creationally designed pattern known as a factory. The pattern can be as simple the factory pattern, and discuss which scenarios you may not actually want to use a factory. Attendees will leave this talk with the knowledge to go forward and implement the factory pattern, as well as0 码力 | 93 页 | 3.92 MB | 1 年前3
Go Programming Pattern in Kubernetes Philosophy# Go Programming Pattern in Kubernetes Philosophy Harry Zhang @resouer ## Contents ## • What I will talk? • Kubernetes basic in 1 min • For Kubernetes developers: - The Golang programming patterns gPRC based interface design in Kubernetes (CRI as example) • For Kubernetes users: • Effective pattern of programming based on Kubernetes • 广告(Don't worry, it's not that kind of AD) ## • What p10_1.jpg)  ## Pattern 1: Controller 0 码力 | 29 页 | 2.12 MB | 2 年前3
Operator Pattern 用 Go 扩展 Kubernetes 的最佳实践## GCN ## Operator Pattern: 用 Go 扩展 K8s 的最佳实践 ## 👨👩👧👦 吴学强 ApeCloud KubeBlocks Maintainer & 研发总监  认识我们 00 TPR;controller-runtime 加入 K8s 社区并正式发布; 自此,CRD + controller-runtime 逐渐成为开发 operator 的首选 ## Operator Pattern Operator Pattern 是官方定义的标准扩展机制,是 K8s Native Application; Operator = CRD + control loop, i.e., Declarative to automatically tune the Operand to a certain workload pattern - Operator is able to automatically tune the Operand to a certain workload pattern Operator dynamically shifts workloads onto best suited0 码力 | 21 页 | 3.06 MB | 1 年前3
SuperCharge Your IPC Programs With C++20 and CCI Pattern## +24 ## SuperCharge Your IPC Programs With C++20 and CCI Pattern ## ARIAN AJDARI 20 24 September 15 - 20 ## Rules • IPC stands for Intra-Process Communication • Programs stand for software running0 码力 | 57 页 | 7.11 MB | 1 年前3
Extending and Simplifying C++: Thoughts on Pattern Matching using 'is' and 'as', and Can C++ be 10x Simpler2/7/0/e/270e7e9b658b9a5e082c98cac46c9681/p1_3.jpg) Extending and Simplifying C++: Thoughts on Pattern Matching using `is` and `as` Video Sponsorship Provided By: ## Queries P2392  ..... 3.2.5. To singleton or not to singleton ..... 3.3. Properties, collaborators, autowiring and dependency checking ..... 3.3 Creating an ApplicationContext from a web application ..... 39 3.20. Glue code and the evil singleton ..... 40 3.20.1. Using SingletonBeanFactoryLocator and ContextSingletonBeanFactoryLocator ... 6.2. Configuring AspectJ aspects using Spring IoC ..... 75 6.2.1. "Singleton" aspects ..... 75 6.2.2. Non-Singleton aspects ..... 76 6.2.3. Gotchas ..... 76 6.3. Using AspectJ pointcuts0 码力 | 244 页 | 1.30 MB | 2 年前3
Agda User Manual v2.6.2.2Unification 109 3.24 Mixfix Operators 110 3.25 Module System 113 3.26 Mutual Recursion 118 3.27 Pattern Synonyms 121 3.28 Positivity Checking ..... 123 3.29 Postulates ..... 125 3.30 Pragmas ..... on it. To do so, put the cursor inside the hole and press C-c C-c. Agda asks for the name of the pattern variable to case on. Let's write x and press return. This replaces the previous clause with two x) y z = { }1 Important: The x in the type signature of +-assoc-proof is not the same as the x pattern variable in the last clause where suc x is written. The following would also work: +-assoc-proof0 码力 | 257 页 | 1.16 MB | 2 年前3
Agda User Manual v2.6.2.1Overloading 107 3.23 Mixfix Operators 109 3.24 Module System 112 3.25 Mutual Recursion 117 3.26 Pattern Synonyms 120 3.27 Positivity Checking 121 3.28 Postulates  y z = { }1 Important: The x in the type signature of +-assoc-proof is not the same as the x pattern variable in the last clause where suc x is written. The following would also work: +-assoc-proof0 码力 | 255 页 | 1.14 MB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
Singleton PatternDependency InjectionSource CompatibilityStateful GroupingsInterdependent SingletonsApplicative FunctorsFunctorMonadFunction ApplicationC++工厂模式工厂方法模式抽象工厂模式创建对象枚举类KubernetesGo编程模式控制器代码生成gRPC接口Operator PatternCRDController-RTKubebuilderCustom ResourceC++20CCI PatternIPCContractConceptHerb Sutter模式匹配类型安全强制类型转换BeanFactorysingletonprototypelookup-methodAgdatype checkingrewrite rulescompilationpattern matchingcubicalpositivity checking













