首页
学习
活动
专区
工具
TVP
发布

C++核心准则原文翻译

专栏成员
465
文章
278941
阅读量
44
订阅数
自学鸿蒙应用开发(12)- Checkbox
下面代码中的第20行获取RadioContainer组件后,在第24行根据Checkbox的状态更新TimePicker的形式,然后在第42行~45行为Checkbox增加响应处理,其内容是同样是根据Checkbox的状态更新TimePicker的形式。
面向对象思考
2021-01-13
4120
C++核心准则​A.1-A.4:架构理念
Isolating less stable code facilitates its unit testing, interface improvement, refactoring, and eventual deprecation.
面向对象思考
2020-11-03
3230
C++核心准则:SF.12:使用双引号形式的#include语句包含相对路径中的文件,用角括号形式包含所有其他位置的文件​
SF.12:使用双引号形式的#include语句包含相对路径中的文件,用角括号形式包含所有其他位置的文件
面向对象思考
2020-10-30
2.3K0
C++核心准则SF.11​:头文件应该可以独立工作​
Usability, headers should be simple to use and work when included on their own. Headers should encapsulate the functionality they provide. Avoid clients of a header having to manage that header's dependencies.
面向对象思考
2020-10-30
3670
C++核心准则​SF.10:避免依赖隐式包含的名称
Avoid surprises. Avoid having to change #includes if an #included header changes. Avoid accidentally becoming dependent on implementation details and logically separate entities included in a header.
面向对象思考
2020-10-30
5820
C++核心准则SF.7:不要在头文件中的全局作用域中使用using namespace指令
SF.7: Don't write using namespace at global scope in a header file
面向对象思考
2020-10-10
8270
C++核心准则SF.4:在其他声明之前include .h文件
Minimize context dependencies and increase readability.
面向对象思考
2020-10-10
4710
C++核心准则SF.1:如果你的项目没有正在遵从的其他习惯,为代码文件使用.cpp后缀,为接口文件使用.h后缀
SF.1: Use a .cpp suffix for code files and .h for interface files if your project doesn't already follow another convention
面向对象思考
2020-10-10
5920
C++核心准则T.121:模板元编程主要用于模仿概念
T.121: Use template metaprogramming primarily to emulate concepts
面向对象思考
2020-09-28
4380
C++核心准则T.120:只在确实有需要时使用模板元编程
T.120: Use template metaprogramming only when you really need to
面向对象思考
2020-09-28
4760
没有更多了
社区活动
【纪录片】中国数据库前世今生
穿越半个世纪,探寻中国数据库50年的发展历程
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档