473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

python vs java & eclipse

Hi,

It seems to me that measuring productivity in a programming language
must take into account available tools and libraries.

Eclipse for example provides such an amazing IDE for java that it is no
longer obvious to me that one would be much more productive in python
for medium sized projects.

Sure, all that Java static typing can be painful, but Eclipse takes
some of that pain away. Moreover, static typing can result in better
on-the-fly error detection and refactoring support.

Any thoughts on this?

Amir

Dec 1 '06 #1
16 3972
On 1 Dec 2006 01:24:47 -0800, Amir Michail <am******@gmail.comwrote:
Eclipse for example provides such an amazing IDE for java that it is no
longer obvious to me that one would be much more productive in python
for medium sized projects.
Eclipse can generate a lot of the Java boilerplate code, it's true,
saving you a lot of typing up front. But it can't maintain all those
reams of pointless code for you, and perhaps more importantly, it
can't read it for you. All the useless code that Java requires still
has a large price, even if you don't need to type it yourself.
Sure, all that Java static typing can be painful, but Eclipse takes
some of that pain away. Moreover, static typing can result in better
on-the-fly error detection and refactoring support.
I do sometimes spend some time finding and fixing bugs of the "I
though I had a Spam instance, but it turns out to be a Eggs instance"
issues when coding in Python, but then I spend some time sorting out
"I know you've got a fry() method in there somewhere - just let me
call it!" issues in Java, so it balances out. And the latter problems
are more annoying, 'cos I feel the compiler isn't trusting me. Python
usually trusts me, even if I don't always deserve it. ;-)

FWIW, I spend perhaps 80% of my coding time with Java (and Eclipse),
and 20% with Python.

--
Cheers,
Simon B
si***@brunningonline.net
http://www.brunningonline.net/simon/blog/
Dec 1 '06 #2
just used the py dev plugin for eclipse.
it is great.
auto indentation and intellisence.
and all other things.
so now how does it look from this end?
python + productivity and eclipse + productivity = double productivity!
only problem with the plugin is that I find it difficult to manage the
script running.
I open a command prompt and run the scripts manually.
any suggestion for this.
for example I had name = raw_input("please enter your name") and the
moment I type the first letter on the keyboard the code execution
moves over to the next statement. should it not wait for the return
key as it always does?
Krishnakant.
Dec 1 '06 #3
hg
krishnakant Mane wrote:
just used the py dev plugin for eclipse.
it is great.
auto indentation and intellisence.
and all other things.
so now how does it look from this end?
python + productivity and eclipse + productivity = double productivity!
only problem with the plugin is that I find it difficult to manage the
script running.
I open a command prompt and run the scripts manually.
any suggestion for this.
for example I had name = raw_input("please enter your name") and the
moment I type the first letter on the keyboard the code execution
moves over to the next statement. should it not wait for the return
key as it always does?
Krishnakant.
I don't know about raw_input ... my programs all go through some GUI ...
but I run / debug(although almost never) all of my applications from
pydev - no need to change project as with Visual Studio, I just
run/debug whatever I need with a few clicks ... have not touched Konsole
in weeks.

I also, after weeks of testing, decided to invest in the pydev
extensions / the bugs it has found for me already justify the investment.

hg
Dec 1 '06 #4
Thomas Ploch schrieb:
Amir Michail schrieb:
>Hi,

It seems to me that measuring productivity in a programming language
must take into account available tools and libraries.

Eclipse for example provides such an amazing IDE for java that it is no
longer obvious to me that one would be much more productive in python
for medium sized projects.

Sure, all that Java static typing can be painful, but Eclipse takes
some of that pain away. Moreover, static typing can result in better
on-the-fly error detection and refactoring support.

Any thoughts on this?

Amir

Yes, thats true, but since eclipse is resource monster (it is still
using java), and some people (like me) don't have a super fresh and new
computer, and have to run other services to test their work locally
(like mysql and apache servers), it gets pretty harsh with eclipse. I
personally tried eclipse on my laptop (which I work most with), and I
had quite a system resource problem. So I switched back to vim and
console and it hasn't been too bad, since if you know how to use a
powerful editor, it can be as productive.

But in the end, it is up to anyone to find the best solutiion for
themselves.

