6 ms·
> C programming language will be 50 years old next year. This principle implies the C programming language will outlive Rust, Go, Python, etc. I'm not sure how
by josephg 6y ago
> C programming language will be 50 years old next year.
This principle implies the C programming language will outlive Rust, Go, Python, etc. I'm not sure how I feel about that. There's a good chance its right, but I'm uncomfortable imagining my grandchildren learning C's weird quirks.
There's definitely codebases written in C today which will outlive me, like the Linux kernel. And most of those codebases will probably never migrate to a different language.
- deleted 6y ago[deleted]
- thanhhaimai 6y agoI'm more worried my grandchildren will still be learning/using QWERTY than they have to learn C's weird quirks :). My opinion is that it's easier to get a group of tech people together and gradually replace C (like Android Rust development) than getting people to replace QWERTY or getting the US to move to Metrics system.
- hattmall 6y agowhat's wrong with qwerty?
- drewzero1 6y agoArguments could be made that it's inefficient or un-ergonomic, though I'm doubtful how much difference it makes on a modern keyboard. There's an oft-repeated story about the qwerty layout being designed to keep people from typing fast enough to jam typewriters. I can't speak to the legitimacy of the story, but I do collect typewriters and I can say for sure that there's a lot more pressure and key travel (and time!) required to slam a type bar into the ribbon than is needed to press a modern keyboard key. I learned Dvorak a decade ago and loved it unless someone else had to use my computer or I had to use a shared computer. I'm typing this on a qwerty keyboard and I'm okay with that now.
- Xylakant 6y ago> There's an oft-repeated story about the qwerty layout being designed to keep people from typing fast enough to jam typewriters. Typewriter layouts are designed to avoid jamming, but not by reducing typing speed. They place letters that are pressed in direct succession apart, so that the levers don’t collide. Trained typists can write pretty damn fast on a typewriter.
- Andrew_nenakhov 6y ago> They place letters that are pressed in direct succession apart, ... and that really reduces typing speed. When i switched to dworak I was amazed how my fingers just roll on a keyboard, forming sentences faster than I even form a conscious understanding in which succession should I move my fingers. It just happens as if by itself!! Just think of a word to type and it is already on the screen.
- Xylakant 6y ago> ... and that really reduces typing speed. That may be the effect for you, but it's not a goal. It's maybe a tradeoff, but machine writing is a trainable craft. Usual results for trained people are at about 200 - 400 characters per minute measured over 10 minutes. Championship results are at up to 900 characters.
- Andrew_nenakhov 6y agoYeah, and all championship results are on Dvorak keyboards. [1] [1]: http://www.recordholdersrepublic.co.uk/world-record-holders/43/barbara-blackburn.aspx http://www.recordholdersrepublic.co.uk/world-record-holders/...
- Aengeuad 6y agoThere are plenty of unofficial records and leader boards for typing speeds where qwerty typists are just as capable (more so even due to sheer availability) as Dvorak typists at hitting 200+wpm, and while that alone shouldn't be used to judge the quality of a particular layout it shouldn't be ignored that there's no difference in attainable max speeds done in short bursts. That says nothing about sustained typing of course, but I strongly suspect if you're already a competent and fast typist in qwerty you'll be comparably as fast in Dvorak and vice versa.
- chubot 6y agoI think C will outlive those languages, in the sense that it will exist. But it doesn't necessarily follow that your grandchildren will have to learn it. There will be some other language like JS or foobar 2050 that's just way more relevant and popular :) But they certainly COULD if they wanted to. The question of whether a technology simply exists vs. whether it retains its popularity is an interesting one. Chairs and forks will both exist and be popular. iPhones will exist, but they won't be popular on some time scale. So it is interesting to think whether C is closer to one or the other :)
- d_silin 6y agoC is the "lawn chair" of programming languages. Sure, it is neither particularly fancy, nor most comfortable - but beats having no chair :)
- emodendroket 6y agoIsn't that the whole worse is better thing in action? People complained about C and Unix when they were new, but they picked up so much traction, and people invested enough effort into working around the flaws, that it just achieved critical mass. Same thing with JavaScript; it's never going anywhere. Certainly higher-level languages have edged out C in many domains though.
- hvidgaard 6y agoWhile C is not perfect, it is in a sense something that most other programming languages are not. It's simple and if you program in C you probably touch upon the entirety of the language on a regular basis. Because it is simple you can write a compiler for it with some reasonable effort if need be, even for completely new architectures. In any case, I'd argue that most of the quirks are due to undefined behaviour as implemented in the compilers. And 50 years from now the language have probably evolved some more anyway.
- enriquto 6y ago> I'm uncomfortable imagining my grandchildren learning C's weird quirks What about them learning English's even weirder quirks? Does that make you uncomfortable as well? I have come to the point that I sort of accept C's quirks, and, with the appropriate mindset, I can even love them. I certainly see myself as an old man teaching these arcane quirks to a young and innocent audience.
- carlmr 6y agoAlso COBOL is still around and most people don't need to learn it anymore.
- enriquto 6y agoMost people don't need to learn C either; or any programming language, for that matter.
- carlmr 6y agoSure but I think programmers is an implicit assumption here when talking about which programming languages to learn. We don't need to start splitting hairs here. And COBOL is extremely niche, while C is still quite common and useful to know.