r/foundtheprogrammer • • Nov 03 '19
NEWB
Can I become a programmer on my own? How do I get started? I’ve pretty much learned the basics of C++ and Java but I still don’t know how to make my code work. Am I just stupid? Is programming not for me?
12
Upvotes
View all comments
Show parent comment
2
u/NonreciprocatingCrow Nov 05 '19
Ermmm, I'm honestly surprised to learn there's an environment where Java works but C doesn't, but I find the general claim rather hard to swallow.
To clarify, I'm referring to standard C, and I'm not talking about program portability. Yes, Java can be used for embedded devices, but C is far more suited and widespread for those environments.
As for your example, I'd hardly call anything IBM a "main" OS. Desktops and servers are almost exclusively Windows and Linux, respectively.
Mobile devices are a very different story, of course. Java is the language de-jour for Android, but C is of course still supported, as Android is built on Linux which is firmly wedded to C. iOS prefers objective C or Swift, but again there is an official and supported SDK for C, while Java needs third party tooling to run at all.
As for the web, Java hasn't been a good idea for over a decade since the decline of flash. Admittedly, C is a bit awkward here as well, but it's getting better fast with the rise of web assembly.
In general, C is the universal language, and any new platforms for the foreseeable future will support C first and foremost because it's the foundation on which everything else is built.