What are the most commonly used programming languages in industry?

  • Thread starter meb09JW
  • Start date
  • Tags
In summary, the conversation discusses the importance of learning programming languages for engineering, particularly in the field of avionics. The recommended languages to learn include Matlab, Python, C, C++, and Fortran. It is also mentioned that engineers should also consider software engineering and creating user-friendly interfaces in their programming. The conversation ends with a discussion on the evolution of programming languages and the importance of logical structure and transportability in engineering programs.
  • #1
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++.

Engineering news on Phys.org
  • #2
and if I had to choose C or C++ first... which one?
  • #3
In my Mechanical Eng. degree I'm currently taking an intro to Fortran class. From what I hear, Fortran is getting outdated though.
  • #4
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.
  • #5
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.
  • #6
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!

1. What is programming for engineers?

Programming for engineers is the process of using computer programming languages and tools to solve engineering problems and automate tasks. It involves writing code, debugging, and testing to create software and applications that can be used in various engineering fields.

2. Why is programming important for engineers?

Programming is important for engineers because it allows them to automate repetitive tasks, perform complex calculations, and analyze large amounts of data. It also enables engineers to design and develop software and tools that can improve efficiency, accuracy, and productivity in their work.

3. Which programming languages are most commonly used in engineering?

Some of the most commonly used programming languages in engineering include Python, Java, C++, MATLAB, and SQL. Each language has its own strengths and can be used for different purposes, such as data analysis, simulation, and control systems.

4. Do I need to have prior programming experience to learn programming for engineers?

While having prior programming experience can be helpful, it is not necessary to learn programming for engineers. Many engineering programs and courses provide a strong foundation in programming concepts and tools, making it accessible for beginners to learn and apply programming skills in an engineering context.

5. How can I improve my programming skills for engineering?

To improve your programming skills for engineering, you can practice by working on projects and exercises, attend workshops or courses, and seek guidance from experienced programmers. It is also important to stay updated on new technologies and tools in the field and continuously challenge yourself to solve complex problems.

Suggested for: What are the most commonly used programming languages in industry?