New Reply

Which Programming Language is Best?

 
Share Thread Thread Tools
Jul29-12, 05:43 PM   #1
 

Which Programming Language is Best?


Hey guys,

Starting in a couple weeks, I will begin my college education at North Carolina State as a Physics major. One requirement for my degree is a programming class. For my degree, the offer FORTRAN, C++, Java, and MATLAB. My counselor has not advised me to take a single one, just to choose. I'm trying to figure out which one would be the most useful and the best for the future. From my research so far, C++ seems to be the best, as it seems that Java is not used much for science and FORTRAN is rather outdated. But I could be wrong. Any help would be appreciated.

Thanks!
 
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Front-row seats to climate change
>> Attacking MRSA with metals from antibacterial clays
>> New formula invented for microscope viewing, substitutes for federally controlled drug
Jul29-12, 07:01 PM   #2
 
No, Fortran is not outdate at all. May be old, but that does not mean is outdated. Also, there is a reason why is "old" or better put, there is a reason why it is still around! Fortran came out of the sciences and has always been used in the sciences. The most used and bug free algorithms that you will one day need, have been around in Fortran.

Fortran protects you against memory leaks better than C or C++. Fortran now has structures and pointers if that is what you like. Fortran handles arrays a-la-matlab, if that is what you like; it can also vectorize array operations. Matlab's behind-the-scene linear algebra package is written in Fortran 90.

just a couple of cents.
 
Jul29-12, 07:31 PM   #3
 
Recognitions:
Homework Helper Homework Help
I would recommend finding out what computers and what language the physics department uses, since that is your major.
 
Jul29-12, 07:38 PM   #4
 

Which Programming Language is Best?


What is the best fortran compiler for Windows 64-bit? Also OS X? Preferably something free or reasonably priced.
 
Jul29-12, 08:10 PM   #5
 
I think C++ is the best choice. I am not in the field of physics so I cannot say for sure that it is the most often used for that, but I know someone who works for a theoretical chemist and does C++ programming for their computational models, so C++ is definitely used for some scientific modeling.

C++ is a powerful language, and is also widely used.
 
Jul29-12, 10:45 PM   #6
 
Mentor
Quote by danielu13 View Post
Also OS X?
You can find links to pre-compiled packages for C/C++ and Fortran here:

http://hpc.sourceforge.net/
 
Jul30-12, 08:42 AM   #7
 
gfortran

g95

both free and multiplatform.
 
Jul30-12, 01:36 PM   #8
 
I've looked at both of those, but they seem somewhat confusing so far. I found Simply Fortran, which apparently is cheap and keeps some functionality after the trial has expired either way. Has anyone worked with that?
 
Jul30-12, 02:27 PM   #9
 
I had never heard of Simply Fortran, it seems fair; basically, they are packaging free tools: gfortran (and probably the rest of the GNU tool chain for C), Scintilla editor, GDB debugger...the only thing that seems they wrote is the IDE itself.

If you were confused with the webpages for gfortran and g95, $25 is a very reasonable amount of money to pay to save you a couple of hours of your time if you do not have experience searching and installing software, etc.

Go for it, it will save you a lot of trouble.
 
New Reply
Thread Tools


Similar Threads for: Which Programming Language is Best?
Thread Forum Replies
Which programming language should I use? Programming & Comp Sci 26
Best programming language? Academic Guidance 22
Which programming language is best? Academic Guidance 12
Recommended programming language (and texts) for middle-school beginner programming Programming & Comp Sci 9
c programming language Programming & Comp Sci 1