Best Computer Language for Employment

Click For Summary

Discussion Overview

The discussion revolves around the best computer language for employment in the fields of astrophysics and physics, particularly in the context of academic versus industry positions. Participants explore various programming languages and their applicability to the field, sharing personal experiences and preferences.

Discussion Character

  • Exploratory
  • Debate/contested
  • Technical explanation

Main Points Raised

  • Some participants suggest that C is currently a popular choice for programming in physics due to its perceived ease of learning compared to object-oriented languages like C++.
  • Others argue that C++ is superior for building modular programs, although they acknowledge that many programmers struggle to use it effectively.
  • One participant compares C to an old-fashioned TV, emphasizing its lack of modularity, while likening C++ to printed circuit boards that allow for easier replacement and modification.
  • Another viewpoint suggests that if one wants to learn object-oriented programming, starting with Python and its libraries like numpy/scipy might be more beneficial.
  • There is a mention that much physics code written in C++ resembles Fortran, which some participants view positively.

Areas of Agreement / Disagreement

Participants express differing opinions on the merits of C versus C++, with no consensus on which language is definitively better for employment in astrophysics or physics. The discussion remains unresolved regarding the best choice of programming language.

Contextual Notes

Some participants highlight the challenges of learning programming languages and the varying effectiveness of programmers in utilizing C++ compared to C. There are also references to the historical context of programming languages in physics.

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.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
Replies
86
Views
3K
  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
15
Views
4K
Replies
26
Views
5K
  • · Replies 44 ·
2
Replies
44
Views
6K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K