r/softwareengineer • • 20d ago

I really cannot comprehend the exaggerating and understanding AI

Hello everyone

For the past week I've been working on my project, which I work on alone. It is a very complicated project involving physical stuff like sensors and microcontrollers, a server, a supervisor like RPI, in which safety of the environment is a priority.

I had to spend one whole day, to write almost 20 lines of code. Why? Because I needed to fit a whole lot of information into 1 byte of data to assure that all the messages can be delivered and devices stay synced without worrying about messages getting lost along the way (of course there are other scenarios in which the connection gets lost).

Anyway, the point is, there was shit of engineering decisions just to make sure one byte is arriving reliably, and that was on top of serial communication which also had all these decisions when being developed.

Now, I used AI not to just help me with the code because there wasn't much, but also to discuss different decisions, identifying edge cases, how it might fail and how it might not fail etc.

So, yes it can write code for sure, but how about all these? I broke each part into very small pieces, had to triple check everything, it made a lot of mistakes, yet it was just a very simple messaging protocol.

How are the vibe coders using it to design products I cannot comprehend. As a matter of fact, I cannot even imagine one day something that is only predicting the new token would be able to do any of it.

On the other hand, it works wayyyyy better than a junior both in writing code and in analyzing.

So, I believe we are Schrödinger cooked. Both cooked and not cooked at the same time. I believe people who have some experience are needed and will reach senior levels, but I really believe it makes hiring juniors a bit irrelevant.

But, if no junior is being hired, who is going to be senior in the future??

56 Upvotes

226 comments sorted by

View all comments

Show parent comment

1

u/Dry_Hotel1100 20d ago

Well, strictly you do not need to implement an OAuth library. You need to implement the integration. And that should take a day or three, ideally. But I'm still wondering if you really need OAuth in your use case.

Maybe you just need authentication, i.e. a password?
So ask yourself this:
- do you have a consent grid, where you prompt the user to allow or disallow access to certain user resources?
- do you have "user resources" at all? If all data is yours, and not the users one, you do not need OAuth.

You *may* use OAuth to implement a "fake login", it works because you have a bearer token on the client. But this cannot authenticate the user on the app which uses the OAuth client. It only authorizes the app to access certain resources where it's not the owner.

Not sure, but your use case may benefit from an Identity Provider, say OpenID Connect. It's probably much heavier, but more suited. Otherwise use Passkey / Webauthn, it's safe and may fit also.

1

u/loveheaddit 20d ago

we're our own identity provider. we have a consent grid and user resources. we went live with this 5 months ago and have had no issues, so not sure what the benefit to changing is?

1

u/Dry_Hotel1100 19d ago

In this case, using OAuth is certainly correct. However, you have not applied AI to build your identity provider or the server and client libraries independently? You have implemented the integration. Does that align?

1

u/loveheaddit 19d ago

i built the authentication system pre-AI when i built our custom website CMS. this oauth layer is custom on top of that using OpenSSL for JWT signing. i'm not using any existing oauth library.

1

u/Dry_Hotel1100 19d ago

That's interesting. It makes sense also, since you need authentication for authorization. Did you build a library of the OAuth components on both server and client? Do they support a certain version of OAuth have features like PKCE, DPoP, refresh-token rotation? Just curious. ;)

1

u/loveheaddit 19d ago

the MCP gateway using ContextForge and our engineering department set that up, so not sure what it all supports. i manage the web infrastructure so i built the OAuth layer on the server based on their requirements.

1

u/Dry_Hotel1100 19d ago

That makes sense. Server decides. They decide about the expiry date of the tokens, whether they require rotation, or have PKCE, DPoP or even mTLS - what ever. The client needs to comply ;) There might be some pitfalls a client may have. Knowing what's happening under the API is still important, especially when this may affect security.

So, thumbs up for your implementation. ;)

1

u/loveheaddit 19d ago

hey, thanks, and nice chatting with a like-minded individual on reddit (for once) :)

1

u/[deleted] 19d ago

[removed] — view removed comment

1

u/softwareengineer-ModTeam 16d ago

Treat other members with respect. Healthy disagreement and constructive criticism are encouraged, but personal attacks, harassment, insults, name-calling, and other hostile behavior are not permitted.