Ask HN: Tips for transitioning from web development to embedded/firmware?
153 pointsI started my career 15+ years ago doing native development (c, c++, etc), but the last decade I've been doing fullstack web applications.
I'd like to transition closer to my roots with a job doing primarily c, c++ or rust. The natural place seems to be in embedded development or firmware work. How feasible is the transition this late in the game? Any advice?
Comments (96) 61 threads
Earlier commentsFor fun - just do it. There are no barriers. Esp32, audio synthesizer gadget, cameras. Everything is cheap and available.
For the money? Expect lower pay, lower standards, worse hours and shit conditions
In terms of PCBs... It's hot garbage. It'll make little toy two/four layer boards that kinda work for low speed stuff but that's not the kinda shit that real EEs/embedded engineers work on.
If you work on firmware/embedded at the big tech companies it pays the exact same as other webshit roles and the WLB can be a lot better because there is no oncall for firmware
You're not waking up at 3AM to push out a firmware update
I've literally done it, do you want to see my paystubs?
Transitioning your skills is possible. But embedded is a different world and a different mindset. You a lot less RAM and a smaller CPU. You may have hard deadlines - the right answer can be wrong if it's too late. You may have multiple threads that have to share data and not corrupt it, no matter what order events occur in.
In the worst case, you may not have logging available at all, and you may not have a debugger. (I think the worst I ever had to do was attach a logic analyzer to the address bus, triggered by a specific address, and then use it to look at past memory addresses in order to figure out what path of execution had got me to the point of the crash.)
So, yeah. It's a different world. Learnable, but different.
Getting someone to believe you can do it enough that they're willing to pay you: I don't have great advice there. I spent almost my whole career in embedded. It seems to me that it's easier to get from there into, say, desktop programming, than it is to go the other way. Your best bet might be to emphasize your native development background, and count on there being a shortage of embedded people.
I'm sure you can make Claude help you with this .. but still..logs are important. So is a good debugger and software support for it. It saves so much time in the end.
This is the reality of highly constrained embedded systems. If you don't like that, I'd suggest moving to web dev where you have state of the art debugging.
I recently restructure a logging module in a client’s project, and the resulting performance gains exposed all sort of race conditions.
Sometime all you get is an LED.
Continue this thread — 3 replies
And in my case, I was actually troubleshooting the code that makes leds blink, with a bit-banged implementation on a deterministic processor.
That's a wrong mindset in embedded. In this field, your debugging toolbox should not stop at debugger(gdb) or logging(UART). It must include at least: LA/DMM/PSU/O-Scope.
We are not the same, obviously.
But embedded is something else entirely that I'd argue is fundamentally incompatible with the perspective of a web dev. In embedded, you need to be aware at every moment of exactly what the CPU is doing and how many resources are being used. You generally don't have multiple CPUs or even threads. Multitasking means hardware interrupts instead of cooperative threads. You also likely need to be aware of assembly because sometimes you have to write a really hot function in raw assembly to get the required performance.
Embedded is all about resource optimization, and we dev is about throwing more and more resources at the problem. It will probably be a difficult transition to make because it's a fundamentally different way of looking at and thinking about programming.
I would recommend you find a problem, then buy the cheapest microcontroller you can find and spend a few weeks learning how to optimize your code to make maximal use of the hardware while still solving the problem in acceptable time. A big part of getting my current job was talking in my interview about how I solved a novel problem by using an obscure CPU feature in assembly that resulted in 30x fewer instructions than optimized C.
Find a problem, solve the hell out of it, and speak confidently about your solution.
One benefit that web dev does bring you is thinking about concurrency. Your CPU can only do one thing at a time, but microcontrollers have peripherals that run in parallel, and the embedded system usually consists of multiple chips talking to each other and doing independent work. Managing this concurrency efficiently with a single CPU thread is a large chunk of embedded engineering. Instead of IPC, you do things like set up a DMA pipe between SPI and RAM, trigger an interrupt on I2C bytes, use harhardware timers to simulate threads. You'd be shocked at just how much concurrent work can happen with only a single non-pipelined in-order CPU thread.
If you want to break into a new field, the advice is always the same: do the work in your own time, build a portfolio, show you know the job, and speak confidently about the hard problems you learn to solve.
The "hard" stuff you described is already being done with LLMs
Continue this thread — 2 replies
All comments shown.
Couldn't load more comments. Check your connection and try again.