What are the most commonly used programming languages in industry?

  • Thread starter Thread starter meb09JW
  • Start date Start date
  • Tags Tags
    Programming
Click For Summary

Discussion Overview

The discussion revolves around the programming languages commonly used in the engineering industry, particularly in the context of aerospace and mechanical engineering. Participants share their experiences and preferences regarding various programming languages, including Matlab, Python, C, C++, and Fortran, while considering their applicability and relevance in industry settings.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant mentions their background in Aerospace Engineering and seeks advice on which programming languages are most prevalent in the industry, listing Matlab, Python, C, and C++ as recommendations.
  • Another participant questions whether to learn C or C++ first, indicating a desire for guidance on language selection.
  • A participant in Mechanical Engineering shares their experience with Fortran, noting that it seems to be becoming outdated.
  • One contributor emphasizes the importance of mastering Matlab and C++, suggesting that they have similar structures and that familiarity with one can facilitate learning the other.
  • A participant expresses concerns about common programming practices among engineers, highlighting issues such as poor variable naming, excessive parameters in functions, and lack of user-friendly interfaces, which can lead to inefficient and difficult-to-maintain code.
  • Another participant reflects on the evolution of programming languages, mentioning the historical context of Basic and Fortran, and stresses that the logical structure and transportability of programs are more critical than the specific language used.

Areas of Agreement / Disagreement

Participants express a variety of opinions on the relevance and utility of different programming languages, with no clear consensus on which language is definitively the best choice for engineering applications. Some participants advocate for specific languages, while others raise concerns about programming practices and the evolution of languages over time.

Contextual Notes

Participants discuss the relevance of programming languages in industry without resolving the debate on which languages are superior or more applicable. There is also mention of the importance of programming practices and user interface considerations, which may not be universally agreed upon.

meb09JW
Messages
23
Reaction score
0
hi guys,

so I'm in my third year at a UK university, studying Aerospace (Avionics mainly) Engineering.

We've covered some programming in different modules. Some Matlab, some Java, some C.

However, I'd like to start learning more thoroughly.

Which languages are used the most in industry?

I've been recommended - Matlab, Python, C, C++.

Thanks,
 
Engineering news on Phys.org
and if I had to choose C or C++ first... which one?
 
In my Mechanical Eng. degree I'm currently taking an intro to Fortran class. From what I hear, Fortran is getting outdated though.
 
Matlab is a great program to master. It is very powerful and, after you learn its intricacies, relatively straight forward. Mathematica's Maple software is nice, but not necessary, it is a great tool for solving differential equations as well as multivariable ones; far more intuitive for those types of equations than matlab, but also not as powerful for higher complexity stuff and not really useful for iterations and systems analyses.

Any C language will be extremely useful if you will be programming, and with avionics you sure as heck will be. Become familiar with them all, master C++. Fortran is a great language from what I hear (I'm no programmer) but as you say it seems many industrial leaders are heading away from it.

Matlab and C++ have very similar structures. They differ in syntax, but if you can master the structure and logic of one, the other will come relatively easily.
 
I want to have a little rant about this and hope you don't go down the dark path so many have gone before.

If you want to write software that anybody else might use, or if anybody else might want to read/modify the source code, then you should look at software engineering too. UIs are also handy. VB makes that fairly easy.

These are things that I've noticed engineers tend to overlook. There's a lot of complete mess software around that does some fantastic calculations, but nobody has the time to understand how to use it or to untangle the spaghetti code inside it. Then when it has mysterious failures due to numerical instability or some obscure bug, it has to be thrown away and done again from scratch.

If you find yourself doing these things, you might be programming like an engineer:
- Using ii and jj as variable names
- Using goto
- Making a function with more than 5 parameters
- Using abbreviated function names like STG3B
- Storing numerical data in strings
- Inventing a file format with data stored in the same sequence it gets processed
- Inventing a new file format for every program, even if they should be used together
- Making tools to convert between those file formats
- Inventing abbreviated commands for the user to memorize
- Hardcoding constants
- Optimizing

I'm guilty of some of these myself. But they're still bad because they waste people's time.
 
Well expressed Unrest. Having been programming for engineering over the past 40 years all programming languages have evolved. A good example is Basic. It started with a version called DEC Basic with only 2 characters allowed for variable names, subroutines could only be called with a GOTO statement, ETC. Today visual basic is a powerful language. Fortran is still relavent if only because many engineering programs were developed using it and in the days of the IBM 1130 with Fortran one and two and limited menory (16K), Frotran had a unique command which was "call link" allowing programs of any size, if you could limit the items that had to be passed from on segment to the next. C from Bell Labs was good with a little different syntex but very capable. To be a good programmer a knowledge of assembly for the processor you are working with is helpful but not a necessary as it was in the early days of Intel's 8080, there was no math processor so it was necessary to program in assembly to add, subtract, multiply and devide. Now no one thinks about it. To make an engineering program usable the input and output format is most important to the user, as well as a way to verify the results is most important.

It really doesn't matter what language, more inportant is how transportable and the logical structure of the programs. If the program is for one time use it makes little difference but the results must be verified. Good luck and have fun!
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
Replies
16
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 397 ·
14
Replies
397
Views
22K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K