It comes from Fourier’s analysis of the heat equation, where he notes that 1. sines and cosines form an eigenbasis of the laplacian so give you explicit solutions 2. most functions can be approximated by sines and cosines, so armed with the basis expansion of your initial condition in the eigenbasis, you can solve the equation
So I don’t think your post is at all a silly approach, much less the worst ever! :)