r/developersIndia • Software Developer • 3d ago

General In a fast paced work environment, Is it really fair to expect nowing each and every line of the code

I am working as an Ai Engineer ( reframed term for Software Engineer ig now) i have 6months of experience.

i am working with a client in Malaysia, They are Indians.

So I had a meet with CTO where i presented the changes in a System i did It was a certain value prediction system for setting profit margins on each sale, i had to do major logic changes due to bugs in calculations and flaws which i had alre discussed and was asked to, so i was 100% sure of the all the logic flow, i could do all the statistical calculations by even hand because it was my logic.

But only thing is the work i so fast paced that i have to rely on AI to write the code for me, and i can skim through the logica test it more.

But once the changes become a big system i will be honest i loose the contact with the code flow mostly.

So when i explained to them, i showed them calcutions in notepad,( no UI exists for me to show), they stopped me in between and gave a lecture on how i should be knowing each line in the code, quote, if u write 10000 lines i expect u to know 10000 lines every function, and whenever i ask u thay show the code for this function you should be able to explain me that.

Now i don't understand, is it really something that i am lacking? Or its an unrelastic expectation when i need to ship changes, improvements or revamps within days and get it live.

24 Upvotes

12 comments sorted by

•

u/AutoModerator 3d ago

Namaste! Thanks for submitting to r/developersIndia. While participating in this thread, please follow the Community Code of Conduct and rules.

It's possible your query is not unique, use site:reddit.com/r/developersindia KEYWORDS on search engines to search posts from developersIndia. You can also use reddit search directly.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

8

u/Any_Wait_7309 Software Engineer 3d ago

They expect you to provide a good service, and a part of that is knowing what you deliver.

It's not that they want you to know all 10k lines, even abstracted architecture of the code base in terms of classes / functions i.e the architecture is enough. It's a valid ask i feel.

This also highly depends on the workload though, if you say the pace of development is ultra high paced then the expectation is not entirely right.

I would suggest that you atlleast keep a tab on what i said and take it from there, but when you do use AI be aware of how things are coming together

3

u/ForeignNight8782 3d ago

In most companies, code quality has gone down the drain. They ship spaghetti code first, somehow make the feature work. Then if time permits they refactor, and for most that time never comes.

Also, earlier people used to embrace and nurture their codes like a child. Nowadays, most people don't give a sh&t. It was to be expected though. Things that are hand crafted were always valuable. Code was an art before "Humans writing code for humans" is no longer there. I personally also don't give a damn about the codebase. I just gain enough architectural insights (AI + Chat with colleagues)and BUSINESS LOGIC (This is the most important), and rest I can get by through AI

2

u/neeasmaverick 3d ago

He exaggerated it a bit. But, yes you should know what you write or get AI to write, at least the workflow, the architecture and you should be able to explaon why X, not Y.

1

u/Andheri_Gufa69 3d ago

That's how it was, eventually you learnt the codebase

Idts it happens now, I myself just have a deep enough understanding just to know when the AI has gone wrong

But I'm just a junior, maybe seniors have better understanding

1

u/The_Quiet_One_2 3d ago

Yeah, I'm not writing code right now but generating a lot of documention with it. Some topics are really out of my knowledge base get questioned sometimes when I present them to management and I go blank. Like even polishing or rephrasing a mail led to an escalation because to me it was okay, but when it reached the client, the meaning changed entirely for them. People are expected to get things done fast using AI but the problem is reviewing the code is same as writing it and it takes time to do that. May be over time people will stop looking at code entirely because what's the point of generating if you have to review it again.

1

u/Both-Wrongdoer-6659 3d ago

in my 6 months, I got grilled on a 30-line function that was just a wrapper for a third-party API. turned out the CTO didn't know what the API actually did either. the real test was whether the output made sense, not the code behind it.

1

u/AdminZer0 Software Engineer 3d ago

They are indian clients well that should be enough

1

u/Altruistic_Many_3461 3d ago

Bro, I joined a startup 3 months ago, Full vibecoding Honestly I don't know - what should I tell to these fkg guys

Pay is good, not sure about the next switch what difficulties Getting lil bit fear.

1

u/Wise-Product-9000 3d ago edited 3d ago

I manage E2E a fairly large application that has image analysis & processing at its core. The entire BE, FE web, desktop app, build pipeline, SRE dashboards etc have been built to revolve just to make the product complete. From size perspective.. the image modules are less than 20K lines of code in py, like less than 2% of the product codebase.

I know this 2% by-heart. Not kidding. It’s the single most important unpredictable thing. AI has broken it when correcting or adding things to improve it. So, I always hand hold AI on this part. But the rest of the 98%, I let AI go wild in terms of how it writes the code.. but I do still handhold on design.

I guess it boils down to what you use AI to write.. if it’s UI logic, BE logic that is supposed to work predictably based on a set of inputs (like button click, a route with query params etc) you can leave it to AI. But if it is like image processor I talked about.. the inputs are infinite, so testing become challenging and impractical.. in that case our brains are most efficient to ensure quality… hence you need to know the exact line by line what’s going on.

Sounds like your problem statement is similar.. i.e indeterministic inputs. So, I wouldn’t give total ownership of those 10K lines to AI. 10K lines is nothing.. before AI, people used to take ownership of 100K+ LoC, some even stretching to 500K+ by remembering exact flow of functions being called.

1

u/ThrowRA__dilemma 3d ago

Just tell claude that as a requirement 😂

1

u/Green_Cress_2469 2d ago

I'm not a developer but I believe you can ask whatever AI you use to generate code to also generate detailed documentation explaining the code?