TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What is the best way to get into Physics as a coder?

32 pointsby whitepaintover 1 year ago
I don't know anything about Physics.

22 comments

abdullahkhalidsover 1 year ago
Depends entirely on what you are trying to get out of this.<p>If you want to write a game engine or something, you just need to understand some equations and how to implement them.<p>If you actually want to understand physics - as in the rhyme and rhythm of the physical world - you will have to grind it out. Your coding skills won&#x27;t help you much. No one has written an essay on the Unreasonable Effectiveness of <i>Coding</i> in the Natural Sciences [1], because there isn&#x27;t much. Most you will get out of your coding skills is that you can quickly numerically simulate some physics equations. But simulating equations is not physics.<p>Rather than simulating the models, the skill of Physics is to build the models that correctly describe the system in question. Building models requires actions like making the correct assumptions or identifying the symmetries of the system. These skill emerge from mathematically modeling a large number of systems, in a wide variety of domains, so you get the intuitive understanding of what to do when faced with a novel system. Mathematics provides a very convenient framework for making assumptions and identifying symmetries, while coding does not.<p>So, really, the prescription is to master calculus, linear algebra and differential equations, and then grind your way through about ten physics courses in sequence. There is no shortcuts unfortunately.<p>I would recommend paying graduate students at your local university to tutor you.<p>[1] <a href="https:&#x2F;&#x2F;www.maths.ed.ac.uk&#x2F;~v1ranick&#x2F;papers&#x2F;wigner.pdf" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.maths.ed.ac.uk&#x2F;~v1ranick&#x2F;papers&#x2F;wigner.pdf</a>
评论 #38651436 未加载
fch42over 1 year ago
As someone who&#x27;s done the opposite ... gone from physics to coding ... I&#x27;d suggest the first thing to do is question your premise. What exactly does &quot;getting into physics&quot; mean for you? What actually comes to your mind if you imagine tasks a physicist might perform ? Which of those do you think you could do as a programmer, and which have you got no idea about how to approach ? Such a questioning approach is typical for physics. Why are things the way they are? What predictions can one make ? etc....<p>Or do you even mean &quot;physics&quot; in the sense the word is used in computer game development ? Which is &quot;largely&quot; (an over broad term) mechanics; how things move, flow, deform under external forces.<p>Can you give us more details? That would help with giving you pointers.
评论 #38649395 未加载
k310over 1 year ago
First, you’ll need an engaging intro to physics. Without enthusiasm, anything you do will be boring. In the 60’s, books by George Gamow interested me, as did books on astronomy and astrophysics. I can’t say what newer books would help, though I will give that a look.<p>To learn the basics, something like The Feynmann Lectures on Physics.<p>Description and links:<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;The_Feynman_Lectures_on_Physics" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;The_Feynman_Lectures_on_Physic...</a><p>The lectures online:<p><a href="https:&#x2F;&#x2F;www.feynmanlectures.caltech.edu&#x2F;info&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.feynmanlectures.caltech.edu&#x2F;info&#x2F;</a><p>But if you are serious, know that there are really varied branches of physics, some theoretical and some experimental. The theoretical branch (and making it through grad school) will demand lots and lots of math, and not the “numerical” kind that is common in computing. You might get familiar with symbolic math computing, such as MAXIMA.<p>Experimental work is very hands-on, but since so much of it is quantum level, the math is also important. Lesson I learned: if you want to really do physics, learn to love math, advanced stuff.<p>But if you do get into experimental physics, there are some pretty exciting projects. Just today, I found this article.<p>If you want something done right, do it yourself: the scientists who build their own tools<p><a href="https:&#x2F;&#x2F;www.nature.com&#x2F;articles&#x2F;d41586-023-04015-0" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.nature.com&#x2F;articles&#x2F;d41586-023-04015-0</a><p>Astronomy and Astrophysics are similar. You can go experimental, and of course, reduce tons and tons of data. But cosmology is going to require mostly math as your tool, relativity and quantum physics, perhaps the twain will meet.<p>Of course, you could go the circular route, as I did. I got a B.S. in physics, did optical and electronic engineering, and eventually got a job supporting computing at an outstanding physics department.<p>I was a great experience, but when funds were cut, I went on to other, mostly computer-related, jobs.<p>Personally, I took a liking to optics, which requires knowledge of physics, but it was something I could hold in my hands ( i.e. a camera ) or not hold, as in space optics. My optical engineering days were very enjoyable.
aniijbodover 1 year ago
You don&#x27;t need to know about physics.<p>Some people who do know about physics don&#x27;t need coders and some do.<p>You need to find people who do know about physics, but who still need coders.<p>Physics is just too big a subject to &#x27;know about it&#x27; enough to &#x27;get into physics as a coder&#x27;.<p>Yes, you will need to know about a specific &#x27;problem domain&#x27; within physics<p>One that someone somewhere needs a coder for.<p>But start with people, not with physics<p>People need coders, physics doesn&#x27;t<p>People have physics problems that they need coders to solve<p>Read up, find the people with the unsolved physics coding problems that you can work out how to help them solve<p>Then your problems will really begin<p>Then you&#x27;ll find out if getting into physics as a coder was right for you
评论 #38655096 未加载
corethreeover 1 year ago
Wasn&#x27;t there this site that had a list on what to learn to go from zero to QM and GR? It was a pretty detailed list with specific sources and subjects. If I remember it was Basically started by this girl who ended up doing it from zero as well. She coded too.<p>I think most people never make it as far as she did. You have to be really smart and let&#x27;s face it programming is not the smartest job out there. Even the best programmers mostly end up not knowing physics that well.<p>I&#x27;ll post the site if I find it later today.
评论 #38649128 未加载
tech_kenover 1 year ago
As in get a &quot;get a job in physics&quot; or &quot;understand physics&quot;? If it&#x27;s the former I&#x27;d suggest boning up on your FORTRAN and applying to scientific computing jobs. If it&#x27;s the latter I&#x27;d recommend Khan academy. You&#x27;re going to want to relearn your diff eqs. and your PDEs, plus some linear algebra.
max_over 1 year ago
Go an do some work in game design.<p>- Building a toy physics engine like Box2D or working on a Ray tracer will teach you about mechanics &amp; light respectively.<p>Also the two volumes of Leonard Suskid&#x27;s &quot;Theoretical Minimum&quot; are a great place to start for highschool math.<p>You cannot master all of physics not even professional physicists can master all of physics.<p>What you need is;<p>a) The theoretical minimum.<p>b) A niche in physics you have an interest in. (I recommend you start with the &quot;A Very short introduction&quot; books.<p>You can get into Astronomy, Cosmology, Electricity for example.<p>Also it would be great to have a copy 9f Richard Feynman&#x27;s Lectures of physics.
grepLeighover 1 year ago
Check out your local community college! I&#x27;m in my 30s and taking a physics I-III class series, just as a fun exploration&#x2F;challenge. I found the social aspect of going to school more engaging than self-teaching, since I work from home all day.
sargstuffover 1 year ago
Take&#x2F;get involved with basic physics courses with eye on developing&#x2F;automating the lab course work (excel spread sheets, etc) and&#x2F;or other things[0][1] that others can see&#x2F;understand&#x2F;demonstrate that you&#x27;re interested in doing physics realted things.<p>[0] : <a href="https:&#x2F;&#x2F;docs.vizycam.com&#x2F;doku.php?id=wiki:motionscope_app" rel="nofollow noreferrer">https:&#x2F;&#x2F;docs.vizycam.com&#x2F;doku.php?id=wiki:motionscope_app</a> [1] : <a href="https:&#x2F;&#x2F;docs.vizycam.com&#x2F;doku.php#applications" rel="nofollow noreferrer">https:&#x2F;&#x2F;docs.vizycam.com&#x2F;doku.php#applications</a>
JoeMayoBotover 1 year ago
OpenStax has some free Physics text books: <a href="https:&#x2F;&#x2F;openstax.org&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;openstax.org&#x2F;</a>
aristofunover 1 year ago
There is nothing special about coders as far as getting into physics goes.<p>Knowing math can help you in general for sure. Knowing programming will help you if you get into numerical simulations etc.<p>Other than that - there is nothing to suggest here.<p>You choose your goal (“get into physics” is not a goal) and you start digging towards it like everybody else.
hoofheartedover 1 year ago
Hang out at places like Barnes and Noble while you code and drink coffee.<p>Pick up books from subjects that you think might interest you while you hang. Read a few chapters and decide if the book&#x2F;subject is for you.<p>If you really love it; buy the book and take it home.<p>I did this for a number of years, and absorbed a lot from coding, general physics, quantum mechanics, and even tried to dabble in Astro physics.
Charon77over 1 year ago
Make simulators. Anything. Finite elements, diffusions<p>soon enough you&#x27;ll learn about gradients, curls, and how to implement them<p>Oh, and play kerbal space programs
WheelsAtLargeover 1 year ago
If you are serious about it then grab a Physics 101 textbook and get familiar with the subject. Read skim through it and then reevaluate and decide what exactly you need or want to learn. Physics is a huge subject so you need to be a bit more focused on what you need or want to be able to understand where to start.
simon_accaover 1 year ago
“Structure and interpretation of classical mechanics” by Sussman bridges this gap beautifully
评论 #38648990 未加载
评论 #38649366 未加载
评论 #38655464 未加载
sargstuffover 1 year ago
Go apply maxwell equations to real world situations and gain experience tackling the gravity of issues with free form 3d printing feyman diagrams for programming language bnf forms without material support. VR works too.
dyingkneepadover 1 year ago
The question is too broad, you need to be more specific.<p>I learned a lot of Physics watching youtube channels like PBS Space Time. That&#x27;s much easier than buying a textbook.
froonlyover 1 year ago
<a href="https:&#x2F;&#x2F;theoreticalminimum.com&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;theoreticalminimum.com&#x2F;</a>
fasterikover 1 year ago
I&#x27;m a fellow programmer who has been self-learning physics for the past few months. My opinion is that a programming background is largely irrelevant to the &quot;learning physics&quot; part. It might help depending on what you want to do with the physics after you learn it, if that involves writing simulations or something like that. But really learning physics mostly involves reading books and solving physics problems.<p>I think the most important advice is don&#x27;t try to skip ahead. It&#x27;s tempting to jump straight into the cool modern physics topics like quantum mechanics and general relativity before you have the necessary background. I&#x27;ve gone down that route and didn&#x27;t really learn anything that way.<p>If you haven&#x27;t taken any physics at the university level, you probably want to start with one of the big calculus-based intro books like Young&#x27;s University Physics. Calculus, differential equations, and linear algebra are really important, so you might want to pick up separate textbooks on those (or a single volume Engineering Mathematics textbook) unless you have already learned these subjects. Everyone speaks highly of the Feynman Lectures, but some say that they&#x27;re only really beneficial after you already have a decent understanding of the subjects being covered. I believe I heard Sean Carroll say this once on a podcast, and I trust his opinion on physics matters.<p>The core subjects in undergraduate physics are classical mechanics, electrodynamics, special relativity, quantum mechanics, and statistical mechanics&#x2F;thermodynamics. You will learn all of these subjects from an intro textbook as a first pass. After that, you&#x27;ll return to each subject and essentially relearn it at a more advanced level with dedicated textbooks for each (except SR which is covered in electrodynamics). General relativity and quantum field theory are usually taught at the graduate level or as upper-level undergraduate electives, so those are best to save for last.<p>Having forgotten a lot of the math I learned a decade ago, I&#x27;ve found that having one of those Mathematical Methods books nearby at all times is indispensable. I went with Riley&#x2F;Hobson&#x2F;Bence, but Boas also gets good reviews. These books are a bit terse if you&#x27;re learning a subject for the first time, but they&#x27;re great as a reference and contain pretty much all the math you will ever need to know unless you plan on doing research-level physics.<p>Don&#x27;t forget about YouTube. There are lots of lectures available from top universities, as well as independent content creators. I haven&#x27;t looked much into physics channels yet, but on the math side I highly recommend 3Blue1Brown, especially his series &quot;Essence of Calculus&quot; and &quot;Essence of Linear Algebra&quot;.<p>This is a good roadmap to guide your study path and has good textbook recommendations: <a href="https:&#x2F;&#x2F;www.susanrigetti.com&#x2F;physics" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.susanrigetti.com&#x2F;physics</a>
technocratiusover 1 year ago
Read a good textbook. I personally like the Feynman lectures of Physics, always very clearly explained.
评论 #38655107 未加载
PaulHouleover 1 year ago
What kind of physics?
评论 #38648413 未加载
jsyang00over 1 year ago
game engine?
评论 #38651088 未加载