3 ms·
Yea if you hold it wrong. Undefined behavior doesn't magically happen.
by blackflame7000 10y ago
Yea if you hold it wrong. Undefined behavior doesn't magically happen.
- csours 10y agoSure, but who makes knife handles out nitroglycerin? You are absolutely correct that the areas of Undefined behavior are well defined in C, and should be taken into account. In programming, as in all products, the winning combination is good enough + quick enough. When using C, code has to be much higher quality than other languages. Anyway, my point of view is that you should be REALLY REALLY sure you NEED C before using it. It is a very sharp knife, and it only takes one false move.
- Baeocystin 10y agoI don't really disagree with anything you're saying. But that being said, for the times you do need C, what are the better alternatives? C# is managed, solves a ton of problems...and is completely unusable for driver development. C++ just gives you more rope to hang yourself. It seems to me that its danger and utility are inseparable elements of the same ultimate thing.
- csours 10y agoI agree completely. Many projects (and individuals) do not have the discipline to use C properly. If you need to use C, you need to take the time and care to use it properly.
- deleted 10y ago[deleted]
- Ar-Curunir 10y ago"You're holding it wrong". I've heard that utterance elsewhere, another world where users are the wrong ones...
- Baeocystin 10y agoEvery power tool I've ever used has a right way and a wrong way to use it, and the more powerful the tool, the greater the risk if you're 'holding it wrong'. That Jobs had a gaffe using the same words doesn't strike me as relevant. We are, after all, talking about tools and tooling, not a phone design sacrificed on the altar of fashion. Putting aside C specifically, is it possible to have a language that gives you the power you need, without the danger? I'm not completely sure it is.