Retiring the Singleton Pattern
© 2020 Bloomberg Finance L.P. All rights reserved. Retiring the Singleton Pattern Concrete suggestions for what to use instead CppCon 2020 September 18, 2020 Peter Muldoon Senior Software DeveloperBloomberg youtube.com/watch?v=-FRm3VPhseI What’s currently out thereTalk outline 1. Examine the Singleton Pattern 2. Refactoring out the Singleton in an example function • Ensuring the callers of that function types 4. Dealing with delayed construction 5. Dealing with phased introduction of the replacement pattern 6. Dealing with initialization order of interdependent Singletons 7. Dealing with groups of Singleton0 码力 | 70 页 | 1.59 MB | 5 月前3Applicative: The Forgotten Functional Pattern
1APPLICATIVE APPLICATIVE THE FORGOTTEN FUNCTIONAL PATTERN THE FORGOTTEN FUNCTIONAL PATTERN BEN DEANE / CPPCON / 2023-10-04 BEN DEANE / CPPCON / 2023-10-04 2DISCLAIMERS DISCLAIMERS No AI was used in just said that, now I'm not so sure… Don't worry about what apattern> Don't worry about what a pattern> isis.. Rather we'll think about Rather we'll think about what it does 106SPOT THE FUNCTIONAL PATTERN SPOT THE FUNCTIONAL PATTERN107SPOT THE FUNCTIONAL PATTERN SPOT THE FUNCTIONAL PATTERN108P2300 P2300 P2300 name What it does Functional pattern then transforms the value 0 码力 | 141 页 | 11.33 MB | 5 月前3Back to Basics: The Factory Pattern
slide 1Please do not redistribute slides without prior permission. 2Software Design: Factory Pattern Mike Shah, Ph.D. @MichaelShah | mshah.io | www.youtube.com/c/MikeShah 2:00 pm MDT, Wed. October there is a common pattern that can help solve this problem--the factory design pattern. In this talk, we are going to discuss a creational design 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 | 5 月前3Go 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 of 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 I will proxy 4.1 Detected bind operation 4.2 Start Pod on this machine etcd scheduler api-server Pattern 1: Controller • Control everything by Controller • Level driven, not edge driven edge level0 码力 | 29 页 | 2.12 MB | 1 年前3Operator Pattern 用 Go 扩展 Kubernetes 的最佳实践
Operator Pattern:用 Go 扩展 K8s 的最佳实践 吴学强 ApeCloud KubeBlocks Maintainer & 研发总监 目 录 认识我们 00 什么是 Operator 01 Operator 基础模型 02 Operator 最佳实践 03 我们是谁 云猿生(ApeCloud)是一家提供数据库内核与管理平台的基 础软件开发商. KubeBlocks KubeBlocks Maintainer & 研发总监 free6om 什么是 Operator 第一部分 Operator 前世今生 TPR Operator CRD Operator Pattern 2015.11 2016.12 2017.12 Now K8s 1.1 版本中正式推出 TPR (ThirdPartyResource),首次尝 试解决 K8s API 的扩展性问题, controller-runtime 加入 K8s 社 区并正式发布; 自此,CRD + controller-runtime 逐渐成为开发 operator 的首选 Operator Pattern 是官方定义的标准扩 展机制,是 K8s Native Application; Operator = CRD + control loop, i.e, Declaretive API +0 码力 | 21 页 | 3.06 MB | 9 月前3SuperCharge Your IPC Programs With C++20 and CCI Pattern
0 码力 | 57 页 | 7.11 MB | 5 月前3Extending and Simplifying C++: Thoughts on Pattern Matching using 'is' and 'as', and Can C++ be 10x Simpler
0 码力 | 108 页 | 5.08 MB | 5 月前3Agda User Manual v2.6.3
Structure Literal Overloading Lossy Unification Mixfix Operators Module System Mutual Recursion Pattern Synonyms Positivity Checking Postulates Pragmas Prop Record Types Reflection Rewriting Run-time Irrelevance 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 new 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 码力 | 379 页 | 354.83 KB | 1 年前3Agda User Manual v2.6.4
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 3.29 Pattern Synonyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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 new 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 码力 | 313 页 | 1.38 MB | 1 年前3Agda User Manual v2.6.4.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 3.29 Pattern Synonyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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 new 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 码力 | 311 页 | 1.38 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100