当前位置:网站首页>【Programming Ideas】
【Programming Ideas】
2022-08-04 20:55:00 【xixiaohuanqaq】
About object orientation and portability
Object Oriented
My own understanding is to abstract the various parameters of an object, for example, to build a building, need workers and materials, etc., and abstract all these to him.At present, it is only a very shallow idea. When I come into contact with C++, I will summarize what is object-oriented thinking.
Program Portability
I encountered a problem, the dac output is a 16-bit data, but when others test, they can't use what I wrote immediately. It should be considered that others can directly use the output even if they don't understand how the dac outputs.Control the specific value of the output voltage and current of the dac. The parameter of the interface should be a 16-bit data, or directly the voltage value and current value. No one cares about how the dac actually outputs. This is the portability of the function.If there is a problem with the code, it is easy to locate it.Follow-up writing programs should pay attention to these problems, as well as the naming conventions of variables
边栏推荐
猜你喜欢
随机推荐
【编程思想】
Tear down the underlying mechanism of the five JOINs of SparkSQL
五分钟入门文本处理三剑客grep awk sed
Comic | Two weeks after the boss laid me off, he hired me back and doubled my salary!
jekyll 在博客添加流程图
搭建MyCat2一主一从的MySQL读写分离
Interviewer: How is the expired key in Redis deleted?
Five Minutes Introductory Text Processing Three Musketeers grep awk sed
How to make good use of builder mode
【TypeScript】深入学习TypeScript枚举
composition-api
【AGC】构建服务1-云函数示例
深度解析:为什么跨链桥又双叒出事了?
三种方式设置特定设备UWP XAML view
web漏洞扫描器-awvs
How to carry out AI business diagnosis and quickly identify growth points for cost reduction and efficiency improvement?
IPV6地址
adb控制常用命令
MATLAB中readtimetable函数用法
1、File对象学习







![[TypeScript] In-depth study of TypeScript enumeration](/img/27/4836e59528bb5a51ffc1cf9961c6b6.png)
