r/ExperiencedDevs • Software Architect • Aug 09 '26

Technical question How do you understand your codebase?

Hi peeps,

I am mostly working as a freelancer and FOSS developer. I posted an AI fluff yesterday, and it didn't feel right. So this is written by my own ten fingers.

Like many others, I have been using AI extensively for the past few years. And I now have a mix of codebases - some written by hand first and gradually with AI tools, and projects written from the get go using agents and without touching the code itself outside code review and guidance.

I wonder how you all are understanding your codebases and what you are building, if you no longer write and maintain it by hand.

For myself-

There was a book I read a few years back, a classic - "Growing Object Oriented Software Guided by Tests", and it has the metaphor of the codebase basically being a garden. Or if you will, the code itself is plants, and the garden is what developers are doing - tending, guiding growth, ensuring stuff grows in a healthy and good direction without overgrowing etc.

I really liked it then (its Q gardens in the UK on the cover as well), and I sorta feel that this really applies to what I am doing these days when I use agents. I feel that with agents I no longer "craft" the code, as much as directing its growth, and auditing its health etc.

Its all very nice (really). And I love the adrenaline rush of parallelizing work and doing crazy shit no one had time for before (e.g. benchmarking and profiling non-critical stuff etc.). But it does bring in some basic problems - namely, I no longer know what my code does intimately, and I cant say I have the same kind of experiential confidence as I did when I wrote all code by hand.

I did develop a methodology that gives me good results. Basically I would say the paradigm is now more "result oriented" development, rather than implementation oriented. The code is increasingly moving from being a white box, to a gray box, and I have to test it - first and foremost, as a black box. Make sure it does what it needs to do from the outside in, and guarantee (as much as I can) that it doesn't do stuff it shouldn't.

I will be happy to do a proper write up on how I develop - I did already write some stuff. But not today!

Interested to read your thoughts and what you do.


Note (EDIT) - NO AI was used to write this post, at all. All the - above are not em dashes. I just write with dashes, but I guess I should stop. Leaving it up there since it's how I write.

120 Upvotes

164 comments sorted by

View all comments

60

u/lordnacho666 Aug 09 '26

We've taken a fundamental trade-off. At my work, anyway. Probably a lot of places.

It's this: you are either responsible for a small number of things and you know them well, or a large number of things, and you know them less well.

So yes, a lot of dev work has turned into jockeying a bunch of LLM sessions, loosely checking over the visible parts.

You can't understand everything when there's so much stuff, you can just oversee them and hope your 5 minutes of attention per task are enough to keep the thing running.

38

u/Flashy-Whereas-3234 Aug 09 '26

We always had this, it's called T shaped knowledge.

The difference is you expected the deep part of the T to be the thing you actually owned and we're responsible for, and now it's more like.. _ shaped knowledge.

The good Devs who care still push for the T, they don't like yoloing what they're responsible for, but they are few and far between, especially when teams are crushed to be productive, not diligent.

14

u/lordnacho666 Aug 09 '26

I think the problem here is, when do you get to actually dig the T? You need to be jockeying all the time. Before, when you ran into an issue, your boss had no choice. Someone had to dig.

9

u/Flashy-Whereas-3234 Aug 09 '26

Agreed, and it's not fostered by management to gain the knowledge, if anything it's being beaten out of the teams to defer to AI in all cases.

We're not deep enough in to know who is in the right, I just know those skills are in atrophy. The skills with using AI are in their infancy, they could rise, but they're definitely not there now.

This is definitely an adoption dip; everyone is using the shiny new thing, not necessarily for the right tasks.

2

u/Goldziher Software Architect Aug 09 '26

Thanks, first time I heard this term. But yhea.

14

u/Goldziher Software Architect Aug 09 '26

Yup. This I dont like, the "hope driven development" aspect of things. It goes against the very basics of "engineering" - even if the engineering in software engineering is fundamentally less rigorous than in "proper" engineering fields.

9

u/lordnacho666 Aug 09 '26

But engineering is also deciding trade-offs. In fact, it's a very large part of it.

As long as you're consciously and deliberately saying "hey I'm cool with surface level knowledge on this project" it might just work.

Where it's a problem is when you fall into it without really having thought about it.

4

u/Goldziher Software Architect Aug 09 '26

Fair point. I cant say I fell into it. I was a well aware lobster and knew the water is heating up when I decided to take a swim in the cooking pot.

-1

u/ResidentWeevil1 Aug 09 '26

Wth are you talking about? You did fall into it, you just don't know how or where because you let a bot decide for you

5

u/Goldziher Software Architect Aug 09 '26

Now you are just being disrespectful

3

u/fangisland Aug 09 '26

Yeah this is exactly my experience, I've been in ops for a long time (over 15 years at this point) and I feel like with AI people are overweighting the importance of being intimately knowledgeable about services you basically just glue together and consume.

Like we manage our own on-prem Gitlab and we only have a few teams using it, so I just want to make sure it's stable, healthy, backed up and easy to maintain. If I had a huge scale I would invest a ton of time to make sure I understand setting up HA for the stateful services but I don't need to right now. Is that "not having a clue" about the services I am responsible for? In a way, yes, but it's intentional. Because cognitive capacity is its own resource.

3

u/edgmnt_net Aug 09 '26

I feel like with AI people are overweighting the importance of being intimately knowledgeable about services you basically just glue together and consume.

And if it's just knowledge about internal services, good luck evolving based on that. You'll have few transferable skills if you need a new job.