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
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
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
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
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
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
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 ; templateplus(T, U); • Curiously Recurring Template Pattern (CRTP) Cppcon 2023 | Rud Merriam | A Journey into Non-Virtual Polymorphism std::apply is loop-like • Overload Idiom works with std::apply ## Curiously Recurring Template Pattern (CRTP) templatestruct Shape { void draw() { auto& derived{static_cast 0 码力 | 43 页 | 536.84 KB | 1 年前3
Back to Basics: Design PatternsPragmatically How to implement/use a Creational Pattern ☐ Singleton in C++ How to implement/use a Structural Pattern ☐ Adapter in C++ How to use a Behavior Pattern ■ Iterator in C++ ## What you are going Pragmatically How to implement/use a Creational Pattern ☐ Singleton in C++ How to implement/use a Structural Pattern ☐ Adapter in C++ ☐ How to use a Behavior Pattern ☑ Iterator in C++ • My expectations are Patterns  ## Design Pattern (1/2) - A common repeatable solution for solving problems. - Thus, Design Patterns can serve as0 码力 | 96 页 | 2.10 MB | 1 年前3
Spring Framwork Core Technologies v5.3.36 SNAPSHOTReplacement ..... 49 1.5. Bean Scopes ..... 51 1.5.1. The Singleton Scope ..... 52 1.5.2. The Prototype Scope ..... 53 1.5.3. Singleton Beans with Prototype-bean Dependencies ..... 54 1.5.4. Request dependencies by using direct construction of classes or a mechanism such as the Service Locator pattern. The org.springframework.beans and org.springframework.context packages are the basis for Spring ents/7/3/2/3/73231a341eebfdf97c81ce62f5f4f7ab/p22_1.jpg) Bean metadata and manually supplied singleton instances need to be registered as early as possible, in order for the container to properly reason0 码力 | 485 页 | 6.31 MB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
Singleton PatternDependency InjectionSource CompatibilityStateful GroupingsInterdependent Singletons工厂模式工厂方法模式抽象工厂模式创建对象枚举类Applicative FunctorsFunctorMonadFunction ApplicationC++KubernetesGo编程模式控制器代码生成gRPC接口C++20CCI PatternIPCContractConceptOperator PatternCRDController-RTKubebuilderCustom ResourceHerb Sutter模式匹配类型安全强制类型转换Curiously Recurring Template Pattern (CRTP)std::variantstd::anystd::tuplePolymorphic Invokable设计模式创建型结构型行为型Gang of FourSpring FrameworkResource InterfaceNull-safety AnnotationsComponent ScanningJSR-330 Annotations













