4

Feel dirty writing in c. How do people even deal with unsafe pointer type casting/memory allocation/free? The codebase is plagued with memory leaks and there is no test.

I will just pretend I can't read c code and play dumb when shit happens

Comments
  • 5
    Sounds more like bad practices than actual problem with the language. But yes the language has these pitfalls and one of the reasons for Rust to be like it is today.

    Also
    https://reddit.com/r/programming/...
  • 7
    C is nice, and allows you to do anything you want. You do need to be careful, though, as it doesn’t hold your hand at all.

    My only qualm is that it’s more verbose than I’d like, and it can only ever be so clean.
  • 0
    spot on
  • 0
    @root hm. when they use the very same words for Javascript they see it as weakness.
  • 4
    @horus are you really comparing c to JavaScript?

    The language for the web that has no sane architecture as it was a nutjob done in few weeks? That was then misused for everything, mostly by publishing it via the most fucked up package manager, cargo culted and hyped despite all it's flaws...?

    Ouch. You JS devs amaze me every time.
  • 2
    @intrusionCM I don't conpare languages, I just compare argumentations. I have don't have strong opinions about languages, I do what I get paid for.
  • 6
    Casting pointers manually just means the programmer needs to know what they are doing. Relying on the compiler to protect you is not safe programming. It will make it harder to detect difficult problems later. Compilers have bugs too as well.

    I get it though. When you get exposed to shitty existing C or C++ code you just want to pretend it doesn't exist.
  • 1
    @horus I'm not sure if I understand you correctly... Can you elaborate?

    It sounds to me very ... dumb?
  • 1
  • 0
    @Root JS always was a red flag to me...

    ... But since I have to support the NodeJS version zoo, some JS applications etc. the red flag became an ultimate trigger for anger. Especially since the JS ecosystem is so fundamentally broken thx to NPM and the perversive nature of just reinventing everything.

    The version zoo I have to support for JS is absolute pervasive (I think 75 % outdated, deprecated, EOL). But it's logical given the heavy fragmentation of the ecosystem and that most stuff would need to be rewritten from scratch (build system change, framework migration, ...)

    I just cannot tolerate anymore the "leave JS alone stuff".

    JS is the one thing I really want to eradicate from the planet.

    Better break the INet for a year plus and start back with pages of good old Mosaic times than continuing this crap shit.
  • 3
    @IntrusionCM JS itself is okay. I get the hatred, though.

    But NPM? NPM and all it brings is hell.
  • 1
    @Root we still have bower and gulp ....

    ⚰️☠️☠️☠️☠️
  • 1
    @IntrusionCM Yeah…
    Just burn it all down.
  • 2
    C is not idiot proof. it's much easier to work with precision in C, but you have to know what you're doing
  • 2
    @darksideofyay That’s why I like it. :)
Add Comment