kiri@ani.social to Programmer Humor@programming.dev · edit-23 months agoC++ani.socialimagemessage-square65fedilinkarrow-up1154arrow-down12file-text
arrow-up1152arrow-down1imageC++ani.socialkiri@ani.social to Programmer Humor@programming.dev · edit-23 months agomessage-square65fedilinkfile-text
minus-squareriodoro1@lemmy.worldlinkfedilinkarrow-up22arrow-down2·3 months agoAm I bad at programming? No, it’s the language thats wrong.
minus-squareRoyaltyInTraining@lemmy.worldlinkfedilinkarrow-up23arrow-down1·3 months agoExcept that many other languages have proven that C++ is simply terrible at providing meaningful errors.
minus-squareSorryQuick@lemmy.calinkfedilinkarrow-up4arrow-down1·edit-23 months agoThe whole point of a segfault is that you can’t really know anything about it. Even in rust, when you get a segfault there is no meaningful error.
minus-squareWhyJiffie@sh.itjust.workslinkfedilinkEnglisharrow-up3arrow-down2·3 months agopoint is, Rust manages to give you not a segfault but a meaningful error almost all the time until you use unsafe
minus-squareSorryQuick@lemmy.calinkfedilinkarrow-up1·3 months agoIf you’re getting a segfault in C++, it’s also cause you used unsafe code. It’s just not officially enclosed in an “unsafe” block.
minus-squareQuazarOmega@lemy.lollinkfedilinkarrow-up0·3 months agoI wish there was something like that for SQL
minus-squareRicky Rigatoni@lemm.eelinkfedilinkarrow-up5arrow-down1·3 months agoWe can always make a Rust Query Language
minus-squareQuazarOmega@lemy.lollinkfedilinkarrow-up5·3 months agoFeels like some arcane divination magic, I WANT IT
minus-squareasdfasdfasdf@lemmy.worldlinkfedilinkarrow-up9·3 months agoI mean, this is correct in many cases, unironically. It should be one of the core purposes of a programming language to help humans to write the code they intend. If a language doesnt do that then it’s bad.
minus-squareI Cast Fist@programming.devlinkfedilinkarrow-up2·3 months agoBrainfuck has entered the chat
Am I bad at programming?
No, it’s the language thats wrong.
Except that many other languages have proven that C++ is simply terrible at providing meaningful errors.
The whole point of a segfault is that you can’t really know anything about it. Even in rust, when you get a segfault there is no meaningful error.
point is, Rust manages to give you not a segfault but a meaningful error almost all the time until you use unsafe
If you’re getting a segfault in C++, it’s also cause you used unsafe code. It’s just not officially enclosed in an “unsafe” block.
I wish there was something like that for SQL
We can always make a Rust Query Language
Feels like some arcane divination magic, I WANT IT
I mean, this is correct in many cases, unironically.
It should be one of the core purposes of a programming language to help humans to write the code they intend. If a language doesnt do that then it’s bad.
Valid languages:
That’s it
Brainfuck has entered the chat