Skip to content

Instantly share code, notes, and snippets.

@ideawu
Created December 11, 2020 04:36
Show Gist options
  • Select an option

  • Save ideawu/17d47937a6a3e03651d71d7c9ea284ad to your computer and use it in GitHub Desktop.

Select an option

Save ideawu/17d47937a6a3e03651d71d7c9ea284ad to your computer and use it in GitHub Desktop.
C++思维误区

写 C++ 的程序员, 特别是那种只写 C++ 的程序员, 尤其是只写 C++, 还有点擅长的程序员, 会有很多思维误区.

例如, 抽象能力不足.

在做系统设计时, C++ 程序员往往在形式化上面进行抽象, 就跟 C++ 语言一样, 主要在语法层面提供特性, 因为 C++ 就是要在编译时解决问题. 但 Java 程序员, 或者使用其它面向对象编程语言的程序员, 一般是在本质层面进行抽象.

不是说, 关注本质的程序员就更好. 只是, 很悲哀的, C++ 程序员往往"浮于表面"而不自知, 反而认为自己专注底层, 做的是核心, 实则太过于追求形式化.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment