Is Python the Best Language for Electrical Engineering Students?

  • Context: Python 
  • Thread starter Thread starter foges
  • Start date Start date
  • Tags Tags
    Language Python
Click For Summary
SUMMARY

Python is highly recommended as the best programming language for electrical engineering students due to its versatility and ease of learning. It excels in scientific computing and can be used for web applications, making it suitable for various engineering tasks. While some users suggest exploring Delphi for hardware interaction, Python's extensive libraries and community support make it a superior choice for beginners. Additionally, foundational knowledge in C is essential for understanding programming concepts, as it remains a critical language in the field.

PREREQUISITES
  • Basic understanding of programming concepts such as variables, functions, and control structures.
  • Familiarity with Python 3.x syntax and its standard libraries.
  • Knowledge of object-oriented programming principles, particularly if transitioning to languages like Java or C#.
  • Awareness of scientific computing tools and libraries, such as NumPy and SciPy, for engineering applications.
NEXT STEPS
  • Explore Python's official documentation and tutorials at python.org.
  • Learn about scientific computing with Python by studying libraries like NumPy and SciPy.
  • Research the differences between Python and C, focusing on procedural and object-oriented programming paradigms.
  • Investigate web development with Python using frameworks such as Flask or Django for creating interactive applications.
USEFUL FOR

This discussion is beneficial for high school students planning to study electrical engineering, aspiring programmers, and anyone interested in learning Python as a versatile programming language for various applications.

  • #61
D H said:
Well, welcome to my world. Strong typing is just a start. Algorithms must provably run to completion in a fixed amount of space and time. A garbage collector deciding to rear its ugly head would be problematic, but fortunately there is no need to worry about garbage collection in avionics software: Memory allocation is strictly verboten. Python violates many precept of avionics software.

I'm well aware of "cleanroom" and other forms of zero-defect software engineering, and I understand the importance of languages like Ada and their strong typing for those purposes.

Despite being labeled a "zealot" in this thread, I understand that different tasks require different tools -- I know a dozen or so languages. The vast majority of programming tasks that most people want to do just don't require the rigor of Ada, though, and and they are better done in languages like Python.

In my opinion, Python just has the best mix of ease-of-use, accessibility, and power of any language available today.

- Warren
 
Technology news on Phys.org
  • #62
D H said:
Well, welcome to my world. Strong typing is just a start. Algorithms must provably run to completion in a fixed amount of space and time. A garbage collector deciding to rear its ugly head would be problematic, but fortunately there is no need to worry about garbage collection in avionics software: Memory allocation is strictly verboten. Python violates many precept of avionics software.
Real time, safety critical software is also a part of my world including DO-178B. Java lives there too. There are a couple of approaches to bounding garbage collection event times, such as giving it a priority like everything else, or simply declaring some memory objects outside the scope of the garbage collector.
http://www.rtsj.org/specjavadoc/book_index.html
A couple years ago I worked on a team that created an autonomous unmanned vehicle (truck size) where the _entire_ vehicle high level control and navigation system was written in Java. Oh, and I still much prefer Python, whenever I can use it.
 
  • #63
wow guys i want to learn to programme.by fact all the computer science i know is in thory and i can't do shi.tttttttttttttt
 
  • #64
foges said:
Im in my last year of high school and for about two years now I've . I want to be able to use it to make for example: applications that interact with websites, like getting prices off ebay or something.

What is a good language for this.

Well, what you need to do is adapt to many scripting languages.
Hell, I've even scripted for CGI with Forth.

Basically you need to learn some Perl, PHP, Mysql, and basic UNIX so you
can use a shell. I recommend a book; 'Unix in a Nutshell'.

With those tools you can do anything you want but there are many others
too. Basically the only difference between scripting languages is syntax.
The end result is always the same, binary for the processor.

If you choose Unix/Linux for your platform you need to learn a little
about file systems and attributes plus permissions. These are key.

BTW -CGI is Common Gateway Interface. With what you want to do you
will become quite intimate with it.
 
  • #65
I reckon Warren is the man.
Python is the s***
 
  • #66
Python IS good. So are a lot of other languages. But if you ask this question in this forum, it will be a hot topic, because (in my opinion) there are some extreme Python zealots posting in here.
 
  • #68
harborsparrow said:
Python IS good. So are a lot of other languages. But if you ask this question in this forum, it will be a hot topic, because (in my opinion) there are some extreme Python zealots posting in here.

That's quite a serious claim. It might be a good idea for you to identify these "zealots" and the specific reasons why they're guilty of such behaviour. Otherwise, you should apologise.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 56 ·
2
Replies
56
Views
10K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 15 ·
Replies
15
Views
4K