Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python as First Langauge
#14
I have now decided for Java.

The reason is that Java is closer to the machine. I want the students to think about the way an algorithm works and to get a picture of what is actually happening in the computer. Otherwise, they will come up with solutions that perform very badly. E.g., it is simply not okay to forget about the underline machine architecture and use infinite integers all the time. This sloppy style might avoid some thinking, but at a cost.

I also do not like students to not use loops. While all those list tricks in Python are short, they are cryptic, especially for a beginner. What is a slice object, a range in Python 3? I admit that it is more verbose to achieve the same in Java, but a lot easier to understand.

For a speed comparison: I just tried to fill create a list of 100000 integer elements in Python and fill it with 1 to 100000. That takes 5 msec. It does not matter if you do it with x.append(k) or a presized list and x[k]=k. Then I did the same in Java in 0.15 msec. That is 30 times faster! If you are using the list class in Java List<Integer> it takes 0.5 msec, which is still 10 times faster. Sorry, but I come from Numerical Analysis.

So let it be Java. I also have to consider that I have three other high class subjects (Complex Analysis, Calculus, Measure Theory) in the next semester, and I understand Java much better than Python.

Thanks for all your input!
Reply


Messages In This Thread
Python as First Langauge - by mga010 - Jul-02-2020, 10:09 AM
RE: Python as First Langauge - by Larz60+ - Jul-02-2020, 11:03 AM
RE: Python as First Langauge - by Gribouillis - Jul-02-2020, 11:26 AM
RE: Python as First Langauge - by ndc85430 - Jul-02-2020, 11:53 AM
RE: Python as First Langauge - by mga010 - Jul-02-2020, 03:04 PM
RE: Python as First Langauge - by Larz60+ - Jul-02-2020, 03:16 PM
RE: Python as First Langauge - by Gribouillis - Jul-02-2020, 06:34 PM
RE: Python as First Langauge - by perfringo - Jul-02-2020, 07:39 PM
RE: Python as First Langauge - by mga010 - Jul-04-2020, 02:33 PM
RE: Python as First Langauge - by snippsat - Jul-04-2020, 10:52 PM
RE: Python as First Langauge - by mga010 - Jul-05-2020, 05:34 PM
RE: Python as First Langauge - by voidptr - Jul-25-2020, 04:59 AM
RE: Python as First Langauge - by Larz60+ - Jul-25-2020, 02:00 PM
RE: Python as First Langauge - by mga010 - Jul-27-2020, 04:03 PM
RE: Python as First Langauge - by Gribouillis - Jul-27-2020, 04:30 PM
RE: Python as First Langauge - by mga010 - Jul-28-2020, 04:46 PM
RE: Python as First Langauge - by Larz60+ - Jul-29-2020, 12:08 AM
RE: Python as First Langauge - by voidptr - Aug-02-2020, 07:02 AM
RE: Python as First Langauge - by millpond - Jul-31-2020, 06:49 AM
RE: Python as First Langauge - by elenaflorence87 - Jul-31-2020, 12:20 PM
RE: Python as First Langauge - by anne - Jul-31-2020, 06:06 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020