Anyone else feel scammed by learning C++98 ?

  • Context: C/C++ 
  • Thread starter Thread starter Jamin2112
  • Start date Start date
Click For Summary
SUMMARY

The discussion centers on the perceived obsolescence of C++98 in light of newer features introduced in later versions, such as the 'auto' keyword and range-based for loops. A participant expresses frustration over the complexity of C++98, citing their investment in the C++ Primer book, which they feel is now outdated. Another contributor counters this view by highlighting the natural evolution of programming languages, using examples from C and Fortran to illustrate that changes are often necessary and beneficial. The conversation emphasizes the importance of adapting to new programming paradigms while recognizing the foundational value of earlier language versions.

PREREQUISITES
  • Understanding of C++ programming language, specifically C++98
  • Familiarity with modern C++ features introduced in C++11 and later
  • Knowledge of programming language evolution and its impact on software development
  • Basic comprehension of C and Fortran programming languages
NEXT STEPS
  • Research the differences between C++98 and C++11 features
  • Explore the evolution of programming languages, focusing on C and Fortran
  • Learn about the impact of language changes on software development practices
  • Investigate the relevance of older programming paradigms in modern development
USEFUL FOR

Software developers, particularly those transitioning from C++98 to modern C++, educators teaching programming languages, and anyone interested in the historical context of programming language evolution.

Jamin2112
Messages
973
Reaction score
12
I spent countless hours learning about and writing things like std::string::const_iterator. Now there's stuff like auto, for-each loops, etc. What a scam! I still have my C++ Primer book from 5 years ago. It cost me like $200 and what it taught me was uselessly complex.
 
Technology news on Phys.org
If you don't want to do things in an unnecessarily complex way, then why did you learn C++ in the first place? There are a lot of less complex languages out there.
 
And there are few programming books which are worth a fraction of $200.00.
 
I don't see how it's a scam. Programming languages change over time as a result of requests made to the committees who oversee them. The changes you (Jamin) list are peanuts in comparison to the changes made between Fortran IV and the newest variants of Fortran.

With regard to C, there are quite a few changes between C as described in K & R 1st edition and ANSI C of just a few years later. One area that is notable is the difference in how function parameters are declared. Here's an example of the older style.
C:
fun (arg1, arg2)
int arg1, arg2;
{
   /* body of fun */
   ...
}
 
Depending on what you work on, there is a lot of use for basic C++ and even C. The newer stuff is great when it works, terrible when it doesn't work, and irrelevant on hardware or projects that don't have or don't allow those compilers.
 
  • Like
Likes   Reactions: elusiveshame
It depends on what you want to do with your knowledge and goals. The more you learn, the easier it will be to code in other languages and on other platforms.
 
  • Like
Likes   Reactions: FactChecker

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 6 ·
Replies
6
Views
11K
  • · Replies 49 ·
2
Replies
49
Views
12K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 2 ·
Replies
2
Views
6K