Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

The Ultimate Question of Programming, Refactoring, and Everything

53 views
Skip to first unread message

Andrey Karpov

unread,
Feb 19, 2017, 8:31:53 AM2/19/17
to
Yes, you've guessed correctly - the answer is "42". In this article you will find 42 recommendations about coding in C++ that can help a programmer avoid a lot of errors, save time and effort. The author is Andrey Karpov - technical director of "Program Verification Systems", a team of developers, working on PVS-Studio static code analyzer. Having checked a large number of open source projects, we have seen a large variety of ways to shoot yourself in the foot; there is definitely much to share with the readers. Every recommendation is given with a practical example, which proves the currentness of this question. These tips are intended for C/C++ programmers, but usually they are universal, and may be of interest for developers using other languages.

Link: https://software.intel.com/en-us/articles/the-ultimate-question-of-programming-refactoring-and-everything

woodb...@gmail.com

unread,
Feb 19, 2017, 4:43:07 PM2/19/17
to
On Sunday, February 19, 2017 at 7:31:53 AM UTC-6, Andrey Karpov wrote:
> Yes, you've guessed correctly - the answer is "42". In this article you will find 42 recommendations about coding in C++ that can help a programmer avoid a lot of errors, save time and effort. The author is Andrey Karpov - technical director of "Program Verification Systems", a team of developers, working on PVS-Studio static code analyzer. Having checked a large number of open source projects, we have seen a large variety of ways to shoot yourself in the foot; there is definitely much to share with the readers. Every recommendation is given with a practical example, which proves the currentness of this question. These tips are intended for C/C++ programmers, but usually they are universal, and may be of interest for developers using other languages.
>
> Link: https://software.intel.com/en-us/articles/the-ultimate-question-of-programming-refactoring-and-everything


How about posting one or two of your recommendations here? I'm not
intrigued when I see the phrase "C/C++ programmers."


Brian
Ebenezer Enterprises - "America isn't great because America is powerful.
America is powerful because America is great." Ben Shapiro.

http://webEbenezer.net

Andrey Karpov

unread,
Feb 20, 2017, 3:22:36 AM2/20/17
to
> How about posting one or two of your recommendations here? I'm not
> intrigued when I see the phrase "C/C++ programmers."

I have noticed that there is always some "know-all" who doesn't like C/C++.

C/C++ programmers should be read as C programmers or C++ programmers. I guess nobody gets confused when it is written Java/C# or Java/JavaScript (example: Xx is seeking a Java/JavaScript Engineer for a direct hire position). By analogy, to make the story shorter, a lot of authors, me included, write C/C++, meaning that it is C or C++ language.

Öö Tiib

unread,
Feb 23, 2017, 7:40:19 PM2/23/17
to
Java/C# have quite same roots but Java/Javascript? Nonsense connection.
Somewhat worse than C/C++ that have lot more roots in common than
Java/Javascript.
0 new messages