Best Computer Language for Employment

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
6 replies · 4K views
Andy Morris
Messages
1
Reaction score
0
Hi All

I am very new here and therefore apologise if there is a thread on this but -

I am researching my PhD in Astrophysics and Planetary Science (2nd year) and am starting to think about future employment. I am a little undecided whether to remain in academia (which I am slightly leaning towards) or go into industry. I get e-mail alerts from jobs.ac.uk and have seen that many of the positions like physicists to be able to use a computer language but they do differ, so I am going to ask;

Which computer would be the best choice for a future in astrophysics/physics etc.

I am learning hydrocoding at the moment as part of my modelling for my research but I really suck badly at learning computer languages! I have tried C++, C# and Latex and not got anywhere very quickly!

Anyways any help would be very much appreciated.
Cheers
Andy
 
Astronomy news on Phys.org
C seems to be the language of choice these days. It is also probably easier to learn than object oriented languages like C+.
 
Chronos said:
C seems to be the language of choice these days. It is also probably easier to learn than object oriented languages like C+.

This got me curious, is there any other major reasons for choosing C, besides the language not being object oriented?
 
Object oriented languages are not a bad thing, it's more the case that C tends to be
more intuitive to most people.
 
Chronos said:
Object oriented languages are not a bad thing, it's more the case that C tends to be
more intuitive to most people.
\


I was a programmer for 20 years, about evenly divided between C and C++.

In my view C++ is far superior. It allows modular programs to be built. C has no support for modularity: it exists only in the mind of the programmer.

Unfortunately most programmers don't seem to be able to use C++ effectively and the result is worse than if they had used C.
---
Think of it this way: C is like an old-fashioned TV or radio where everything is wired together by hand. C++ is like printed circuit boards plugging into a bus. If one board breaks you can replace it with another.

In the real world a C++ program often ends up like printed circuit boards that have had numerous random wires connected between the boards. Ugh! The worst of both worlds.

As to which is the best for employment, I have no idea.
 
Andy Morris said:
Which computer would be the best choice for a future in astrophysics/physics etc.

C++

although you if you want to learn object oriented programming, you'd probably be better off starting with python and using the numpy/scipy libraries.

Most physics code in C++ looks like it was written in fortran, which is a good thing since you can write decent C++ that looks like decent fortran.
 
ImaLooser said:
Unfortunately most programmers don't seem to be able to use C++ effectively and the result is worse than if they had used C

Yup. One thing about C++ that makes it a powerful language is that you can forget about all of the object oriented stuff and write programs that look like C or Fortran.