Click here to Skip to main content
15,892,737 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Tim Deveaux9-Apr-19 18:40
Tim Deveaux9-Apr-19 18:40 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Dean Roddey9-Apr-19 19:51
Dean 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
Tim Deveaux9-Apr-19 20:11 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Dean Roddey10-Apr-19 8:01
Dean Roddey10-Apr-19 8:01 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Tim Deveaux10-Apr-19 16:39
Tim 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
Dean 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
Carlosian10-Apr-19 6:50 
GeneralRe: Is the new C++ as easy to use as Python? Pin
jschell13-Apr-19 4:55
jschell13-Apr-19 4:55 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Dean Roddey13-Apr-19 7:20
Dean Roddey13-Apr-19 7:20 
GeneralRe: Is the new C++ as easy to use as Python? Pin
jschell21-Apr-19 7:18
jschell21-Apr-19 7:18 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Dean Roddey21-Apr-19 8:40
Dean Roddey21-Apr-19 8:40 
GeneralRe: Is the new C++ as easy to use as Python? Pin
jschell27-Apr-19 6:36
jschell27-Apr-19 6:36 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Member 91670579-Apr-19 21:38
Member 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
Dean Roddey10-Apr-19 7:52 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Kiriander10-Apr-19 20:00
Kiriander10-Apr-19 20:00 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Dean Roddey10-Apr-19 20:53
Dean Roddey10-Apr-19 20:53 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Nand329-Apr-19 21:45
Nand329-Apr-19 21:45 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Thornik10-Apr-19 2:54
Thornik10-Apr-19 2:54 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Rick Shaub10-Apr-19 4:56
Rick Shaub10-Apr-19 4:56 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Dean Roddey10-Apr-19 7:49
Dean Roddey10-Apr-19 7:49 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Rick Shaub10-Apr-19 8:25
Rick Shaub10-Apr-19 8:25 
GeneralRe: Is the new C++ as easy to use as Python? Pin
Dean Roddey10-Apr-19 8:34
Dean 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.