Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)PR
Posts
0
Comments
207
Joined
1 yr. ago

  • yeah i mean if you grok the underlying workings of scanf then there's no problem

    i'd just argue that the problem is understanding what you need to understand is the problem with straight c, and with any language like c++ where you're liable to shoot thineself in thy foot

  • How? They go where they point, or to NULL, and can be moved by arithmetic. If you move them where they shouldn't go, bad things happen. If you deference NULL, bad things happen. That's it.

    what part of that is explicit to how scanf works?

  • All of C++? That's unreasonable, it's even in the name that it's very expansive.

    similarly, "all of pointers" is unreasonable

    "all of pointers" can have a lot of unexpected results

    that's literally why java exists as a language, and is so popular

    Plus all previous operating systems, all supercomputer climate, physics and other science simulations, all the toaster and car and so on chips using bespoke operating systems because Linux won't fit, every computer solving practical engineering or logistics problems numerically, renderers...

    sure, and the quantity of code where true low-level access is actually required is still absolutely minuscule compared to that where it isn't

  • Once you understand pointers

    once you understand C++ the pitfalls of C++ are reasonably consistent

    I'm not sure I'd class much of OS programming and all embedded and high-performance computing as small

    there are like what, 3 operating systems these days?

    assume those are all written entirely in c and combine them and compare that to all code ever written

  • a footgun isn't inherently bad, it just implies a significant amount of risk

    yes, if you need the ability to code on a low level, maybe C is necessary, but the times where that is actually necessary is smol

    also rust

  • 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