Rusty 🦀 Femboy 🏳️🌈 to Lemmy Shitpost • 3 months agoRustlemmy.blahaj.zoneimagemessage-square19fedilinkarrow-up1233arrow-down122starcopymore-verticalflagCreate ReportslashBlock user
arrow-up1211arrow-down1imageRustlemmy.blahaj.zoneRusty 🦀 Femboy 🏳️🌈 to Lemmy Shitpost • 3 months agomessage-square19fedilinkstarcopymore-verticalflagCreate ReportslashBlock user
minus-squareTrailblazing Braille Taserlinkfedilink14•3 months agoThe C++ side gives you what you need to create your own seat belt: spools of razor wire and clippers to remove the sharp edges (but no gloves). If you cut yourself, it’s your own damn fault. Real developers have discipline. arrow-up116arrow-down12file-textreply1starmore-verticalmailMessageflagCreate ReportslashBlock user
minus-squareL3ft_F13ld!linkfedilinkEnglish2•edit-23 months agoAs a not-a-developer, this sounds like my understanding of C, rather than C++. arrow-up12arrow-down10file-textreply1starmore-verticalmailMessageflagCreate ReportslashBlock user
minus-squareTrailblazing Braille Taserlinkfedilink2•3 months agoIn practice, I tend to agree. It’s easier to avoid shooting yourself in the foot with C++, but it’s still just waiting for you to screw up. I’m mainly getting at Undefined Behavior (UB), which both C and C++ have plenty of. This article from Raymond Chen has some excellent concrete examples: https://devblogs.microsoft.com/oldnewthing/20140627-00/?p=633 arrow-up12arrow-down10file-textreply1starmore-verticalmailMessageflagCreate ReportslashBlock user
The C++ side gives you what you need to create your own seat belt: spools of razor wire and clippers to remove the sharp edges (but no gloves). If you cut yourself, it’s your own damn fault. Real developers have discipline.
As a not-a-developer, this sounds like my understanding of C, rather than C++.
In practice, I tend to agree. It’s easier to avoid shooting yourself in the foot with C++, but it’s still just waiting for you to screw up.
I’m mainly getting at Undefined Behavior (UB), which both C and C++ have plenty of. This article from Raymond Chen has some excellent concrete examples: https://devblogs.microsoft.com/oldnewthing/20140627-00/?p=633