Before diving into "real research", there are some students who prefer to learn bare minimum prerequisite courses/material and then start off reading survey papers and develop their skills.
There are others who prefer to go through courses from Introduction to Advanced to Independent Study before finally diving in.
The former would probably face problems of fundamentals while the latter spends too much time learning things which might not be completely useful.
At what point should one (Assume, if necessary, that I am talking about STEM) decide to dive into research while making sure that one is neither being too hasty nor slow?
Take for e.g. that a person wishes to code a software in Python which does engineering calculations. He would either read something like Intro to Python and then directly start coding or he could also read documentations of other Math libraries, similar libraries in C/Fortran, study coding efficiency and thumb rules and then start.
How do you prevent yourself from taking up too little or too much time to begin?