6 ms·
So providing a feeling of power over the language and it's abilities is not a legitimate advantage of the language? Isn't that why everyone loves python, solvi
by speedplane 8y ago
So providing a feeling of power over the language and it's abilities is not a legitimate advantage of the language?
Isn't that why everyone loves python, solving a complex problem in a handful of easily readable lines of code?
- blub 8y agoThe feeling of power is nice for the programmer, but it doesn't influence the technical capabilities of the language, which are deplorable safety-wise.
- SlowRobotAhead 8y agoDid you see the smiley face in my post that’s implied I’m kinda joking. Also... I’m a little concerned that your post has “we’re all equal” social justice vibe to it... which is silly. C is more powerful than because “safety features” aren’t there.... deplorable... LOL. You try going a day without using something programmed in C.
- pjmlp 8y agoEvery single day back when I was developing software for ZX Spectrum, Amiga and MS-DOS, before UNIX's influence took over the industry and forced us into dealing with C. Thankfully there was already C++ for those of us that wouldn't move into such a limited language versus what something like Turbo Pascal 6.0 for MS-DOS was already capable of, feature wise.
- SlowRobotAhead 8y agoOk... so if I’m getting the idea here... C is more limited, but also dangerous because it gives direct access to memory and pointers making it dangerous. Man... to listen to hackernews tell it... no one should use C! I wonder how many comments describing how bad C is are from people on Linux machines?
- pjmlp 8y agoThe problem is not direct access to memory and pointers as such, every systems programming language needs to provide such features. The problem with C, versus other systems programming languages it that it its pointers, implicit conversions of array into pointers, integer operations, string and array bounds don't have any kind of validation. On other systems languages disabling such validations is explicit. C is like JavaScript in the browser, we have to put up with it because UNIX clones won the market of commodity OSes. C on its own without UNIX, would have failed in the market. On the desktop world it was already being replaced by C++, Smalltalk, VB, Delphi and 4GL before FOSS based on UNIX and C started to be widespread. Unfortunately it is impossible to convince people on pure UNIX based OSes to use something else. Fortunately, Apple, Microsoft, Google, Sony, Nintendo are able to set which programming languages one is allowed to use on their platforms and C is on the way out on their SDKs.
- SlowRobotAhead 8y agoLOL yea, C is going away alright. Just as soon as every company you mentioned and everyone else in the world stops making embedded electronics!
- chillacy 8y agoTone is a tough thing to get right, and I'd say your initial post came off pretty condescending to a lot of people, regardless of whether you meant it or not. It's not even a C thing either, I've seen the same thing where someone declares functional programming as the only "serious programming" and category theory is easy, so everyone else is wasting time with imperative languages. So, it's a bit off-putting.
- blub 8y agoOh boy, how I wish I could have at least one day without something programmed in C. I'm so sick of all the vulnerabilities... No social justice vibe was meant. I was trying to say that we're all bad at dealing with the kind of errors which appear in a typical C or (perhaps to a lesser extent) C++ program. I know that some people are able to do this more successfully than others because of skill, etc, but it's not just about certain individuals. As a whole, the C community has a really poor track record at security and safety and that has a lot to do with the language itself.