I am a beginner programming in Java. And when confronted with a new task I wonder whether I should code the function or search for it.For example, if I want to calculate 10!, or cos A, I reckon that there will be a math function somewhere, and I am better off searching for it instead of trying to code the function. But what if it's something more exotic? How can I know whether I should invest my time searching or coding?
How can a programmer know whether he has to program a method or search for it in a library?
programming practices;libraries;third party libraries