Thomas
Yes, thats true, but since eclipse is resource monster (it is still
using java), and some people (like me) don't have a super fresh and new
computer, and have to run other services to test their work locally
(like mysql and apache servers), it gets pretty harsh with eclipse. I
personally tried eclipse on my laptop (which I work most with), and I
had quite a system resource problem. So I switched back to vim and
console and it hasn't been too bad, since if you know how to use a
powerful editor, it can be as productive.

But in the end, it is up to anyone to find the best solutiion for
themselves.

Thomas

Dec 1 '06 #5
hg
Thomas Ploch wrote:
Thomas Ploch schrieb:
>Amir Michail schrieb:
>>Hi,

It seems to me that measuring productivity in a programming language
must take into account available tools and libraries.

Eclipse for example provides such an amazing IDE for java that it is no
longer obvious to me that one would be much more productive in python
for medium sized projects.

Sure, all that Java static typing can be painful, but Eclipse takes
some of that pain away. Moreover, static typing can result in better
on-the-fly error detection and refactoring support.

Any thoughts on this?

Amir
Yes, thats true, but since eclipse is resource monster (it is still
using java), and some people (like me) don't have a super fresh and new
computer, and have to run other services to test their work locally
(like mysql and apache servers), it gets pretty harsh with eclipse. I
personally tried eclipse on my laptop (which I work most with), and I
had quite a system resource problem. So I switched back to vim and
console and it hasn't been too bad, since if you know how to use a
powerful editor, it can be as productive.

But in the end, it is up to anyone to find the best solutiion for
themselves.

Thomas

Yes, thats true, but since eclipse is resource monster (it is still
using java), and some people (like me) don't have a super fresh and new
computer, and have to run other services to test their work locally
(like mysql and apache servers), it gets pretty harsh with eclipse. I
personally tried eclipse on my laptop (which I work most with), and I
had quite a system resource problem. So I switched back to vim and
console and it hasn't been too bad, since if you know how to use a
powerful editor, it can be as productive.

But in the end, it is up to anyone to find the best solutiion for
themselves.

Thomas
If you compare eclipse to VS, it is not that memory hungry - but i agree
with you that a min-config is needed. Yet (I believe that) a complete
IDE can bring functions that an editor, however powerful, cannot (I
still use emacs).

I have tried Komodo, Wing, Eric3, Idle, emacs, (not vi ;-) ), SPE,
boa-constructor, .... and many more - I like most of them but am really
addicted to eclipse + pydev.

.... but even without pydev, I would not use java just because of eclipse.

hg
Dec 1 '06 #6

krishnakant Mane wrote:
just used the py dev plugin for eclipse.
it is great.
But isn't support for java better because the eclipse ide can take
advantage of explicit type declarations (e.g., for intellisense,
refactoring, etc.)?

Amir
auto indentation and intellisence.
and all other things.
so now how does it look from this end?
python + productivity and eclipse + productivity = double productivity!
only problem with the plugin is that I find it difficult to manage the
script running.
I open a command prompt and run the scripts manually.
any suggestion for this.
for example I had name = raw_input("please enter your name") and the
moment I type the first letter on the keyboard the code execution
moves over to the next statement. should it not wait for the return
key as it always does?
Krishnakant.
Dec 1 '06 #7

Amir Michail escreveu:
krishnakant Mane wrote:
just used the py dev plugin for eclipse.
it is great.

But isn't support for java better because the eclipse ide can take
advantage of explicit type declarations (e.g., for intellisense,
refactoring, etc.)?

Amir
The support for Java is light-years ahead. Sometimes I feel that
Eclipse is coding for me (quickfix, for instance). There's the fact
that Eclipse is developed in Java, so they are eating their own
dogfood.

That said, the code completion for Python is still in its early stages.
There is a lot of room for improvement, even for a dynamic language.
Stephen

Dec 1 '06 #8
Stephen Eilert wrote:
>
The support for Java is light-years ahead. Sometimes I feel that
Eclipse is coding for me (quickfix, for instance).
Eclipse may be quite a technical achievement, but I found it
irritating. Aside from the misuse of screen real-estate, I found that
typing two characters and having what seemed like half my source file
underlined in red, with multiple messages telling me that I had yet to
define or import something or other when what I was about to do was to
write the declaration, all conspired to make me want to scream, "WTF do
you think I was going to type in about five seconds time? Work it out
and autocomplete it if you're so damned clever!"

