kiri@ani.social to Programmer Humor@programming.dev · edit-21 day agoC++ani.socialimagemessage-square74fedilinkarrow-up1709arrow-down113file-text
arrow-up1696arrow-down1imageC++ani.socialkiri@ani.social to Programmer Humor@programming.dev · edit-21 day agomessage-square74fedilinkfile-text
minus-squareriodoro1@lemmy.worldlinkfedilinkarrow-up85arrow-down7·1 day agoAm I bad at programming? No, it’s the language thats wrong.
minus-squareRoyaltyInTraining@lemmy.worldlinkfedilinkarrow-up85arrow-down2·1 day agoExcept that many other languages have proven that C++ is simply terrible at providing meaningful errors.
minus-squareSorryQuick@lemmy.calinkfedilinkarrow-up4arrow-down3·edit-219 hours 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-up7arrow-down2·7 hours 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-up2arrow-down2·5 hours 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-up5·1 day agoI wish there was something like that for SQL
minus-squareRicky Rigatoni@lemm.eelinkfedilinkarrow-up6arrow-down1·24 hours agoWe can always make a Rust Query Language
minus-squareQuazarOmega@lemy.lollinkfedilinkarrow-up6·24 hours agoFeels like some arcane divination magic, I WANT IT
minus-squareasdfasdfasdf@lemmy.worldlinkfedilinkarrow-up17·1 day 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.
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