15

As a junior developer it's frustrating to not have the skill yet of mentally mapping data models in your head, so that you can figure out bugs.

I see senior developers being able to quickly solve bugs because they can translate code into data models and they can figure out what's wrong.

Me on the other hand, I spend hours and days with my hands in my hair trying to figure out why my algorithm isn't giving me back what I expect it to.

It'll take experience.. I only have 1 year experience..

Comments
  • 0
    Imposter syndrom.
  • 1
    Can someone explain me data mapping in ones head as for programming? Never heard of it.
  • 1
    @linuxxx I'll give a concrete example soon.
  • 0
    I know exactly what you mean. But from my experience, being able to solve these issues boils down experience. They most likely had to fix similar issues in the past.
  • 0
    @Ederbit This is correct.
  • 2
    @CaptainRant The obvious approach to avoid O(n^2) would be to sort the second list in O(n log n). Then loop through the first list, and for each element, check whether it exists in the second list using binary search. That step also has O(n log n).

    Just been doing that in a project.
  • 0
  • 0
    @Ederbit absolutely, that's how it works for me. Experience, not speed.
  • 0
    Debugging, and even junior developers should understand how if works.
  • 0
    @chagai95 Sometimes debugging doesn't provide clarification and forgetting is human. It wasn't about the if but about the data that was being input.
Add Comment