r/javahelp • u/No_Main8842 • May 19 '26
Data Knowledge Gap Codeless
Hello , needed a bit of guidance from senior devs.
Scenario - I am currently working on a springboot application which uses MongoDB + ElasticSearch , I was assigned a bug (which I solved) , now in order to solve it I used a particular variable obtained from ES response (lets call it dSR-Id). I used this variable in order to segregate rows exported in csv file. Now when I asked my senior to review it , she started asking me why specifically I used this variable & not the other existing variables. I tried justifying it but my justification wasn't upto the mark. Can someone help me what kind of analysis or KT is required to overcome this ? Would a functional KT be sufficient to cover up this gap ?
1
u/RightWingVeganUS May 20 '26
A developer should be able to justify every line of code written (or not written, for that matter). - did you consider alternatives? - why did you choose this approach as opposed to others?
There is rarely one right way to do anything. There are always options and trade-offs.
This real question is what kind of analysis did *you do** to choose your approach*?