Rust is more like: unless you can mathematically prove to me that this is equivalent to a nut there is no ducking way Iβll ever let you compiled this.
And then still segfault
https://github.com/Speykious/cve-rs/blob/main/src/segfault.rs
IME Rust programs crash at about the same rate as other languages. βRewrite everything in Rustβ hasnβt made much of a difference for me, so far.
C# should actually be βWhat Java said, except itβs ICrackable
β.
No, actually C#'s answer should be: βWhat Java said - hold on, what Python said sounds good too, and C++'s stuff is pretty cool too - letβs go with all of the above.β
C#, or as I like to call it βthe Borg of programming languagesβ.
I got my first software developer role last year and it was the first time Iβd written C#, I was more TypeScript. Now we use both but I must say I really like C# now that Iβm used to it.
StackOverflow: Question closed as duplicate. Someone else already asked whether or not something is a nut.
C can STRUCTurise classes tho
Yeah, you can technically write object oriented code in C. Or any other language. Just that actual OOP languages provide a nicer syntax and compile time checks.
Rust is kind of a good example of this. Itβs technically not an object oriented language, but the trait system brings it close.
I just dabbled in javascript again, and that description is spot on!
console.log(βjavascript operators are bβ + βaβ + + βaβ + βaβ);
The only reason people use JS is because itβs the defacto language of browsers. As a language itβs dogshit filled with all kinds of unpleasant traps.
Here is a fun one I discovered the other day:
new Date('2022-10-9').toUTCString() === 'Sat, 08 Oct 2022 23:00:00 GMT'
new Date('2022-10-09').toUTCString() === 'Sun, 09 Oct 2022 00:00:00 GMT'
So padding a day of the month with a 0 or not changes the result by 1 hour. Every browser does the same so I assume this is a legacy thing. Itβs supposed to be padded but any sane language would throw an exception if it was malformed. Not JavaScript.