What are the most practical beneficials for Python, comparing to Java?
30th December 2011
My answer to What are the most practical beneficials for Python, comparing to Java? on Quora
For me, the single most productive advantage of Python is the ability to work with it interactively in a REPL—I use ipython but Python also ships with an interactive mode out of the box.
I do almost all of my development in the interactive prompt first, then copying working code in to a text editor once I’ve got it working interactively.
I find this more than compensates for the lack of an auto-completing IDE such as Eclipse—in fact ipython does both autocompletion and offers inline documentation (just type symbol? and hit enter for the signature/docstring or symbol?? for the source code to a function).
Once you’ve learnt to develop interactively in this way it can be really frustrating working with a language like Java or PHP that doesn’t lend itself effectively to this style of programming.
More recent articles
- Things I've learned about building CLI tools in Python - 30th September 2023
- Talking Large Language Models with Rooftop Ruby - 29th September 2023
- Weeknotes: Embeddings, more embeddings and Datasette Cloud - 17th September 2023
- Build an image search engine with llm-clip, chat with models with llm chat - 12th September 2023
- LLM now provides tools for working with embeddings - 4th September 2023
- Datasette 1.0a4 and 1.0a5, plus weeknotes - 30th August 2023
- Making Large Language Models work for you - 27th August 2023
- Datasette Cloud, Datasette 1.0a3, llm-mlc and more - 16th August 2023
- How I make annotated presentations - 6th August 2023
- Weeknotes: Plugins for LLM, sqlite-utils and Datasette - 5th August 2023