Which programming language should I learn?

  • Thread starter Dauden
  • Start date
  • #1
45
0

Main Question or Discussion Point

I'm going for a major in mechanical engineering and am planning on getting a PhD. I was planning on having a minor in Computer Science just to help with research and general programming.

With all of the programming languages out there, it gets kind of overwhelming when trying to narrow it down to one language. I've seen that Fortran is described as an engineering language but my school requires you to take a programming class in C++ to graduate with an Associates in engineering (I already took that class).

Any insight would be appreciated.
 

Answers and Replies

  • #2
18,201
7,810
Keep studying C/C++. Once you master it you can literally pick up any new language in a weekend.
 
  • #3
harborsparrow
Gold Member
536
108
I would learn either Java or C# which are object oriented, perform well for calculations, and are a heck of a lot safer to use for the average programmer than C++. In the "real world", one probably only needs C++ if doing systems programming (on a computer operating system) or extreme multimedia as in computer games. Otherwise, for physics type calculations, you'll be a lot happier in the long run equipping yourself with a language that does automatic garbage collections and has well-behaved objects without the hazards of multiple inheritance and broken pointers.
 
  • #4
mgb_phys
Science Advisor
Homework Helper
7,774
12
The advantage of C/C++ is that most libraries are written in C or can easily link to it.
The other popular choice is python, it has a lot of scientific library support and links easily with c libs
 
  • #5
What happened to he other posts in this thread (I made one)
 
  • #7
61
0
I would learn either Java or C# which are object oriented, perform well for calculations, and are a heck of a lot safer to use for the average programmer than C++.
You wouldn't if you were studying engineering. C++ is essential for the sciences, everything else is secondary. Just about all current work is developed in C and C++. Unless you're up for the job of rewriting decades of library development in C#, you don't have much choice. The situation may change, but if it does it will change very slowly.

My suggestion would be learn C++ and learn it well. Then learn a scripting language such as Python, which will be quick and easy if you know C++. This way you have the essential foundation for engineering work, and you have the high level language which comes in handy everywhere else (prototyping design ideas, etc).
 
  • #8
157
0
I first learned C++ during my first semester in college. I have now been playing around with visual basic(for applications) or VBA its pretty nice. I know its not as powerfull as c++, but if you have excel you can do some cool stuff. I had a professor who swears by excel and VBA. He is mainly a heat transfer guy and has used excel/VBA to model 3-D heat tranfer amoung other things. I have been working on developing an application to numerically solve n-body gravitational problems. The language is different that c++ but certain things feel pretty similar. Anyway I would still take c++ it makes it easier to learn a new language.
 

Related Threads on Which programming language should I learn?

Replies
15
Views
3K
Replies
26
Views
6K
Replies
16
Views
908
Replies
397
Views
4K
  • Last Post
2
Replies
29
Views
2K
  • Last Post
Replies
19
Views
1K
  • Last Post
Replies
8
Views
3K
Replies
15
Views
6K
Replies
3
Views
2K
Top