Re: why are developers moving towards python?
python is slower than Java, just as virtually all interpreted language are compared to compiled ones, however a lot of the time you don't care whether your program finishes a task in 10 ms or 100ms, but the fact the program automates a task for you that manually takes you 30 minutes to do.
personally, most of the time I use python for automation and there is a really good reason I use it and not Java.
1. writing a simple program in python is way way faster than in java. literally just write a single file and then run it.
2. Java really sucks for short running programs that you typically envoke from a command line because of latency
the latter point is due to java being a just-in-time compiled language, meaning when you envoke a java program, it actually needs to warm up by compiling the java byte code to the platform's native machine code. so for such programs python will actually give you better performance anyway.
edit:
also two other reasons many programmers choose python over java is its relatively cleaner syntax and the fact python is dynamicly typed whereas java is statically typed.
many programmers just don't like static typing and so just prefer a language like python. personally I love static typing, although I have to say Java's type system is aweful and probably a major reason why a lot of programmers are put off by static typing in general, even though it is technically superior when combined with automatic type inference like it is in Scala, typescript, Haskell, Elm, and others.
lastly, this issue isn't black and white. most programmers end up using different languages for different things. so it isn't uncommon for a programmer to use both java and python.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector