Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Bertil Muth
Bertil Muth

Posted on

     

Has C++ aged badly?

The last time I consistently programmed C++ was several years ago.

A few days ago, a developer told me that over the years, new C++ versions have become more and more bloated.

He also said that the primary argument for using C++, execution speed, doesn’t count any more, given languages like Rust are well designed and performant.

What do you think?

Top comments(10)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
josephthecoder profile image
Joseph Stevens
  • Joined
• Edited on• Edited

I think C++ has aged relatively poorly, some other languages have aged worse, but C++ certainly isn't in the "top 10 languages that have aged the nicest" bracket.
Some real standouts that make think that are; digraphs and trigraph operators.
Having 12 different keywords for access modifiers is another standout too.
I could probably think of others, but that's sort of why I think that. (Shrugs)

CollapseExpand
 
renegadecoder94 profile image
Jeremy Grifski
I teach computer science to undergrads and write for The Renegade Coder. I'm most likely taking care of my daughter, watching the Penguins, or reading manga.
  • Email
  • Location
    Columbus, Ohio
  • Education
    B.S. in CE from CWRU 2016; M.S. in CSE from OSU 2020; PhD in EED from OSU 2024
  • Pronouns
    He/Him
  • Work
    Lecturer at The Ohio State University
  • Joined
• Edited on• Edited

I think C++ lives up to the old adage:with great power comes great responsibility. I, personally, never cared for the language. It has an incredibly extensive list of features which means you'll never find two developers writing the same solution the same way. As someone who values readability, I think that causes the language to age poorly. That said, it's still quite alive and well—especially in the embedded world as a lot of engineering teams can't afford to migrate 20-year-old control systems to new languages.

CollapseExpand
 
red1939 profile image
red1939
  • Joined

Everyone coding in C++ for sufficiently long time will give you an extensive list of features missing/wrongly defined/needless & conflicting. The truth is that while C++ will never be the coolest & freshest language it gets the work done both efficiently and effectively.

CollapseExpand
 
eljayadobe profile image
Eljay-Adobe
Nerd. Compiled languages: C++, Swift, C#, and F#. Script languages: Python and Lua. Shell language: bash. Platforms: macOS, iOS, Windows.
  • Location
    Minnesota
  • Education
    University of Minnesota
  • Work
    Software engineer at Adobe on Photoshop.
  • Joined

There is a fabulous book called "The Unix Haters Handbook", which is now available as a PDF from the author. Chapter 10 was called C++: The COBOL of the 90s.

I don't think modern C++ has improved its situation since then.

I consider my own project, which is an enormous mostly C++ project. What other modern and mainstream (say in the top 50 on the TIOBE charts) language could it be written in today, if it were to be written from scratch?

The alternative options are not very promising. Alas.

I did say "mostly C++", because there are about 50 languages used to make the application. Some of that being code that compiles as part of the shipping application. Some of that being code used to create the shipping application. But it's predominantly C++.

CollapseExpand
 
pogsquog profile image
Pogsquog
Long time software engineer and tinkerer
  • Location
    Uk
  • Work
    Principal Engineer at Irisys
  • Joined

C++ has improved massively with the addition of auto, updated standard library, lambdas and better tools such as clion, clang tidy and Google sanitisers. The language is bloated, because it maintains backward compatibility, but it is the best it has ever been. Compared to other languages, the libraries are fairly terrible, mostly because there are so many which are horribly out of date and inconsistent with each other... But again this has slowly improved over time.

CollapseExpand
 
tombstonetumbleweedart profile image
TombstoneTumbleweedArt
C++ enthusiast, digital and traditional artist.
  • Location
    Arizona
  • Work
    Indie dev at St. Andrew's Church
  • Joined

I've worked with C++ on and off since the early 90s. In that time I've seen many languages come and go, flirted with a few (Python and Rust, mainly), but last year when it came time to write a new app from scratch there was no hesitation to use C++. Sure, it's huge, it's overly complex, and there's large amounts of it I'll probably never use or understand. But I love it, and it works, and it's fast as hell with a million libraries available.

CollapseExpand
 
anders profile image
Anders
  • Location
    Sweden
  • Work
    CTO at Upstream Business Solutions
  • Joined

That seems to be the consensus from all the game devs at least, granted that is a rather specific subset of people.

Its been some years since I coded C++ but even then I didn't exactly feel that anything was missing from the language.

CollapseExpand
 
jrwren profile image
Jay R. Wren
jamming with the cowboys in cyberspace since 1995coding basic on Atari 800XL since 1985
  • Location
    Ann Arbor, MI
  • Joined

I disagree strongly that new c++ has become more and more bloated. If anything, C++ is in a better place than it has ever been, with a more concise language definition and a better standard library than ever. That said, it is still a beast and the most complex language every so widely used.

As for Rust, well yes, absolutely, 100%.

CollapseExpand
 
bertilmuth profile image
Bertil Muth
Agile coach and developer
  • Location
    Munich, Germany
  • Education
    Diploma, Computer Science
  • Work
    Senior Consultant at HOOD GmbH
  • Joined

Any C++ proponents here :-) ?

CollapseExpand
 
lukedashjr profile image
Luke Dashjr
  • Joined

Rust is insecure still. There's no reasonable way to bootstrap without trusting some third party compiler binary.

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Agile coach and developer
  • Location
    Munich, Germany
  • Education
    Diploma, Computer Science
  • Work
    Senior Consultant at HOOD GmbH
  • Joined

More fromBertil Muth

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp