The Most Important Design Guideline is TestabilityDesign Guideline is Testability ## JODY HAGINS ## +24 ## The Most Important Design Guideline is Testability ## JODY HAGINS ## CppCon 2024 The Most Important Design Guideline is Testability Jody Hagins jhagins@dev CppCon 2024 The Most Important Design Guideline is Testability Jody Hagins jhagins@dev.null ## CppCon 2024 The Most Important Design Guideline is Testability Jody Hagins jhagins@maystreet.com coachhagins@gmail Copyrighted material, all rights reserved. Slide 2 ## The Most Important API Design Guideline? ## TESTABILITY Copyrighted material, all rights reserved. Slide 2 ## Why is Testing Important?   Testability and API Design John Pavan · Aram Chung · Lukas Zhao And: it's context specific! ## Yes, it's will not cover it here. Mentioned also by Jody Hagins in “The Most Important Design Guideline is Testability” on his Monday here at CppCon 2024. See also: https://stackoverflow.com/a/11622314/2085626 https://blog0 码力 | 145 页 | 2.45 MB | 1 年前3
Back to Basics: Designing Classes (part 1 of 2)Design Design Guidelines Design for Readability Design for Change and Extension Design for Testability Implementation Guidelines Resource Management ## Back to Basics: Class Design (Part 2) Implementation Design Design Guidelines Design for Readability Design for Change and Extension Design for Testability Implementation Guidelines Resource Management ## Back to Basics: Class Design (Part 2) Implementation Design Design Guidelines Design for Readability Design for Change and Extension Design for Testability Implementation Guidelines Resource Management ## Back to Basics: Class Design (Part 2) Implementation0 码力 | 87 页 | 5.64 MB | 1 年前3
Back to Basics: Designing Classes (part 2 of 2)Design Design Guidelines Design for Readability Design for Change and Extension Design for Testability Implementation Guidelines Resource Management ## Back to Basics: Class Design (Part 2) Implementation Design Design Guidelines Design for Readability Design for Change and Extension Design for Testability Implementation Guidelines Resource Management ## Back to Basics: Class Design (Part 2) ## I Design Design Guidelines Design for Readability Design for Change and Extension Design for Testability Implementation Guidelines Resource Management ## Back to Basics: Class Design (Part 2) Implementation0 码力 | 76 页 | 2.60 MB | 1 年前3
Leveraging a Functional Approach for More Testable and Maintainable ROS 2 Codereasoning: The code can be understood just by looking at that portion and a limited scope around it ☐ testability: Testing pure functions is trivial ## Pure Functions • A pure function is a function that ☐ is reasoning: The code can be understood just by looking at that portion and a limited scope around it ☐ testability: Testing pure functions is trivial • Practically, pure functions do not: o contain state (static reasoning: The code can be understood just by looking at that portion and a limited scope around it ☐ testability: Testing pure functions is trivial • Practically, pure functions do not: ☐ contain state (static0 码力 | 200 页 | 1.77 MB | 1 年前3
Finding Nemo - AndyyNotification ## MVVM: MODEL-VIEW-VIEWMODEL THE GOOD • Reactive UI data binding • Increased testability! • First viable contender to MVC (within iOS) • Post-MVC movement on iOS primarily started by classes • Difficult to onboard engineers ## GRAPH OF ARCHITECTURE OVER-SIMPLIFIED FILES AND TESTABILITY COMPLEXITY ## HOW DO WE DECIDE ON WHICH TO ADOPT? ## OUR PRODUCT PUNTERS APP • Consumer focused Backend For Frontend (BFF) server architecture ## CHOOSING AN ARCHITECTURE ## REQUIREMENTS • Testability • Code reusability • Easy to onboard • Modular • Expandable • Compatible ## PRINCIPLES •0 码力 | 69 页 | 259.23 KB | 2 年前3
Back to Basics Unit Testing## Unit Testing is a Big Topic • Jody Hagins (today): The Most Important Design Guideline is Testability • Greg Law and Mike Shah (tomorrow): Back To Basics, Debugging and Testing • Chip Hogg (Wednesday) SOLID • Testability • DRY … ## Process: Design ## Good Design (new) • Simplicity (small functions, Single Responsibility Rule) • Encapsulation and loose coupling SOLID • DRY Testability ## Third0 码力 | 109 页 | 4.13 MB | 1 年前3
Dependency Injection in C++Using various DI methods to achieve functionality swapping / instrumentation for flexibility and testability ☐ Primarily unit testing - Focus on strategies / How to think to achieve DI in the real world class/function independent of its underlying dependencies 3. Improves the reusability – and so testability - of code. 4. Better long term maintainability of code. Encyclopedia Muldoonica ## Testing without • Poorly formed code needs many tricks for DI • Improves the flexibility/reusability – and so testability - of a system • Better long term maintainability of code ## Dependency Injection Revelation ##0 码力 | 106 页 | 1.76 MB | 1 年前3
2.8 Go在探探后端的工程实践alt=‘OCR图片’/> #1 Building Tantan Backend Goals Clean Code Simplicity, Readability, Maintainability, Testability Development Efficiency Ease of Development & Deployment Scalability Vertical & Horizontal Performant Time Make iterations or CI/CD easier (bug fixes etc.) Code Quality Readability Maintainability Testability Continuous Integration Automatic Testing Henry Ren, 4 years ago | 1 author (Henry Ren) type Dispatcher0 码力 | 68 页 | 1.24 MB | 1 月前3
Laravel 5.0 Documentation
Laravel provides several opportunities to use the service container to increase the flexibility and testability of your application. One primary example is when resolving controllers. All controllers are resolved the IoC container, providing the benefit of a terse, expressive syntax while maintaining more testability and flexibility than traditional static methods. Occasionally, You may wish to create your own Facades Unit testing is an important aspect of why facades work the way that they do. In fact, testability is the primary reason for facades to even exist. For more information, check out the mocking facades0 码力 | 242 页 | 1.44 MB | 2 年前3
共 58 条
- 1
- 2
- 3
- 4
- 5
- 6
相关搜索词
TestabilityDesign GuidelineAPISoftware DevelopmentCppConImplementation DetailsEncapsulationModularizationMaintainability类设计可读性可变性可测试性资源管理封装设计决策常量正确性成员变量顺序隐式转换ROS 2函数式编程可维护性面向对象编程ARCHITECTURE PROBLEMNEAT & MODULARREACTIVE PROGRAMMINGMODULARITYUI/UXunit testingfunctiontest frameworkcode baseassert依赖注入模板继承函数接口Go探探后端工程实践测试RESTful APILaravel 5.0升级指南ComposerEloquentMiddleware













