|
Thank you man, and I'll know tomorrow. Just happened to be I had other interviews lined up the past couple of days I promised to go to already.
Jeremy Falcon
|
|
|
|
|
I was reading this article that said that we need to yank out C++ code from dangerous areas and rewrite them in Rust. One commenter mentioned that the newest C++ iteration fixes all the problems. Now I had "retired" back when auto_ptr was the hot new thing to take care of the deletion problem, and it seems that there are some new language features to fix the issues that auto_ptr introduced, and of course there is the whole new section of the language to give us the functional programming paradigm (I always like to use that word, LOL). That said, I suppose even with all the new features, it still is possible to blow one's foot off, something that Rust does not seem to allow oneself to do.
https://techcrunch.com/2017/07/16/death-to-c/[^]
|
|
|
|
|
An article to cancel, only my mind
modified 19-Jan-21 21:04pm.
|
|
|
|
|
If you follow good practice when designing your C++ code then your code will be safe.
See :C++ Core Guidelines
I'd rather be phishing!
|
|
|
|
|
I mean seriously... what does Bjarne know!?
Jeremy Falcon
|
|
|
|
|
Modern C++ (C++11 and up) gives you ways to protect yourself, but it doesn't force you to use them. And even then, it just makes it harder, not impossible, to do stupid stuff. But that's true for any language.
|
|
|
|
|
And that's good. Otherwise the language would be slow and too restricted to be of any use.
|
|
|
|
|
You mean like managed languages?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Yes. The worst thing is that some people don't really know what they are doing anymore and turned ignorance into a matter of faith. I have seen guys who were unable to find a memory leak that forced the server to be reset every day. Instead of finding the leak, they insisted on not managing memory and tried to bat the garbage collector into submission.
I perfer C++, because it let's you do what you want and therefore also leaves you with the responsibility. When something goes wrong, it's time to use your head and not to recite religious beliefs.
|
|
|
|
|
Last project I worked on had 250 meg in the source control repository.
The 'performance' problems I encountered were all due to poor design and architecture decisions. Not mine. Best I can suppose it that they were based on ignorance, fantasy and whim. And some of that isn't conjecture when people actually admitted that they did it wrong or did it just to try something new.
I am very thankful that I didn't also need to track down memory leaks.
|
|
|
|
|
I've also seen projects go to crawl trying to locate the memory leak. Every time, it was proven that the 3rd party library was to blame.
|
|
|
|
|
C++ is far from a safe language. Specially if you need to deal with many DLLs, maybe compiled by different C++ compilers. Most of the safety features of C++ are only safe in the context of a single binary or maybe different binaries built by the same compiler. In fact templates in general (used by all kinds of "safe pointers") suffer a lot of optimizations that may break across binaries.
So, is it safe now?
Well, it has much more safety features than in the past. But those are not 100% guaranteed in all scenarios and, well, you can ignore them at any time.
|
|
|
|
|
Avoiding smart pointers and third party fancy stuff, should do the trick. And most of the critical applications runs on embedded systems, that have their own simplified, hardware specific compilers.
There is only one Vera Farmiga and Salma Hayek is her prophet!
Advertise here – minimum three posts per day are guaranteed.
|
|
|
|
|
You can blow your foot off with Rust too, but it's a bit more explicit.
|
|
|
|
|
I dont like "safe" languages, because all safety features are brakes. C++ is dangerous and thats why faster than the rest.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
I like C and C#, but I never really cared for C++.
However, I wish C# were more like C++ -- multi-paradigm and multiple-inheritance.
In my opinion, they made C# too much like VB and not enough like C++.
I don't actually do much that requires OOP, so I find C# forcing me to define a class rather irksome.
|
|
|
|
|
Just to provide some counter balance here before we all go and slit our wrists.
We can continue saying people suck now...
Maybe...
But people are generally awesome...
Then again maybe I'm playing Devil's advocate...
Deep Thoughts.
Jeremy Falcon
|
|
|
|
|
Jeremy Falcon wrote: before we all go and slit our wrists. Actually, I'm sure most would be more than content to watch!
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
|
Jeremy Falcon wrote: But people are generally awesome...
Very, very, generally.
Actually, no. I won't even go that far. Sorry, but there are a lot of people that actually, truly, do totally suck. The kind of suckage that occurs the better you get to know them, their acts, their thinking, and the longer they continue to breath oxygen. If you want deep thoughts, you gotta face the truth.
Marc
Latest Article - Create a Dockerized Python Fiddle Web App
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
Are there lousy people out there? Totally. I can think of a few I'd rather have not have known. But then again, I'm still glad I did know them so I can appreciate the good ones.
Most "lousyness" is out of ignorance and fear and poor communication skills anyway.
There are wonderful people out there too. It'll be harder to find them if we always focus on the lousy ones though.
Yeah I must really love playing devil's advocate.
Jeremy Falcon
|
|
|
|
|
Jeremy Falcon wrote: There are wonderful people out there too. It'll be harder to find them if we always focus on the lousy ones though.
True, and the ironic thing is I upvoted your post anyways, because there's the other half of me that sees that glass as half full. Today I'm having a half-empty day.
Marc
Latest Article - Create a Dockerized Python Fiddle Web App
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
|
Jeremy Falcon wrote: have a ton of smileys...
Hah! Thanks! Besides work being the grinding wheel for dull knives, a very beloved member of the community up here succumbed to pancreatic cancer a few days ago and today we went to a viewing / memorial.
And I really need to kick out my tenant in the trailer home followed by selling it. It's a very nice park actually (bucks the "trailer trash" image, there's several parks up here that are really quite nice), and she does no upkeep, and lies about the upkeep she claims to have been doing, so that's on the agenda.
On the other hand, I'm having a blast with my client's software, tweaking the local club server that manages the Beaglebones to report the room status to the cloud server and writing the web page with bootstrap and jqxwidgets to view the room status live, on desktop and mobile devices. Learning more coolness of bootstrap and CSS media every day.
If you ever make you're way up to NYC, let me know and I'll come down from Hudson - would love to meet you!
Marc
Latest Article - Create a Dockerized Python Fiddle Web App
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
I know right? It's only been years. I need to visit NY. My brother has... twice. I know the next trip I have planed is to go back to Louisiana in October for my high school reunion. But, a visit to NY would be awesome.
Sorry to hear about the bloke that passed. Nothing really seems genuine to say in moments like these, but it's always nice to know people are thinking about it.
One of my old buddies was into section 8 land lording for a while, back in New Orleans. He pretty much broke it down to me like this, a lousy tenant will make your life hell. End of story.
Oh, and every now and again I still think about MyXAML.
Intentionally overlooked the fact you're using JavaScript right now...
Jeremy Falcon
|
|
|
|