by sacado2 · 8y ago · 0 comments
So, in universities, you have either students who don't see the point, because they'll do java or PHP or JS at their daily jobs, or students who get a little too excited by it, almost specialize in it, and can hardly find a job that fulfills their excitment.
Consider that every electronic device you have has multiple microcontrollers inside running C code.
I would argue that if you want to get your code in the most peoples hands, you have to know C. Just looking around the (engineering) office I'm in at the devices using C:
- My PC.
- The router(s)
- The printer(s)
- the USB hubs.
- the mobiles and tablets
- the lights (yes).
- the A/C.
- The door entry system
- the microwave
- the desk phones.
- the monitors on my desk.
- The dishwasher
- The coffee machine
- The clock
The C world is much larger than most web people realise.
(the list goes on and on...)
Web stuff is maintenance heavy, so even a small webapp requires a lot of human work to keep working in the long run. Add this to the fact that, although most companies, even small ones, need a website that is more than a static single webpage, and/or a way to manage their customer / provider databases, there are rather few companies producing electronic appliances, and unless you live in the right place, most programming jobs you'll find are in high-level stuff.
Most Metal programming (for shaders, at least) is done in C++, which it itself is written in.
Game consoles use mostly C++.
All of those do contain some C, but the ratio of it to all the js/java/python/swift etc. on top of that (because this router has web, ui, mobile app and so on) is growing.
> The C world is much larger than most web people realise.
Perhaps. But it was a lot larger 10 or 20 years go, and C was wiped out as "the language" from many domains it used to occupy.
But as somebody who mostly writes C for a living and specializes in embedded programming I can assure you that there's no shortage of employment offers.
Maybe I'm wrong, though.
There's also the fact that there's comparatively little innovation and hype in the C sphere of influence. C rarely makes the headlines these days while every other week you have a fancy new JS framework.
Everywhere else, not so much.
This seems true in any software engineering job - but at the same time, open source or personal projects are experience too. I would be very surprised to find a junior developer CV that didn't mention any projects like that.
I could guess that these jobs are not as "sexy" as using Java, Python etc?
You're looking forward to development tools that have neither refactoring nor auto completion.
I have yet to see an embedded micro controller with an API documentation and working examples.
I think it's important to use the language that best applies to the course material. For example we looked at UNIX in the OS course and it really made sense to use C there. But when we did Algorithms and data structures we used Java for that. Using C really takes away from the point and bogs you down in language specifics in this case.
But obviously the industries/domains which require C are not the same as those which require Java/PHP/JS.
In embedded software no-one is going to use Java or PHP, like in mobile/web apps software no-one is going to use C. That being said, Objective C is a pure superset of C (which C++ isn't).
Actually they will.
https://www.ptc.com/en/products/developer-tools/perc
https://www.aicas.com/cms/en/JamaicaVM
https://developer.android.com/things/
Just a small overview, as I don't feel like posting all links from everyone active in commercial Java compilers for embedded deployments.
Embedded isn't unaffected by Wirth's law.
For most embedded devices, this is not true.
When you're paying for every device the code runs on... and that code wastes 80% of your cycles in abstractions and indirections then forces you to have 200% more RAM than the equivalent C code, that changes your mind.
Saving a tiny amount on a processor adds up when the multiplier is (say) 1 million units.
Otherwise anything of ARM Cortex M class does have Java compilers available.
Garmin devices use Monkey, which is their own Java like language.
Ricoh and Xerox copiers use Java on OS stack for third party integration.
Likewise Cisco conference call systems have their own Java flavour.
Blu Ray players, Gemalto intelligent electricity meters, and plenty more of other examples are available.
The point being that the choice of language is strongly influenced by the domain the software is developed for.
I graduated 16 years ago and I have always got jobs which were pure C, on state-of-the-art products as well. That's still the way it is, plenty of jobs available.
Not everyone is targeting PICs with 8KB Flash memory.