Its a valid problem-solving approach. The aspiring programmer might be in a bit of trouble if thats his/her only approach, but aside from that its fine.
Also, I dare say most people start by hacking together random bits of code they found on the internet.
Also, I dare say most people start by hacking together random bits of code they found on the internet.