C++专业术语
SOLID:
SRP | Single Responsibility Principle | 单一责任原则 |
OCP | The Open Closed Principle | 开放封闭原则 |
LSP | The Liskov Substitution Principle | 里氏替换原则 |
DIP | The Dependency Inversion Principle | 依赖倒置原则 |
ISP | The Interface Segregation Principle | 接口分离原则 |
Polymorphism 多态: Using child class behavior from base class pointers / use base class pointer to reference or make calls on derived classes
static and dynamic/ static - function overloaded / dynamic - virtual operations
Encapsulation 封装:- public/private / "Data Hiding" / "binding data and methods via a class
inheritance 继承: resusability"
inheritance vs Composition "Is-a == inheritance" "Has-a == data member"
DataStruct:
Array insert : O(1) using index. Run time would be O(n) / Delete would be similar situation O (n) / Find would be O(n)
Linked list : insertion is O(n), Deletion O(n), Find O(n)
Binary Balanced Tree : Smallest elements in left hand tree. Largest on right hand side. Insertion is Nlogn, Delete is Nlogn, Find is O(logn)
Multi-thread:
1. re-entrance
2. Shared data between threads can cause data to be corrupted
3. Deadlock : caused by more than two threads and two resources
4.Race condition: use a mutex to lock the critical section to prevent data corruption.
Design Pattern:
solving same problem similar ways.
Readability, reuse, organization, proven
Others:
Until now, the boundaries between PCI Express (PCIe) and Ethernet were clearly defined
- PCIe as a chip-to-chip interconnect, and
- Ethernet as a system-to-system technology
While Ethernet switches are most commonly used in inter-system communication, the native chip-to-chip interconnect and dominating serial extension bus PCIe is on its way to compete with Ethernet, especially for the intra-system communication. Key benefits are very low latency and simple switching logic in combination with reduced design complexity, power consumption and costs. Especially in times of IoT and Industry 4.0 applications where everything is connected and massive 'big' data needs to be processed, high-speed switching is is gaining more and more importance for embedded system designs. It is used to orchestrate the data flow between multiple CPU boards, storage media and high-speed I/Os in applications like image processing, autonomous driving, video surveillance or for building up supercomputers. - https://www.menmicro.com/news-media/product-news/highly-efficient-switching-ethernet-vs-pcie/
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具