I think both bootcamps and degrees can be helpful, but I would honestly suggest going with neither of them. I have never attended a formal coding class or formal bootcamp, but before and after school I've been able to learn Javascript (including React and jQuery), Python, and more without paying a single dime. How did I do it? I just do online courses!
In my opinion, unless you're doing complex programming like bare-metal coding, working with neural networks (even this is debatable), OS development, or something requiring lots of training, online and free courses are by far the best route.
Some of my favorite online course platforms:
To sum up: I think that, if newcomers want to gain the basic skills to get a job, bootcamps and universities are both good choices. But, I'd highly recommend just learning on their own!