What is an example in which knowing C will make me write better code in any other language?

前端 未结 20 1522
独厮守ぢ
独厮守ぢ 2021-02-05 12:40

In the Stack Overflow podcasts, Joel Spolsky constantly harps on Jeff Atwood about Jeff not knowing how to write code in C. His statement is that \"knowing C helps you write bet

20条回答
  •  南旧
    南旧 (楼主)
    2021-02-05 13:20

    Knowing C helps you to write better code in C. I guess that the example of Joel Spolsky is of little use in C++ or Objective-C where specific classes for manipulating strings exist and have been crafted with performance in mind. Moreover, using C tricks in other languages may be couter productive.

    Nevertheless, C knowledge is very helpful to understand general concepts in other languages and what is behind the hood in many situations.

提交回复
热议问题