转一个网文:C++的反思 - 悲催的科学匠人 - 冷水's blog

转一个网文:C++的反思

冷水 posted @ 2015年7月23日 20:45 in C++ , 2042 阅读

 

转一个网文:C++的反思

http://www.skywind.me/blog/archives/1398

-----------------------------  节选 ---------------------------------

关于 C++的笑话数都数不清:

笑话:C++是一门不吉祥的语言,据说波音公司之前用ADA为飞机硬件编程,一直用的好好的,后来招聘了一伙大学生,学生们说我靠还在用这么落后的语言,然后换成C++重构后飞机就坠毁了。

笑话:什么是C++程序员呢?就是本来10行写得完的程序,他非要用30行来完成,并自称“封装”,但每每到第二个项目的时候却将80%打破重写,并美其名曰 “重构”。

笑话:C容易擦枪走火打到自己的脚,用C++虽然不容易,但一旦走火,就会把你整条腿给炸飞了。

笑话:同时学习两年 Java的程序员在一起讨论的是面向对象和设计模式,而同时学习两年 C++的程序员,在一起讨论的是 template和各种语言规范到底怎么回事情。

笑话:教别人学 C++的人都挣大钱了,而很多真正用 C++的人,都死的很惨。

笑话:C++有太多地方可以让一个人表现自己“很聪明”,所以使用C++越久的人,约觉得自己“很聪明”结果步入陷阱都不知道,掉坑里了还觉得估计是自己没学好 C++。

笑话:好多写了十多年 C++程序的人,至今说不清楚 C++到底有多少规范,至今仍然时不时的落入某些坑中。

笑话:很多认为 C++方便跨平台的人,实际编写跨平台代码时,都会发现自己难找到两个支持相同标准的 C++编译器。 

-----------------------------  节选 ---------------------------------

其中,作者提到“其实C++的矛盾在于一方面承认作为系统级语言内存管理应该交给用户决定,一方面自己却又定义很多不受用户控制的内存操作行为”。确实,看c++书籍的时候,对于其中编译器背后干的一些复杂的事情,感觉真是“你tmd还背着我干了啥?”

 

c++确实强大,但是好的c++程序员很少,科学计算领域的好c++程序员更少。我刚工作时,在一个小公司主管一个项目,技术方案上我说了算,因此我推c++开发。结果是组里5个人,能用c++的也就一个半(包括我自己),于是大多数c++编程的活都是我干了。所以后来管一个更大的cfd项目,果断用fortran 9x/2003。

后来碰到有人鄙视fortran,吹捧c++,我就心里“呵呵”了。

  • 无匹配
  • 无匹配
Avatar_small
Nothing 说:
2015年8月06日 05:18

德国观光团给师兄点赞

Avatar_small
Nothing 说:
2015年8月06日 05:18

德国观光团给师兄点赞

Avatar_small
AP 10th Physics Mode 说:
2022年9月15日 03:36

Physical Science is the part of Science known as Physics (PS), every student in class 10th grade studying at Government & Private Schools of the state board can download the AP SSC PS Model Paper 2023 with answers for all topics of the course designed by the board experts based on the new revised syllabus and curriculum of the BSEAP. Either Telugu medium, English medium and Urdu medium students of class 10th can download the AP SSC Physics model papers 2023 to practice with regular revisions and mock tests. AP 10th Physics Model Paper Class teachers and leading institutional experts are prepared those AP 10th Class PS Model Paper 2023 Pdf with answers that support all exam formats of the board such as Summative Assessments (SA-1 & SA-2) and Formative assessments (FA-1, FA-2, FA-3, FA-4) along with Assignments.

Avatar_small
Alyssa 说:
2022年12月30日 23:46

C++ is a popular programming language that is used in a wide variety of applications, including operating systems, web browsers, and games. It is a statically-typed, compiled language that provides a high level of control and performance. However, C++ can also be a challenging language to learn and use. It has a steep learning curve and requires a lot of attention cbd health benefits to detail. It is also prone to errors, such as memory leaks and segmentation faults, which can be difficult to debug. Good to see the details shared here.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee