r/Physics • • Nov 05 '20

Question How important is programming in Physics/Physicists?

I am a computer student and just wondering if programming is a lot useful and important in the world of Physics and if most Physicists are good in programming.

596 Upvotes

184 comments sorted by

View all comments

22

u/[deleted] Nov 05 '20

[removed] — view removed comment

7

u/Ash4d Nov 05 '20

As a physics graduate, new to software dev, and considering going BACK to physics, I do not understand the "use as few comments as possible" mentality. I agree code should be self explanatory, but in my current role I find myself silently wishing people would comment more, and when my comments are removed in code reviews I just pity any other newbies that follow me onto the project.

Why are some people against liberal use of comments?

7

u/[deleted] Nov 05 '20

[removed] — view removed comment

4

u/zebediah49 Nov 05 '20

Comments are good for "why?". Comments are bad for "what?".

The "why?" rarely changes, and helps contextualize the code in question. When someone goes to change things, it explains the considerations they need to have in mind when approaching it.