So, Eclipse certainly has its share of detractors, too. ;-)

[...]
That said, the code completion for Python is still in its early stages.
There is a lot of room for improvement, even for a dynamic language.
Agreed. I don't believe in endless refactoring, and I think that's
frequently a symptom of using an overly inflexible statically typed
language (where it's more like "Refactoring" - the big R symbolising
the seriousness and heavy lifting involved), but there are often times
when I've wondered whether something could alert me to obvious
breakage, especially after fairly big changes, acting possibly within
the editing environment. I suppose pylint and similar tools have been
working towards that goal, but I often wonder about producing something
more subtle: something which is more clever than looking at modules and
globals, and yet doesn't nag you continously about things which you'll
discover almost immediately anyway.

Paul

Dec 1 '06 #9
Paul Boddie wrote:
Eclipse may be quite a technical achievement, but I found it
irritating. Aside from the misuse of screen real-estate, I found
that typing two characters and having what seemed like half my
source file underlined in red, with multiple messages telling me
that I had yet to define or import something or other when what I
was about to do was to write the declaration, all conspired to
make me want to scream, "WTF do you think I was going to type in
about five seconds time? Work it out and autocomplete it if you're
so damned clever!"
I had exactly the same experience when trying out Eclipse :D I'll
stick with "good ol' vi".

Regards,
Björn

--
BOFH excuse #227:

Fatal error right in front of screen

Dec 1 '06 #10
hg wrote:
Thomas Ploch wrote:
Yes, thats true, but since eclipse is resource monster (it is still
using java), and some people (like me) don't have a super fresh and new
computer

