Java Instead of Python

May 29, 2010
57 Views

Quantum Financier asked a question about thoughts on Java vs Python in RE: to the previous note. I thought it might be useful out of the comments-

Why I’m using Java
Java is strongly typed which means it won’t let you make obvious errors. Especially helpful when you want to write things without running it and you don’t want a huge debugging job when you finally do run things (for example when you write code on the weekend and can’t run it till Monday, or when you don’t have internet). Also very helpful for refactoring.
Most APIs are native Java so you can save some work there.
The Netbeans Java IDE is a lot better than any Python development tool I’ve found, and also the code completion feature along with JavaDoc comments makes it so you never have to look things up. Python’s command line is nice but beaten by the above. Also, most of the verbosity people complain about with Java is handled really smoothly by Netbeans autocompletion so you almost never have to type in all the brackets, overridden interface methods, etc.
Java is easier to set up because it’s already on pretty much every computer. Whereas for Python you have to maintain your own


Quantum Financier asked a question about thoughts on Java vs Python in RE: to the previous note. I thought it might be useful out of the comments-

Why I’m using Java
Java is strongly typed which means it won’t let you make obvious errors. Especially helpful when you want to write things without running it and you don’t want a huge debugging job when you finally do run things (for example when you write code on the weekend and can’t run it till Monday, or when you don’t have internet). Also very helpful for refactoring.
Most APIs are native Java so you can save some work there.
The Netbeans Java IDE is a lot better than any Python development tool I’ve found, and also the code completion feature along with JavaDoc comments makes it so you never have to look things up. Python’s command line is nice but beaten by the above. Also, most of the verbosity people complain about with Java is handled really smoothly by Netbeans autocompletion so you almost never have to type in all the brackets, overridden interface methods, etc.
Java is easier to set up because it’s already on pretty much every computer. Whereas for Python you have to maintain your own distribution of libraries which makes ramping up another development computer a really long process and sometimes a pain. Annoying because I usually wait to go through the pain of installing things when I’m motivated to work on strategies, but installation usually burns me out for a session.
What I’ve missed about Python
Python is more flexible which might let you use more intuitive designs, like having callbacks with first-order functions (which Java doesn’t have).
General
There’s very little difference between what you can and can’t do or even how programs end up looking. I wouldn’t say one is clearly better, most of the differences are semantic/subjective. They’re both well-developed advanced languages with good communities. I’m continuing with Java for some current projects though (glancing at Scala every now and then too).

You may be interested

Big Data Revolution in Agriculture Industry: Opportunities and Challenges
Analytics
69 shares1,947 views
Analytics
69 shares1,947 views

Big Data Revolution in Agriculture Industry: Opportunities and Challenges

Kayla Matthews - July 24, 2017

Big data is all about efficiency. There are many types of data available, and many ways to use that information.…

How SAP Hana is Driving Big Data Startups
Big Data
298 shares3,200 views
Big Data
298 shares3,200 views

How SAP Hana is Driving Big Data Startups

Ryan Kh - July 20, 2017

The first version of SAP Hana was released in 2010, before Hadoop and other big data extraction tools were introduced.…

Data Erasing Software vs Physical Destruction: Sustainable Way of Data Deletion
Data Management
156 views
Data Management
156 views

Data Erasing Software vs Physical Destruction: Sustainable Way of Data Deletion

Manish Bhickta - July 20, 2017

Physical Data destruction techniques are efficient enough to destroy data, but they can never be considered eco-friendly. On the other…