Basic python stuff in 1st/2nd year physics)

  • #1
I have never done any programming (except very basic python stuff in 1st/2nd year physics), and I wanna learn some a bit more in depth over the summer. Can anyone recommend which programming language I should learn? What's most-widely used for physics/astrophysics?
 

Answers and Replies

  • #2
eri
1,034
20


C or C++ are probably the most widely used, but it varies a lot by specific field. Right now IDL (a commercial programming language, so it's not free, based loosely on Fortran) is popular in astronomy and astrophysics. But the idea is to learn how to program, and then you just need to learn the syntax for a new language. So C, C++, even Perl would be fine for that, and there are a lot of good introductory books out there (and websites) to get you started.
 
  • #3
Cod
324
4


I wouldn't spend much time worrying about which language to use. You need to learn how to program. What I mean by that, is you need to focus specifically on programming techniques and practices since they translate into all languages. There is a great book titled "Code Complete" that covers all sorts of things related to the art of programming while focusing on a few popular languages (C++, C#, and JAVA are the ones I can think of right now). Definitely worth picking up if your interested in programming for hobby or career.

A link to the book: https://www.amazon.com/dp/0735619670/?tag=pfamazon01-20&tag=pfamazon01-20
 
Last edited by a moderator:
  • #4
1,198
26


Squeak: Learn Programming with Robots by Stéphane Ducasse
 
  • #6
5
0
Last edited by a moderator:

Related Threads on Basic python stuff in 1st/2nd year physics)

  • Last Post
Replies
3
Views
3K
Replies
2
Views
2K
  • Last Post
Replies
2
Views
1K
Replies
1
Views
795
Replies
7
Views
1K
Replies
10
Views
7K
  • Last Post
Replies
15
Views
12K
  • Last Post
Replies
12
Views
8K
Replies
3
Views
6K
Top