Stop comparing programming languages

https://programming.dev/post/15522805

Stop comparing programming languages - programming.dev

Stop comparing programming languages * Python is versatile * JavaScript is powerful * Ruby is elegant * C is essential * C++ * Java is robust

  • C++ is fine
  • Python is fine
  • C# is fine
  • PHP is fine
  • JavaScript is fine
  • C is fine
  • Java is fine

I could go on

PHP is fine

i will fine you

JavaScript is also not fine.

C++ apparently has a lot of footguns if you use too many parts of it. C and orthodox C++ are fine.

people say this but C is significantly more batshit than javascript

oh you used scanf? one of the basic functions of our language? sorry that's got a buffer overflow vulnerability so now your application is compromised

Yeah, but as far as I understand that’s not a C vulnerability. It wasn’t added. C just exposes how the underlying CPU works.

If you could avoid exposing dangerous memory quirks but still retain the same power… well, you’d have invented Rust. Rust is a better language than C, I agree with that.

Edit: Yep, just double checked. Buffers live in physical memory and have to be finite, so if you advance outside of them you’ll go somewhere else. Scanf’s not special, this is just another inherent pointer issue.

What’s the point of having a function in the standard library if the universal recommendation is to never use it?

Is that the recommendation? This is the first time I’ve actually seen it discussed.

I’m wondering at this point if a new, different stdlib would be better. Or just use Rust.

To be honest, my comment probably applies more to gets, but the point is the same.