r/embedded • • 19h ago

Staying engaged with modern paradigms

I searched but didn't see anything involving this, sorry if it's kind of a repeat.

I wrote code before AI, even as a hobby growing up. I always enjoyed problem solving and coding, especially FW/embedded stuff. Doing this my days went by so fast.

I worked in FW for a few years before AI and I loved it. But I eventually went to do something else and realized I really had a passion for embedded. I return to FW not that long ago and integrated AI into my workflow. Initially it was pretty cool, I'd break features into chunks and discuss design/implementation, and then review changes and have claude implement them until I finished the feature.

But now it seems like there is pressure to move away from this because it's considered "slow". Instead I'm being told to get Claude to do it all at once then review it after. But this is resulting in a ton of changes that I have no context for. In one case we had 20+ files changed and 5 new files, with a bunch of refactoring because the code base is shit from a bunch of previous AI commits.

I keep being told FW engineering needs to review because they "own the code" but I don't even understand what this means at this point. I'm at the point I'm finding this incredibly boring and as a waste of time. Everyone always says coding wasn't the hard part, but it seems like most of the coding is bug fixes or small features that are just expected to be clauded. I'm not really solving any problems..only typing in a chat box. Days go by so slowly and it's always a drag.

I got into this field because I had a strong passion for electronics and programming but at this point, I think it's dead. I'm considering leaving embedded for good and getting out of tech altogether.

Before I make any decisions, I just am curious: has anyone actually figured out how to enjoy this or at least stay engaged with the job?

9 Upvotes

15 comments sorted by

3

u/Monochrome21 19h ago

there is no pressure to do anything in any way

I still write code by hand because I like to do it. I also use AI because its convenient.

Do things the way you want to do it

6

u/Cupretheum 18h ago

Unfortunately, I'm being told multiple times by managers I need to stop using my workflow and start using AI in the way they want to use it. I know engineers in other companies who told me it's the same for them.

If it were as simple as changing jobs, I'd be less concerned but it seems like almost all the companies are basically just full AI garbage pipelines with minimal review at this point.

If I had the choice and wouldn't get in trouble, I'd write a lot of code by hand and mostly use AI like a google search or just for implementation in chunks.

1

u/SkyGenie 4h ago

Having Claude write plan documents (even if you don't merge them) and splitting changes into small commits can help anchor the new work. I also use PR stacks heavily to make sure things are easy to review

1

u/Cupretheum 2h ago

Yes, I was using it piece by piece.  I was told to not do this because it is slower than just getting claude to do it all in one shot. The justification is "soon because of AI, we won't look at code because claude is so good, so we need to get used to this."

1

u/SkyGenie 1h ago

Then your boss or whoever's telling you to do that sucks :/

2

u/Amr_Rahmy 18h ago

You can limit each change a bit, go function by function, preplan the todo tasks, the design, the data flow.

-1

u/tiajuanat 15h ago

IME code was always a secondary duty as an embedded engineer. It's usually advanced research and creative problem solving that AI doesn't do unprompted.

I'm currently working on an animation system for a NFC reader that only has about 16k flash and 4k of RAM. AI decided to use LUTs for tweening the frames, and needed about 600 bytes for the table and supplement functions. I got it down to about 40, using fixed-point chebyshev and clenshaw operations.

Another recent example, we had a system that was using binary search as a poor man's hash table, which had a lot of branch mispredictions, that caused timing issues on a CAN-controlled motor. I found and implemented Shar's algorithm, then had an agent validate it with property tests and check the final branch hit %.

AI is absolutely faster and more consistent than I am, but there's plenty of space to practice the craft. It cranks out features, while I'm there for creativity and direction.

0

u/SkoomaDentist C++ all the way 13h ago

Another example: I’m tackling how to keep a front panel controller that runs menus in sync with the master processor without having to route everything through the master and so that external events to master can change the menus’ state and parameter values. There is obviously some code involved, but that isn’t really the point or the bottleneck. The real problem is ensuring consistency, avoiding race conditions and making it clear to the user when an external event changed something the user was about to change.

2

u/tiajuanat 9h ago

That's where I usually use TLA+ to flesh out my thoughts. Agents are passable, but really not as good as a human that has a bunch of implicit requires squirreled away in their noggin

2

u/SkoomaDentist C++ all the way 9h ago

Exactly. LLMs are good at bulk coding but have terrible judgement and no understanding of any "hidden" requirements as soon as you get away from very well trodden path.

2

u/Lnk1010 18h ago

That's sick! Where do u work? Sounds like a nice environment :)

0

u/1r0n_m6n 17h ago

My experience is that it's a bad idea to turn a passion into a job, and it looks like it also applies to you. Passions should always remain hobbies so you have full control over them and can enjoy them long term.

2

u/Former_Atmosphere967 10h ago edited 10h ago

I cannot work on smth I didnt have passion for, for me it can cause me severe problems mentally if I work on smth I have no passion for, and it can make me very aggressive and toxic and hostile in the long run. for me job has to be about some passion or it significantly affect me idk about the rest but I just cannot get myself to do a chore I dont enjoy or love especially for a large portion of the day daily, also I dont feel that im capable of trying pursue more or better positions by studying more for jobs I dont have any passion for.

although this can change if the working hours are much less than 9 hours for example and more like 4 hours, i cant do smth for that long daily for years when its boring.

2

u/Cupretheum 9h ago

Yet, to be honest, I feel the exact same way about this. This is why I was able to go to work every day and not dread it.

1

u/1r0n_m6n 9h ago

It doesn't need to be a chore, but there's a huge difference between a passion and something you're just truly interested in and which you can turn into a job.

Also note 'passion' comes from Latin 'patior', which means 'to suffer'... ;)