News for hackers. Stuff that matters.
Re:ATM NFC Hack by netr0ute on Saturday June 26, 2021 @07:13PM (#27646879)
C/C++ isn't the issue, it's the lack of not using memory-safe features like smart pointers which you'll need C++ for.
Re:ATM NFC Hack by nathanaldensr on Saturday June 26, 2021 @07:52PM (#27647123)
While you're technically correct, your ignoring the pragmatic truth: most developers are terrible and should never write code. Because of this reality, C/C++ and all its footguns are something to be avoided unless there is no other alternative (usually this happens when integrating with legacy software or in industries like gaming where the switching costs are extreme).
Re:ATM NFC Hack by junon on Sunday June 27, 2021 @06:02AM (#27650159)
So you're saying that since we're encouraging people to flood the market with little to no skill, we should instead accommodate them with Baby's First Programming Language and then force all of the other developers to follow the same methodology?

This makes no sense. It just sounds like Go.

Re:ATM NFC Hack by hughrr on Sunday June 27, 2021 @07:14AM (#27650586)
Not the OP but we should weed out all the incompetent folk ASAP rather than hide it to maintain delivery speed.
Re:ATM NFC Hack by junon on Sunday June 27, 2021 @07:20AM (#27650622)
I completely agree.
Re:ATM NFC Hack by agumonkey on Sunday June 27, 2021 @07:55AM (#27650847)
terrible programmers ain't nothing new though and large corp in critical fields are aware of that and have (or had) structural mitigations (slow and heavy processes, regulations etc)
Re:ATM NFC Hack by IshKebab on Sunday June 27, 2021 @05:47AM (#27650084)
This is sort of true, but show me a (non-trivial) C++ program that doesn't resort to naked pointers or references at some point.

In the real world, smart pointers help a lot and are a great idea but they don't fully solve the problem in the same way that Rust or memory safe languages do.

[dead]
Re:ATM NFC Hack by catlifeonmars on Saturday June 26, 2021 @08:37PM (#27647392)
Pointers kill people
Re:ATM NFC Hack by scintill76 on Sunday June 27, 2021 @02:38AM (#27649178)
“We kill people based on memory safety.” - Michael Hayden, probably
Re:ATM NFC Hack by gabereiser on Saturday June 26, 2021 @10:31PM (#27647987)
null pointers kill people
Re:ATM NFC Hack by ndesaulniers on Saturday June 26, 2021 @10:59PM (#27648133)
Dangling pointers kill people.
Re:ATM NFC Hack by kumarjsingh6 on Saturday June 26, 2021 @11:19PM (#27648251)
redditizing HN kills people