Discover
/
Article

Opinion: Should Fortran be taught to undergraduates?

JUN 16, 2009
Physics Today
Walking Randomly : Back in 1997 Mike Croucher was a second-year undergraduate of physics. He was taught how to program in Fortran , a language that has survived over 40 years due to several facts including
  • It is very good at what it does.
  • There are millions of lines of legacy code still being used in the wild. If you end up doing research in subjects such as chemistry, physics, or engineering then you will almost certainly bump into Fortran code.
  • A beginner’s course in Fortran has been part of the staple diet in degrees in physics, chemistry, and various engineering disciplines (among others) for decades.
  • It constantly reinvents itself to include new features. Croucher was taught Fortran 77 (despite it being 1997) but you can now also have your pick of Fortran 90, 95, 2003, and soon 2008.

“Almost everyone I knew hated that 1997 Fortran course and the reasons for the hatred essentially boiled down to one of two points depending on your past experience,” he says.

  • Fortran was too hard! So much work for such small gains. (First-time programmers)
  • The course was far too easy. It was just a matter of learning Fortran syntax and blitzing through the exercises. (people with prior experience)

The course was followed by a numerical methods course which culminated in a set of projects that had to be solved in Fortran. People hated the follow-on course for one of two reasons

  • They didn’t have a clue what was going on in the first course and now they were completely lost.
  • The problems given were very dull and could be solved too easily. In Excel! Fortran was then used to pass the course.

Croucher continues, “Fast forward to 2009 and I see that Fortran is still being taught to many undergraduates all over the world as their first ever introduction to programming.""Students can solve problems infinitely more complicated then the ones I was faced with in even my most advanced Fortran courses with just a couple of lines of code using Mathematica , Maple, or MATLAB .""Which suggests why learn Fortran at all? And would another language such as Python be a better fit for students?” Related Link Walking Randomly

Related content
/
Article
The finding that the Saturnian moon may host layers of icy slush instead of a global ocean could change how planetary scientists think about other icy moons as well.
/
Article
/
Article
After a foray into international health and social welfare, she returned to the physical sciences. She is currently at the Moore Foundation.
/
Article
Modeling the shapes of tree branches, neurons, and blood vessels is a thorny problem, but researchers have just discovered that much of the math has already been done.

Get PT in your inbox

pt_newsletter_card_blue.png
PT The Week in Physics

A collection of PT's content from the previous week delivered every Monday.

pt_newsletter_card_darkblue.png
PT New Issue Alert

Be notified about the new issue with links to highlights and the full TOC.

pt_newsletter_card_pink.png
PT Webinars & White Papers

The latest webinars, white papers and other informational resources.

By signing up you agree to allow AIP to send you email newsletters. You further agree to our privacy policy and terms of service.