|
I agree with you that C++ is in danger of becoming a modern version of PL/1, containg something for everyone. I also agree that learning the entire language (and standard libraries) is becoming more and more difficult. However, C++ shares with C the philosophy that "if you don't use it, you don't pay for it" (or words to that effect). There is no reason that you can't use C++ as "C with classes", or at any other level between that and C++20/23/xx.
The language features I most use are RAII (exists from the ARM), templates & exceptions (C++98), threads & atomic variables (C++11), smart pointers (C++11?), and a few more advanced features (various, up to C++17). These have changed slighly over the years, but the changes are manageable.
Obviously, I use the standard library as well, but most changes to that have not been breaking changes.
Mike Winiberg wrote: Speeding Up C++ Build Times | Figma Blog[^]
Lastly, a decent developer spends most of his/her time on designing, writing code, and thinking about the code (debugging). The compilation time should be a small fraction of the total development time, and even that (as the article points out) may be optimized with a good design of your system.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Damn, that article is making the rounds !!
The (one of) problem with C++ is that it's an old language that needs to compete with more modern languages.
It can only be incrementally improved.
We underestimate how large the C++ code base is actually in production.
You can't just break backward compatibility (as much as I would like them to do it)
If that happens, many, many large organisations will never upgrade their toolsets.
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
Mike Winiberg wrote: As an incredibly enthusiastic user of C++ from its very first release,
45 years. And still enthusiastic?
Not denigrating C++ but rather that it is difficult to keep the same enthusiasm for anything that long.
Mike Winiberg wrote: technical debt that then has to be fought against in other ways.
Get a very old set of libraries, say before templates, update them to work with your compiler and then just don't use anything new.
Mike Winiberg wrote: This article I think demonstrates this nicely
Far as I can tell that doesn't enumerate the size of the code base. But it certainly seems to suggest that the author is working with a large one.
And a legacy one at that.
So I don't really see anything that suggests that there is a problem with C++ but rather a process problem that has been allowed to grow without bound. And so they want to use technology to fix it. Rather than decoupling the code base to reduce the dependent sections.
|
|
|
|
|
No, I am NOT posting programming question , the post is clearly marked as "rant".
The unnamed site , to protect the guilty , rejected the attached code as " poorly formatted".
until I deleted #ifdef ...,#endif. Then it passed.
I am a believer that Alan Cooper was right when he stated that coders will take the path of least resistance / use less brain , when coding.
(Not to be confused with KISS...)
Apparently adding " post it anyway , WE can make an exception " would indirectly indicate that
the code is void of better analysis, hence more code / brain usage would be required.
void SettingsDialog::closeEvent( QCloseEvent* event )
{
#ifdef RETILE
text = "\t#i#ifdef RETILE \n";
text += "TRACE START Retile mdiArea subwindows .... ";
text += " ";
text += Q_FUNC_INFO;
text += QString::number(__LINE__);
qDebug().noquote() << text;
#endif
text += " ";
text += "\n\t test send text to child";
|
|
|
|
|
|
You could have simply indented the # lines instead of deleting them. Hashdent is bad formatting in my opinion.
|
|
|
|
|
The fact that AI rejected your post demonstrates that AI is not completely devoid of real intelligence.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
you forgot to highlight "your"
other than that - nothing new , just another version of saloon put-down
" ... verrry interesting , but stupid " - end of quote
|
|
|
|
|
Hmm, I know I saw this somewhere....
Quote: if you cannot say something nice , DO NOT SAY ANYTHING AT ALL
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
I know it as:
Quote: If what you have to say is not more beautiful than silence... shut the fvck up
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Salvatore Terress wrote: text = "\t#i#ifdef RETILE \n";
I would suspect more that it has some auto-formatting code which did not like the above line inside the other block.
|
|
|
|
|
Patient: "OK...er... give me the good news"
Doctor: "you have a fatal cancer and have 24 hours to live"
Patient: "Doc, if that's the GOOD NEWS, what's the BAD news?"
Doctor: "I should have called you yesterday"
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Further:
Patient: I am already dead. This is my ghost speaking.
|
|
|
|
|
I think I have submitted this one but here it is
Man goes into hospital with with a bad leg.
Dr: "That looks bad. Time to go to Surgery."
After surgery, patient asks "How did it go?"
Dr: "I have some bad news and some good news."
Patient: "What's the good news?"
Dr: "The leg is getting better."
Patient: What's the bad news?"
Dr: "We cut off the wrong leg."
Grrrr
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
The classic version in Norway goes:
"I have some bad news and some good news for you.
We were supposed to remove your left leg.
But we made a mistake, removing your right leg,
and we had to remove the left leg afterwards.
We are sorry, but you have no legs any more.
But there are some good news:
The guy in the next bed wants to buy your slippers."
Religious freedom is the freedom to say that two plus two make five.
|
|
|
|
|
lol
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
The doctor gave me six months to live. I didn't pay him, so he gave me another six months.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Rodney Dangerfield?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I don't remember where I first heard it, but it isn't original with me.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
an oldie but a goodie
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Too close to home for me.
|
|
|
|
|
Wordle 1,046 4/6*
⬛⬛🟩⬛⬛
⬛🟨🟩🟩⬛
⬛🟩🟩🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,046 4/6
⬜⬜⬜🟨⬜
🟨⬜🟨⬜⬜
⬜🟩🟩🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,046 5/6
⬜⬜⬜⬜⬜
⬜🟨🟨⬜⬜
⬜⬜🟩🟨⬜
🟩🟩🟩⬜⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,046 4/6
⬜🟨⬜⬜⬜
⬜⬜⬜🟨⬜
⬜🟩🟩🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|