473,398 Members | 2,212 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,398 software developers and data experts.

Well, Python is hard to learn...

wen
due to the work reason, i have to learn python since last month. i have
spent 1 week on learning python tutorial and felt good. but i still don't
understand most part of sourcecode of PYMOL(http://pymol.sourceforge.net/)
as before.

it sucks.

anybody do the same thing as i am doing? i wanna seek a buddy to disscuss it
together.
Sep 1 '05 #1
8 3649
I don't know about you but I would not learn ANY decent programming
language for a week and expect to know the idioms enough to understand
the source of a large software written in it.

Sep 1 '05 #2
Well, I reckon it all depends on how much experience you have with
programming languages in general. If you're completely new to
programming it's probably going to take a while to get to grips with it
all, regardless of which language you're picking up, although I'd wager
that Python is still one of the most intuitive and easiest to learn
languages around. Personally I learnt to code in C++ Python, and Perl
with a little bit of Java, Tcl and C# thrown in there as well and I
like Python and C++ the most.
Just be patient, mate, you'll get the hang of it before long.

Sep 1 '05 #3
wen wrote:
due to the work reason, i have to learn python since last month. i have
spent 1 week on learning python tutorial and felt good. but i still don't
understand most part of sourcecode of PYMOL(http://pymol.sourceforge.net/)
as before.

it sucks.


No, please, don't say that. It is _not_ Python's fault.

PyMol is a _large_ and _complex_ piece of software. I would be happy to
understand a _very small_ part of its source code after having studied
Python for just a week or so.

Python is one of the easiest programming language around but it cannot make
simple a complex task like molecular design or molecular dynamic (I'm a
chemist and I can understand your disappointment).

You will have to wait _months_ before being able to understand such a
complex piece of software well enough to be able to play with its source
code. But... do you really need to play with the source code of this
program? Do you really have to tweak its code to fit your needs? Could not
be enough to write some plug-in, some wrapper or some other kind of
"external" program? This would be much easier.

HTH

-----------------------------------
Alessandro Bottoni
Sep 1 '05 #4
wen wrote:
due to the work reason, i have to learn python since last month. i have
spent 1 week on learning python tutorial and felt good. but i still don't
understand most part of sourcecode of PYMOL(http://pymol.sourceforge.net/)
as before.

it sucks.


<joking>
I have spent 1 week on learning reading and felt good. but I still don't
understand most part of Emmanuel Kant's writings.
</joking>

Wen, please don't take it bad !-)

What I mean is that something inherently complex will be difficult to
understand whatever the language. And I guess that something like PyMOL
would be *much more* difficult to understand if it was implemented in C++.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Sep 1 '05 #5
bruno wrote:
<joking>
I have spent 1 week on learning reading and felt good. but I still don't
understand most part of Emmanuel Kant's writings.
</joking>


Monty Python really missed out there: cut to a sketch featuring three
year olds discussing Kant. ;-)

Paul

Sep 1 '05 #6
wen wrote:
due to the work reason, i have to learn python since last month. i have
spent 1 week on learning python tutorial and felt good. but i still don't
understand most part of sourcecode of PYMOL(http://pymol.sourceforge.net/)
as before.


Well, last time I checked, a good chunk of PyMol was written in C.
Knowing Python may help you to learn C, but I doubt that one week is
going to be sufficient.

But I agree that Python is deceptive. It's so easy to learn and use, you
can easily convince yourself you're a better programmer than you
actually are.
Sep 1 '05 #7
In article <11*********************@z14g2000cwz.googlegroups. com>,
Paul Boddie <pa**@boddie.org.uk> wrote:
bruno wrote:
<joking>
I have spent 1 week on learning reading and felt good. but I still don't
understand most part of Emmanuel Kant's writings.
</joking>


Monty Python really missed out there: cut to a sketch featuring three
year olds discussing Kant. ;-)

Paul


"It's not fair! I told Mommy about the immanent
pragmatics of taking my sister's blankie, and she
*still* said I had to take a nap!"
Sep 1 '05 #8
wen wrote:
due to the work reason, i have to learn python since last month. i have
spent 1 week on learning python tutorial and felt good. but i still don't
understand most part of sourcecode of PYMOL(http://pymol.sourceforge.net/)
as before.


Maybe you (or someone else) is making a mistake if you are trying
to understand PyMol in this stage of learning. I haven't used
PyMol, but I really doubt that you need to understand its source
code unless your aiming to maintain that code.

If you approached it as a learning exercise, you aimed way too high.

If you approached it because you need to use PyMol, trying to understand
its source code is probably the wrong approach.

You don't need to learn all the details of how a car works to drive it.
You don't even have to understand how the engine is designed to change
wheels or fix rust holes.

I'm aware that you use Python to perform advanced operations in PyMol,
but you don't need to understand PyMol's internals for that.
Sep 2 '05 #9

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

Similar topics

33
by: Joe Cheng | last post by:
I'm curious about something... many Artima.com members who have a Java background and learned Python have come to the conclusion that Java and Python are highly complimentary languages. They would...
226
by: Stephen C. Waterbury | last post by:
This seems like it ought to work, according to the description of reduce(), but it doesn't. Is this a bug, or am I missing something? Python 2.3.2 (#1, Oct 20 2003, 01:04:35) on linux2 Type...
24
by: Charif Lakchiri | last post by:
Okay, here's what I know so far about Python: It's an object-oriented scripting language, supported on many platforms. Now here are my questions: It is easy to learn? Does it support GUI...
47
by: Michael Scarlett | last post by:
There is an amazing article by paul graham about python, and an even better discussion about it on slashdot. The reason I point this out, is the more I read both articles, the more I realised how...
16
by: BOOGIEMAN | last post by:
Beginners question, but really what can you do with it ? How hard is Python to learn compared with other languages (let's say C#). Can you make fullscreen game with it (for example) ? I've looked...
2
by: Hal Vaughan | last post by:
I'm self taught and most of what I've been working on for the past several years has been entirely in Perl and Java. I've noticed that I can code about 5 times faster in Perl than Java, in part...
112
by: mystilleef | last post by:
Hello, What is the Pythonic way of implementing getters and setters. I've heard people say the use of accessors is not Pythonic. But why? And what is the alternative? I refrain from using them...
113
by: John Nagle | last post by:
The major complaint I have about Python is that the packages which connect it to other software components all seem to have serious problems. As long as you don't need to talk to anything outside...
33
by: NicolasG | last post by:
Hi, I want to be a professional python programmer, unfortunately I'm working on technical support and don't have the time/patience to start making projects my self. I tried to apply to some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.