Back to Basics: Designing Classes (part 1 of 2)Back to Basics Designing Classes (part 1 of 2) Klaus Iglberger, CppCon 2021 klaus.iglberger@gmx.de2 Klaus Iglberger C++ Trainer/Consultant Author of the C++ math library (Co-)Organizer Beck, TDD by Example)The Challenge of Class Design 10 Guideline: Design classes for easy change. Guideline: Design classes for easy extensions.Design Guidelines 11 Back to Basics: Class Design (Part ) const; 23 Using inheritance naively to solve our problem easily leads to … … many derived classes; … ridiculous class names; … deep inheritance hierarchies; … duplication between similar implementations0 码力 | 87 页 | 5.64 MB | 6 月前3
Back to Basics: Designing Classes (part 2 of 2)Back to Basics Designing Classes (part 1 of 2) Klaus Iglberger, CppCon 2021 klaus.iglberger@gmx.de2 Klaus Iglberger C++ Trainer/Consultant Author of the C++ math library (Co-)Organizer duplication to enable you to change everything in one place (the DRY principle). Guideline: Design classes for easy change.Data Member Initialization 24 struct Widget { Widget() : Widget(42) // Decisions 63 Guideline: Encapsulate design decisions (i.e. variation points). Guideline: Design classes for easy change.Qualified/Modified Member Data 64 Back to Basics: Class Design (Part 1) The Challenge0 码力 | 76 页 | 2.60 MB | 6 月前3
NodeJS and SQLite0 码力 | 8 页 | 109.88 KB | 1 年前3
Oracle VM VirtualBox UserManual_fr_FR.pdfOracle VM VirtualBox R ⃝ Manuel de l’utilisateur Version 4.3.13 c⃝ 2004-2014 Oracle Corporation http://www.virtualbox.org Contents 1 Premiers pas 11 1.1 À quoi sert la virtualisation ? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 1.2 Un peu de terminologie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 1.3 Aperçu des fonctionnalités . . . . . . . . . . 4 Changer de média amovible . . . . . . . . . . . . . . . . . . . . . . . . 25 1.8.5 Redimensionner la fenêtre de la machine . . . . . . . . . . . . . . . . . 25 1.8.6 Sauvegarder l’état de la machine0 码力 | 386 页 | 5.61 MB | 1 年前3
Kotlin Language Documentation 1.3Basics Basic Types Packages Control Flow: if, when, for, while Returns and Jumps Classes and Objects Classes and Inheritance Properties and Fields Interfaces Visibility Modifiers 7 7 9 11 103 111 115 118 2 Extensions Data Classes Sealed Classes Generics Nested and Inner Classes Enum Classes Object Expressions and Declarations Inline classes Delegation Delegated Properties Functions databases through their Java drivers. For JPA, the kotlin-jpa compiler plugin adapts Kotlin- compiled classes to the requirements of the framework. Kotlin applications can be deployed into any host that supports0 码力 | 597 页 | 3.61 MB | 1 年前3
Zabbix 2.2 Manualin the help_items table are now defined in the PHP CHelpItems class in fron- tends/php/include/classes/items/CHelpItems.php. The help_items table has been dropped. Daemon security fixes Zabbix server in the Z class. This can be done by adding the following code before the closing brace in include/classes/core/Z.php: public static function getThemes() { return array_merge(parent::getThemes(), array( the host API and is used to create new hosts. Historically, APIs are sometimes referred to as ”classes”. Note: Most APIs contain at least four methods: get, create, update and delete for retrieving0 码力 | 918 页 | 11.28 MB | 1 年前3
Django CMS 3.0.x Documentationyes • Languages to enable. Option can be provided multiple times, or as a comma separated list: en, de • Optional default time zone: America/Chicago: • Activate Django timezone support: yes • Activate CMS return context plugin_pool.register_plugin(CMSPollPlugin) # register the plugin Note: All plugin classes must inherit from cms.plugin_base.CMSPluginBase and must register them- selves with the cms.plugin_pool gets shown in the toolbar. One is the CMS_TOOLBARS setting. This gives you full control over which classes are loaded, but requires that you specify them all manually. The other is to provide cms_toolbar0 码力 | 180 页 | 1.56 MB | 6 月前3
Zabbix 2.0 Manualin the Z class. This can be done by adding the following code before the closing brace in include/classes/core/Z.php: public static function getThemes() { return array_merge(parent::getThemes(), array( of the functions provided by the Zabbix API and will help you find your way around the available classes and methods. 339 Monitoring The Zabbix API allows you to access history and other data gathered also 350 • Action condition • Action operation Source CAction::create() in frontends/php/api/classes/CAction.php. action.delete Description object action.delete(array actionIds) This method allows0 码力 | 791 页 | 9.66 MB | 1 年前3
Nim 2.0.8 Manual'if' expr ':' stmts ('elif' expr ':' stmts)* ('else' stmts)? arrayConstructor = '[' expr ^* ',' ']' De�nitions Nim code speci�es a computation that acts on a memory consisting of components called locations may be executed at compile-time. This can include constant expressions, macro de�nitions, and Nim procedures used by macro de�nitions. Most of the Nim language is supported at compile-time, but there are compile-time execution. Since constant expressions can be used as an input to semantic analysis (such as for de�ning array bounds), this �exibility requires the compiler to interleave semantic analysis and compile-time0 码力 | 132 页 | 5.73 MB | 1 年前3
django cms 3.1.x Documentationyes • Languages to enable. Option can be provided multiple times, or as a comma separated list: en, de • Optional default time zone: America/Chicago: • Activate Django timezone support: yes • Activate return context plugin_pool.register_plugin(CMSPollPlugin) # register the plugin Note: All plugin classes must inherit from cms.plugin_base.CMSPluginBase and must register them- selves with the cms.plugin_pool gets shown in the toolbar. One is the CMS_TOOLBARS setting. This gives you full control over which classes are loaded, but requires that you specify them all manually. The other is to provide cms_toolbar0 码力 | 200 页 | 1.63 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













