473,385 Members | 1,813 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,385 software developers and data experts.

I Need Motivation Part 2

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
10 1411

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
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Graeme Matthew | last post by:
Hi all, I just wanted to tell someone :-) I was previously a perl programmer and have been a visual basic frustrated developer for a number of years, only for the reason that corporates are so...
6
by: Pieter | last post by:
I've read a lot of posts on "why relax ng is so very good" and on "why w3c xml schema should be the only schema language". I'm, however, still not clear on why I should prefer one over the other. ...
41
by: Psykarrd | last post by:
I am trying to declare a string variable as an array of char's. the code looks like this. char name; then when i try to use the variable it dosn't work, however i am not sure you can use it...
13
by: christopher diggins | last post by:
What I am trying to answer is, what the most prominent motivation for implenting and using smart pointers in C++ is. Is it primarily to reduce bugs resulting from memory access errors or primarily...
1
by: Nico Baumgarten | last post by:
Dear Madam/Sir, You are invited to participate in an international research study. This research project is headed and led by Cambridge student Nico Baumgarten. What is it all about? It is a...
9
by: blah | last post by:
I m not a python Expert or anythin i need help, i m losin my motivation to continue with python can anyone inspire me again.??? -- * Posted with NewsLeecher v3.0 Beta 7 *...
162
by: techievasant | last post by:
hello everyone, Iam vasant from India.. I have a test+interview on C /C++ in the coming month so plz help me by giving some resources of FAQS, interview questions, tracky questions, multiple...
92
by: Ray | last post by:
I just moved to another company that's mainly a Java/.NET shop. I was happy to find out that there's a movement from the grassroot to try to convince the boss to use a dynamic language for our...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.