Click here to Skip to main content
14,240,294 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Tim Deveaux9-Apr-19 18:40
memberTim Deveaux9-Apr-19 18:40 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Dean Roddey9-Apr-19 19:51
memberDean Roddey9-Apr-19 19:51 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Nelek9-Apr-19 20:05
protectorNelek9-Apr-19 20:05 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Tim Deveaux9-Apr-19 20:11
memberTim Deveaux9-Apr-19 20:11 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Dean Roddey10-Apr-19 8:01
memberDean Roddey10-Apr-19 8:01 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Tim Deveaux10-Apr-19 16:39
memberTim Deveaux10-Apr-19 16:39 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Steve Naidamast10-Apr-19 3:42
professionalSteve Naidamast10-Apr-19 3:42 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Dean Roddey10-Apr-19 10:35
memberDean Roddey10-Apr-19 10:35 
That can be true. Of course you don't have to use any of the 'modern' bits if you don't want, at least you don't if you are willing to roll your own. If you use third party libraries you are forced to use whatever hodgepodge of features that the libraries you use choose to implement, to some degree anyway.

But C++ had all the capabilities you really NEEDED a decade plus ago. There have been some useful things that are not burdensome added since then, and I make use of those, but it's not like you couldn't do really high quality, large scale code with C++ in the 2000s.

To me, things that increase compile time safety (where that doesn't mean over-templating) are all useful things. Override, method default, method delete, and [nodiscard] are simple to use, don't introduce overhead or complexity, and allow the compiler to watch your back day after day.

Lambdas if not abused can get rid of a class of complexities because of their ability to be capturing. But, you can't pass capturing lambdas to function pointer parameters. So you are forced to use generic templated parameters, which gets you into the massive silliness that is so much part of modern C++, the 'one error generates a million barely comprehensible errors' thing.

Stuff like RAII and smart pointers (which I call janitors because the concept really goes way beyond RAII) has always been around. One thing that amuses me is how 'modern C++' people somehow think putting everything in a smart pointer is somehow magically making their code safe. Often it is just moving the dangers to other realms, which are just as hard to see (maybe more so sometimes), and just as silently deadly (maybe even more so sometimes.)
Explorans limites defectum

GeneralRe: Is the new C++ as easy to use as Python? Pin
Carlosian10-Apr-19 6:50
memberCarlosian10-Apr-19 6:50 
GeneralRe: Is the new C++ as easy to use as Python? Pin
jschell13-Apr-19 4:55
memberjschell13-Apr-19 4:55 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Dean Roddey13-Apr-19 7:20
memberDean Roddey13-Apr-19 7:20 
GeneralRe: Is the new C++ as easy to use as Python? Pin
jschell21-Apr-19 7:18
memberjschell21-Apr-19 7:18 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Dean Roddey21-Apr-19 8:40
memberDean Roddey21-Apr-19 8:40 
GeneralRe: Is the new C++ as easy to use as Python? Pin
jschell27-Apr-19 6:36
memberjschell27-Apr-19 6:36 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Member 91670579-Apr-19 21:38
memberMember 91670579-Apr-19 21:38 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Mike Winiberg10-Apr-19 2:32
professionalMike Winiberg10-Apr-19 2:32 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Dean Roddey10-Apr-19 7:52
memberDean Roddey10-Apr-19 7:52 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Kiriander10-Apr-19 20:00
memberKiriander10-Apr-19 20:00 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Dean Roddey10-Apr-19 20:53
memberDean Roddey10-Apr-19 20:53 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Nand329-Apr-19 21:45
memberNand329-Apr-19 21:45 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Thornik10-Apr-19 2:54
memberThornik10-Apr-19 2:54 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Rick Shaub10-Apr-19 4:56
memberRick Shaub10-Apr-19 4:56 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Dean Roddey10-Apr-19 7:49
memberDean Roddey10-Apr-19 7:49 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Rick Shaub10-Apr-19 8:25
memberRick Shaub10-Apr-19 8:25 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Dean Roddey10-Apr-19 8:34
memberDean Roddey10-Apr-19 8:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.