By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,548 Members | 1,497 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,548 IT Pros & Developers. It's quick & easy.

I Need Motivation Part 2

P: n/a
i m currently in a network (LAN). i started python because i heard
that it has great ability for networking programs and/or scripts, but
i m losing my motivation with python because there are sooo many
modules, that i cant just learn them all, this deters from c or c++ in
which there are only a limited number of header files. what loses my
interest is that if i cant learn these modules, and there are lots and
lots of python modules, how can i ever be a good enough
programmer/scripter.
--
* Posted with NewsLeecher v3.0 Beta 7
* http://www.newsleecher.com/?usenet
Nov 4 '05 #1
Share this Question
Share on Google+
10 Replies


P: n/a

bl**@blah.blah wrote:
i m currently in a network (LAN). i started python because i heard
that it has great ability for networking programs and/or scripts, but
i m losing my motivation with python because there are sooo many
modules, that i cant just learn them all, this deters from c or c++ in
which there are only a limited number of header files. what loses my
interest is that if i cant learn these modules, and there are lots and
lots of python modules, how can i ever be a good enough
programmer/scripter.

Well, you better stick with python then. Forget about all those
modules, you would know what to use when the needs come up or ask by
then.

Python definitely has the momentum behind it for solving this kind of
real world problems and I would say the best overall
environment/language right now.

Nov 4 '05 #2

P: n/a
blahman (bl**@blah.blah) enlightened us with:
i m losing my motivation with python because there are sooo many
modules, that i cant just learn them all, this deters from c or c++
in which there are only a limited number of header files.


There are over 2800 header files on my system in /usr/include. What do
you mean "a limited number of header files"?

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
Nov 4 '05 #3

P: n/a
bl**@blah.blah wrote:
i m currently in a network (LAN). i started python because i heard
that it has great ability for networking programs and/or scripts, but
i m losing my motivation with python because there are sooo many
modules, that i cant just learn them all,
Why would you learn them all ? Learn the one you need when you need them
- jus don't forget to have a quick look at the existings modules before
reinventing the square wheel (I wrote a Q&D CSV parser before realinzing
there was a pretty good one in the stdlib... But what, my Q&D solution
took me laess than one hour to write and did what it had to do, so...)
this deters from c or c++ in
which there are only a limited number of header files.
In the stdlib, yes. Now there are thousands of librairies/frameworks
each reimplenting all the basic datastructure and algorithm (strings,
lists, hashtables, trees and the like), so you almost have to learn a
new language each time you use a new library.
what loses my
interest is that if i cant learn these modules,
Once again : you don't have to.
and there are lots and
lots of python modules, how can i ever be a good enough
programmer/scripter.


Like everybody else: write programs. That's the only way to become a
programmer.

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Nov 4 '05 #4

P: n/a
Sybren Stuvel wrote:
There are over 2800 header files on my system in /usr/include. What do
you mean "a limited number of header files"?


I assume he's saying that the number is < ∞. (Of course, the same is
true of Python modules unless you use a special __import__ hook or
something...)
Nov 4 '05 #5

P: n/a
bl**@blah.blah wrote:
i m losing my motivation with python because there are sooo many
modules


If you think Python has too many modules, then you better stay away
from Perl and CPAN. =)

Nov 4 '05 #6

P: n/a
bl**@blah.blah wrote:
i m losing my motivation with python because there are sooo many
modules, that i cant just learn them all,


As other's have said, don't bother.

If you ever need to use a module that you don't know, just go to
http://docs.python.org/lib/lib.html (easily accessable from the
"Documentation" link on the Python Home page), or a local copy, and
scrounge around.

I might suggest skimming it once, to see what is possible, but it isn't
nessasary to "learn" it. -- Knowing that there is a Python module in the
standard library to do CSV/Date manipulation/MD5/etc is sufficient. You
don't even need to know what the module is called - a minute skimming
the TOC will point you in the right direction.
Nov 4 '05 #7

P: n/a
bl**@blah.blah wrote:
i m currently in a network (LAN). i started python because i heard
that it has great ability for networking programs and/or scripts, but
i m losing my motivation with python because there are sooo many
modules, that i cant just learn them all, this deters from c or c++ in
which there are only a limited number of header files. what loses my
interest is that if i cant learn these modules, and there are lots and
lots of python modules, how can i ever be a good enough
programmer/scripter.


The standard libraries in C++ more or less ends where the standard
libraries in Python begin. There are needed to handle data structures
and algorithms in C++ that you don't need a single import to do in
Python. For C++ network programming, you'll probably have to search
the internet or buy something fancy, to get anywhere close to the
stuff you get in Python's standard library.

It seems you have a little writer's block. Don't try to learn and
understand everything before you start. If Python appears more complex
than C++, you must be using a really weird approach.

Just start with something small but useful. Try to solve a little
problem, and see that you can get some benefit from the time you
invest in Python. Make an effort, but don't be afraid to ask about
practical things if you get stuck.

Then you can expand your scope and horizons as time goes on. The
only think I advice everybody to read in the library reference is
chapter 2, the builtin stuff. Otherwise, start with libraries you
really need.

If you want to read more Steve Holden's book is good when it comes to
network programming, but there is another, newer book as well that I
didn't read. Actually, Alex Martelli's Nutshell book is probably enough
to get you started.
Nov 4 '05 #8

P: n/a
On Fri, 04 Nov 2005 02:57:03 -0600, blahman (bl**@blah.blah) declaimed
the following in comp.lang.python:
modules, that i cant just learn them all, this deters from c or c++ in
which there are only a limited number of header files. what loses my
Really?

I show 79 .h files and 68 "no extension" header files in the VC
"includes" directory. Another 9 under "sys", 9 more under "msclr", 20
under "cliext".

That's 168 cryptic includes -- cryptic as they only show calling
sequences and constants, with no explanation of what they do, or how to
use them.

There is another 731 .h files under "PlatformSDK"... And I've
stopped looking at that point -- that's already 900 header files!
interest is that if i cant learn these modules, and there are lots and
lots of python modules, how can i ever be a good enough
programmer/scripter.
I show 185 .py files in the top level Python library. That's a close
match for the base VC include directory -- and I be willing to bet that
site-packages and other add-ins don't add up to another 700 .py files

And these are source code files that can be studied to learn how the
stuff works.
-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.netcom.com/> <

Nov 4 '05 #9

P: n/a
On Fri, 2005-11-04 at 17:06 +0100, Magnus Lycka wrote:
If Python appears more complex
than C++, you must be using a really weird approach.
Or a really weird editor ;-)

-m


Nov 4 '05 #10

P: n/a
Dennis Lee Bieber enlightened us with:
I show 185 .py files in the top level Python library. That's a close
match for the base VC include directory -- and I be willing to bet
that site-packages and other add-ins don't add up to another 700 .py
files


Sorry, bet lost. I have 1891 .py files in my site-packages.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
Nov 5 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.