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

Discussion Overview

The discussion revolves around the suitability of Python as a programming language for electrical engineering students, with participants exploring various programming languages and their applications in the field. The conversation includes considerations of Python's general-purpose capabilities, comparisons with other languages like Java and C#, and the learning paths for beginners.

Discussion Character

  • Exploratory
  • Debate/contested
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant expresses a desire to learn a programming language that is useful for electrical engineering, mentioning Python as a potential choice due to its versatility.
  • Another participant supports Python, highlighting its effectiveness in scientific computing and its suitability as a first programming language, while also noting the eventual necessity of learning C.
  • Some participants recommend starting with tutorials and resources for Python, emphasizing its consistency and ease of learning compared to other languages like C++.
  • There are claims that Java is the most widely used programming language, with a significant number of active developers, and that it is commonly taught in universities.
  • One participant argues that Java's popularity is declining and expresses a negative opinion about its verbosity and rigidity compared to Python.
  • Another participant questions the concept of "control extensibility" in Python compared to Java and C#, seeking clarification on Python's capabilities in web development.
  • Responses indicate that Python has modules for database interaction and web development, suggesting it is competent for such tasks.
  • Some participants express differing opinions on the merits of various programming languages, including personal preferences for C# and critiques of Java.

Areas of Agreement / Disagreement

Participants express a range of opinions on the best programming language for electrical engineering, with no clear consensus. While some advocate for Python, others highlight the strengths of Java and C#. Disagreements exist regarding the future popularity of these languages and their respective advantages and disadvantages.

Contextual Notes

Participants mention various resources and tutorials for learning Python, but some express concerns about the accuracy of specific tutorials. There is also a discussion about the learning curve associated with transitioning from one programming language to another.

Who May Find This Useful

Individuals interested in programming for electrical engineering, students considering their first programming language, and those exploring the comparative merits of Python, Java, and C# may find this discussion relevant.

  • #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
4K
  • · 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