If you compare eclipse to VS, it is not that memory hungry
And if you compare Saturn to Jupiter, it's not that big.
Yet (I believe that) a complete
IDE can bring functions that an editor, however powerful, cannot
Is there anything _useful_ that it'll bring that a good editor doesn't?
e.g. in vim I do get
* automatic syntax checking (if I type "if a=1:" and hit enter, it'll
immediately highlight the syntax error)
* omni-completion (because Intellisense is trademarked)
* refactoring (with BicycleRepairMan integration)
* folding (which is more important than the above 3 combined, IMO)
* online help (typing cmp( gives me the docstring for cmp in the status
line, F1 to view the whole thing)

As well as all the basics (tags/class browser/good regex support/syntax
highlighting/autoindent/source control integration/etc).

I'm not trolling here, I'm looking for interesting new features I can
steal.

Dec 1 '06 #11
sj*******@yahoo.com wrote:
...

Is there anything _useful_ that it'll bring that a good editor doesn't?
e.g. in vim I do get
* automatic syntax checking (if I type "if a=1:" and hit enter, it'll
immediately highlight the syntax error)
* omni-completion (because Intellisense is trademarked)
* refactoring (with BicycleRepairMan integration)
* folding (which is more important than the above 3 combined, IMO)
* online help (typing cmp( gives me the docstring for cmp in the status
line, F1 to view the whole thing)

As well as all the basics (tags/class browser/good regex support/syntax
highlighting/autoindent/source control integration/etc).

I'm not trolling here, I'm looking for interesting new features I can
steal.
How about we try to find some papers on the subject?

Here's one to start things off:

http://pag.csail.mit.edu/~akiezun/companion.pdf

Amir

Dec 1 '06 #12
Amir Michail wrote:
sj*******@yahoo.com wrote:
...

Is there anything _useful_ that it'll bring that a good editor doesn't?
e.g. in vim I do get
* automatic syntax checking (if I type "if a=1:" and hit enter, it'll
immediately highlight the syntax error)
* omni-completion (because Intellisense is trademarked)
* refactoring (with BicycleRepairMan integration)
* folding (which is more important than the above 3 combined, IMO)
* online help (typing cmp( gives me the docstring for cmp in the status
line, F1 to view the whole thing)

As well as all the basics (tags/class browser/good regex support/syntax
highlighting/autoindent/source control integration/etc).

I'm not trolling here, I'm looking for interesting new features I can
steal.

How about we try to find some papers on the subject?
Thanks. Seems a bit high-level to be very useful, and the plethora of
examples around "self encapsulate field" seem inapplicable, but it
makes me wonder if there's anything to be gained by integrating the vim
refactoring support with the Vim 7 undo branches.

Dec 2 '06 #13
may be emacs can provide code completion (intellicense)
I have not used it so far so can't say.
but the main reason I use eclipse is for the above feature.
and yes indentation happens in eclipse python-mode so that is not a
major feature eclipse offers any way.
syntax highlighting is a very common feature again.
so if there is an editor which will give me auto code completion, I
will happily give up using eclipse.
by the way, there is one problem I am finding with eclipse and py dev.
the following snippad of code is a mesterious problem.
name = raw_input("please identify your self ")
if name == "tom":
print "hello and welcome"
else:
print "I don't know you"

just run this script and you will find that you always get "I don't
know you", even if you entered tom.
I then figured out that length of name actually comes to 4 even when I
entered tom. that's why it always goes in the else claws.
but when I ran the same script from a command promt the length of name
returned 3 when tom was entered and the code worked fine.
I can't understand why is this happening? why is eclipse putting an
extra character in the name variable?
Krishnakant.
Dec 2 '06 #14
Amir Michail wrote:
Hi,

It seems to me that measuring productivity in a programming language
must take into account available tools and libraries.

Eclipse for example provides such an amazing IDE for java that it is no
longer obvious to me that one would be much more productive in python
for medium sized projects.

Sure, all that Java static typing can be painful, but Eclipse takes
some of that pain away. Moreover, static typing can result in better
on-the-fly error detection and refactoring support.

Any thoughts on this?

Amir
FYI: http://showmedo.com/videos/series?name=PyDevEclipseList

hg

Dec 2 '06 #15
Hi,

Here's a blog post that is relevant to this discussion:

http://sixthandredriver.typepad.com/...ted_refac.html

Amir

Dec 2 '06 #16
Amir Michail a écrit :
Hi,

It seems to me that measuring productivity in a programming language
must take into account available tools and libraries.

Eclipse for example provides such an amazing IDE for java that it is no
longer obvious to me that one would be much more productive in python
for medium sized projects.

Sure, all that Java static typing can be painful, but Eclipse takes
some of that pain away. Moreover, static typing can result in better
on-the-fly error detection and refactoring support.

Any thoughts on this?
Yes : Python's productivity does not only comes from dynamic typing.

Dec 12 '06 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: G.A. | last post by:
I've installed Eclipse 3.0 and the latest pyeclipse. I can get the editor run - at least I think so, because it seems to do reasonable syntax highlighting. However, I can't get the Python console...
467
by: mike420 | last post by:
THE GOOD: 1. pickle 2. simplicity and uniformity 3. big library (bigger would be even better) THE BAD:
81
by: julio | last post by:
Sorry but there is no another way, c# .net and mono are going to rip python, not because python is a bad lenguage, but because is to darn old and it refuses to innovate things, to fix wrong things,...
20
by: Ilias Lazaridis | last post by:
" A cooperation between Sun Microsystems and IBM&Co. in conjunction with liberal & high evolutive communities would result in an nearly unbeatable programming platform. My evaluation has shown:...
29
by: seberino | last post by:
I'm trying to move beyond Emacs/Vim/Kate and was wondering if Eclipse is better and if it is the *best* IDE for Python. Should I leave Emacs and do Python coding in Eclipse? Chris
12
by: john_sips_tea | last post by:
I've got a fairly substantial webapp written in Java (plus Tomcat, Hibernate, Struts, JSP, MySQL) that is a bit of a bear to work with. I didn't write it. Much of it is only very sparsely...
16
by: Sullivan WxPyQtKinter | last post by:
IDLE is no longer satisfactory for me. Other IDEs make me very confused. Really do not know which one to use. I use WinXP sp2 for current development. So far as I know, Eclipse + PyDev + PyDev...
18
by: stylecomputers | last post by:
Hi All, What do you find the best IDE for creating web applications in Python is? Preferably FOS IDE. Cheers
4
by: PatrickMinnesota | last post by:
Yep, I'm new to the language, it's been a couple of months. I opted for gvim and console window for developing on a Windows XP box. I'm not a huge fan of IDEs except for when I need some...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.