473,779 Members | 2,038 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

language learning vs. process

Hi,
I'm getting started with python and have almost zero programming experience.
I'm finding that there are tons of tutorials on the internet -- such as the
standard tutorial at python.org -- that tell you all about the language.
That is, what are the methods, functions, modules, syntax, punctuation, etc.
No problem there!

Meanwhile, I'm finding that there is very little (that I can find) about how
to do basic logistical things related to using python and implementing
programs. For example: how to run a program. That's pretty basic, but I
don't see anything in the tutorials about it. With IDLE, it's easy enough:
just hit F5. But working on my server via Putty, trying to get a concrete,
meaningful result, it's hit and miss. For example, I find that sometimes a
program will run if I import it. I typed "import smtpmail" and it ran -- it
asked me to input From, To, Subj, Message. Other times, I type in "import
smtpmail" and it imports but doesn't run. My server is Unix. Typing
"python smtpmail.py" doesn't do it. That seems to be what a few websites
say to do to run a program. Doesn't work for me. It returns 'File
"<stdin>", line 1' and a little carrot pointing up at the 'l' in smtpmail.
I know it's on the path since I can import it. And the permissions are 755.

Another example of a very basic problem I can't find a solution to in any
tutorial: how to log in to an SMTP server (authentication ). My web
searches have turned up only a few snippets of listserv conversations
between people who already know enough about the subject that I'm not able
to divine anything from the code they pass back and forth. A search on
Python.org doesn't turn up anything that would help newcomers.

So basically, what I'm saying is, there is a wealth of information about how
to concatenate strings and stuff like that, but I'm finding it very
difficult to get started with basic processes and logistical things. For
example, it took me longer than I care to admit to figure out how to append
the sys.path (that's actually in the tutorial but it's somewhat
inconspicuous.)

My ideal beginner resource would be a complete, step-by-step explanation of
how to implement a simple program -- starting with typing "python" at the
command prompt and ending with some kind of concrete result. Then, with a
complete understanding of the process of writing and implementing (emphasis
on the latter) a program, my efforts to learn the content and syntax of the
language itself will be a lot more meaningful. That is, I can learn things
like what a string is and have some confidence that I'll actually be doing
something (other than playing with a calculator) that can provide something
of value to end users in far flung places.

Might seem weird to start with learning process and implementation, since
it's all dependent to a large extent on using the language properly, but I
do think it's possible to learn implementation first (with a bare minimum of
language learning) and then go back and learn more about the language. Just
something to think about for the excellent people who teach ingrates like me
how to program.

If anyone has any pointers on where to get more how-to information more
oriented towards process/logistics please let me know.
Thanks!
Ryan


Jul 18 '05 #1
7 1773
On Mon, 1 Dec 2003 21:09:31 -0500, Ryan Walker wrote:
I'm finding that there is very little (that I can find) about how to
do basic logistical things related to using python and implementing
programs. For example: how to run a program. That's pretty basic,
but I don't see anything in the tutorials about it.


That's probably because it's very dependent on the OS and environment
you're using; running programs, forming commands, customising an
environment are better documented in the docs for the OS.

Putting that kind of stuff in detail into Python's docs (or a
PYthon-specific tutorial) would be a waste of space: you'd be
uninterested in all the information that was for environments other than
your own.

--
\ "It is seldom that liberty of any kind is lost all at once." |
`\ -- David Hume |
_o__) |
Ben Finney <http://bignose.squidly .org/>
Jul 18 '05 #2
Ryan Walker wrote:
Hi,
I'm getting started with python and have almost zero programming experience.
I'm finding that there are tons of tutorials on the internet -- such as the
standard tutorial at python.org -- that tell you all about the language.
That is, what are the methods, functions, modules, syntax, punctuation, etc.
No problem there!

Meanwhile, I'm finding that there is very little (that I can find) about how
to do basic logistical things related to using python and implementing
programs. For example: how to run a program. That's pretty basic, but I
don't see anything in the tutorials about it. With IDLE, it's easy enough:
just hit F5. But working on my server via Putty, trying to get a concrete,
meaningful result, it's hit and miss. For example, I find that sometimes a
program will run if I import it. I typed "import smtpmail" and it ran -- it
asked me to input From, To, Subj, Message. Other times, I type in "import
smtpmail" and it imports but doesn't run. My server is Unix. Typing
"python smtpmail.py" doesn't do it. That seems to be what a few websites
say to do to run a program. Doesn't work for me. It returns 'File
"<stdin>", line 1' and a little carrot pointing up at the 'l' in smtpmail.
I know it's on the path since I can import it. And the permissions are 755.

Another example of a very basic problem I can't find a solution to in any
tutorial: how to log in to an SMTP server (authentication ). My web
searches have turned up only a few snippets of listserv conversations
between people who already know enough about the subject that I'm not able
to divine anything from the code they pass back and forth. A search on
Python.org doesn't turn up anything that would help newcomers.

So basically, what I'm saying is, there is a wealth of information about how
to concatenate strings and stuff like that, but I'm finding it very
difficult to get started with basic processes and logistical things. For
example, it took me longer than I care to admit to figure out how to append
the sys.path (that's actually in the tutorial but it's somewhat
inconspicuous.)

My ideal beginner resource would be a complete, step-by-step explanation of
how to implement a simple program -- starting with typing "python" at the
command prompt and ending with some kind of concrete result. Then, with a
complete understanding of the process of writing and implementing (emphasis
on the latter) a program, my efforts to learn the content and syntax of the
language itself will be a lot more meaningful. That is, I can learn things
like what a string is and have some confidence that I'll actually be doing
something (other than playing with a calculator) that can provide something
of value to end users in far flung places.

Might seem weird to start with learning process and implementation, since
it's all dependent to a large extent on using the language properly, but I
do think it's possible to learn implementation first (with a bare minimum of
language learning) and then go back and learn more about the language. Just
something to think about for the excellent people who teach ingrates like me
how to program.

If anyone has any pointers on where to get more how-to information more
oriented towards process/logistics please let me know.
Thanks!
Ryan


i think there is another option you aren't thinking about. you mentioned learning with standard tutorials about basic
things like concatenating strings. you also mentioned that you would like to learn by writing one large program, step
by step. i think there is a third option you should consider, and IMO it's the best. it's studying small fully working
recipes that concentrate on one issue at a time and gives you a good foundation to build upon. fortunately, there is a
book that does just this and it's called "Python Cookbook". i think if you try to go for the one big program, you will
miss out on a lot of important stuff. I think there are also free online tutorials that do much the same thing such as
"Dive into Python". anyways, just my opinion.

bryan

Jul 18 '05 #3
Ryan Walker wrote:
Hi,
I'm getting started with python and have almost zero programming experience.
I'm finding that there are tons of tutorials on the internet -- such as the
standard tutorial at python.org -- that tell you all about the language.
That is, what are the methods, functions, modules, syntax, punctuation, etc.
No problem there!

Meanwhile, I'm finding that there is very little (that I can find) about how
to do basic logistical things related to using python and implementing
programs. For example: how to run a program. That's pretty basic, but I
don't see anything in the tutorials about it. With IDLE, it's easy enough:
just hit F5. But working on my server via Putty, trying to get a concrete,
meaningful result, it's hit and miss. For example, I find that sometimes a
program will run if I import it. I typed "import smtpmail" and it ran -- it
asked me to input From, To, Subj, Message. Other times, I type in "import
smtpmail" and it imports but doesn't run. My server is Unix. Typing
"python smtpmail.py" doesn't do it. That seems to be what a few websites
say to do to run a program. Doesn't work for me. It returns 'File
"<stdin>", line 1' and a little carrot pointing up at the 'l' in smtpmail.
I know it's on the path since I can import it. And the permissions are 755.

Another example of a very basic problem I can't find a solution to in any
tutorial: how to log in to an SMTP server (authentication ). My web
searches have turned up only a few snippets of listserv conversations
between people who already know enough about the subject that I'm not able
to divine anything from the code they pass back and forth. A search on
Python.org doesn't turn up anything that would help newcomers.

So basically, what I'm saying is, there is a wealth of information about how
to concatenate strings and stuff like that, but I'm finding it very
difficult to get started with basic processes and logistical things. For
example, it took me longer than I care to admit to figure out how to append
the sys.path (that's actually in the tutorial but it's somewhat
inconspicuous.)

My ideal beginner resource would be a complete, step-by-step explanation of
how to implement a simple program -- starting with typing "python" at the
command prompt and ending with some kind of concrete result. Then, with a
complete understanding of the process of writing and implementing (emphasis
on the latter) a program, my efforts to learn the content and syntax of the
language itself will be a lot more meaningful. That is, I can learn things
like what a string is and have some confidence that I'll actually be doing
something (other than playing with a calculator) that can provide something
of value to end users in far flung places.

Might seem weird to start with learning process and implementation, since
it's all dependent to a large extent on using the language properly, but I
do think it's possible to learn implementation first (with a bare minimum of
language learning) and then go back and learn more about the language. Just
something to think about for the excellent people who teach ingrates like me
how to program.

If anyone has any pointers on where to get more how-to information more
oriented towards process/logistics please let me know.
Thanks!
Ryan


i think there is another option you aren't thinking about. you mentioned learning with standard tutorials about basic
things like concatenating strings. you also mentioned that you would like to learn by writing one large program, step
by step. i think there is a third option you should consider, and IMO it's the best. it's studying small fully working
recipes that concentrate on one issue at a time and gives you a good foundation to build upon. fortunately, there is a
book that does just this and it's called "Python Cookbook". i think if you try to go for the one big program, you will
miss out on a lot of important stuff. I think there are also free online tutorials that do much the same thing such as
"Dive into Python". anyways, just my opinion.

bryan
Jul 18 '05 #4
On Mon, 1 Dec 2003 21:09:31 -0500, "Ryan Walker"
<ry**********@v erizon.net> wrote:
[...]
If anyone has any pointers on where to get more how-to information more
oriented towards process/logistics please let me know.
Chapter 1 of "Learning Python" by Mark Lutz is excellent. Starting on
page 10 with "How to run Python Programs", the rest of the chaper is
all about running from the command line, setting environment
variables, startup scripts, etc. The only thing missing in the way of
"operationa l details" is IDLE. You should definitely work through the
tutorial on that tool.

-- Dave
Hi,
I'm getting started with python and have almost zero programming experience.
I'm finding that there are tons of tutorials on the internet -- such as the
standard tutorial at python.org -- that tell you all about the language.
That is, what are the methods, functions, modules, syntax, punctuation, etc.
No problem there!

Meanwhile, I'm finding that there is very little (that I can find) about how
to do basic logistical things related to using python and implementing
programs. For example: how to run a program. That's pretty basic, but I
don't see anything in the tutorials about it. With IDLE, it's easy enough:
just hit F5. But working on my server via Putty, trying to get a concrete,
meaningful result, it's hit and miss. For example, I find that sometimes a
program will run if I import it. I typed "import smtpmail" and it ran -- it
asked me to input From, To, Subj, Message. Other times, I type in "import
smtpmail" and it imports but doesn't run. My server is Unix. Typing
"python smtpmail.py" doesn't do it. That seems to be what a few websites
say to do to run a program. Doesn't work for me. It returns 'File
"<stdin>", line 1' and a little carrot pointing up at the 'l' in smtpmail.
I know it's on the path since I can import it. And the permissions are 755.

Another example of a very basic problem I can't find a solution to in any
tutorial: how to log in to an SMTP server (authentication ). My web
searches have turned up only a few snippets of listserv conversations
between people who already know enough about the subject that I'm not able
to divine anything from the code they pass back and forth. A search on
Python.org doesn't turn up anything that would help newcomers.

So basically, what I'm saying is, there is a wealth of information about how
to concatenate strings and stuff like that, but I'm finding it very
difficult to get started with basic processes and logistical things. For
example, it took me longer than I care to admit to figure out how to append
the sys.path (that's actually in the tutorial but it's somewhat
inconspicuous. )

My ideal beginner resource would be a complete, step-by-step explanation of
how to implement a simple program -- starting with typing "python" at the
command prompt and ending with some kind of concrete result. Then, with a
complete understanding of the process of writing and implementing (emphasis
on the latter) a program, my efforts to learn the content and syntax of the
language itself will be a lot more meaningful. That is, I can learn things
like what a string is and have some confidence that I'll actually be doing
something (other than playing with a calculator) that can provide something
of value to end users in far flung places.

Might seem weird to start with learning process and implementation, since
it's all dependent to a large extent on using the language properly, but I
do think it's possible to learn implementation first (with a bare minimum of
language learning) and then go back and learn more about the language. Just
something to think about for the excellent people who teach ingrates like me
how to program.

If anyone has any pointers on where to get more how-to information more
oriented towards process/logistics please let me know.
Thanks!
Ryan


Jul 18 '05 #5
On Mon, 01 Dec 2003 19:33:47 -0800, Bryan <be*****@yahoo. com> wrote:

[...]
by step. i think there is a third option you should consider, and IMO it's the best. it's studying small fully working
recipes that concentrate on one issue at a time and gives you a good foundation to build upon. fortunately, there is a
book that does just this and it's called "Python Cookbook". i think if you try to go for the one big program, you will
miss out on a lot of important stuff. I think there are also free online tutorials that do much the same thing such as
"Dive into Python". anyways, just my opinion.


Python Cookbook may be too advanced for a beginner. I would work
through Learning Python first. The main problem with Learning Python
is that it is out of date, and some of the language features, like
scoping rules, have been significantly changed. There is a new
edition due real soon. Also, you won't get too far off the path if
you follow the tutorials from python.org at the same time you work
through the book.

Dive into Python is *Excelllent*, but it also focuses on the language,
rather than the operational details, which the OP requested. Also,
the author makes it clear, this is a fast ride through some cool
features, not an introduction.

-- Dave

Jul 18 '05 #6
"Ryan Walker" <ry**********@v erizon.net> writes:
Hi,
I'm getting started with python and have almost zero programming experience.
I'm finding that there are tons of tutorials on the internet -- such as the
standard tutorial at python.org -- that tell you all about the language.
That is, what are the methods, functions, modules, syntax, punctuation, etc.
No problem there! Meanwhile, I'm finding that there is very little (that I can find) about how
to do basic logistical things related to using python and implementing
programs. For example: how to run a program. That's pretty basic, but I
don't see anything in the tutorials about it. With IDLE, it's easy enough:
just hit F5. But working on my server via Putty, trying to get a concrete,
meaningful result, it's hit and miss. For example, I find that sometimes a
program will run if I import it. I typed "import smtpmail" and it ran -- it
asked me to input From, To, Subj, Message. Other times, I type in "import
smtpmail" and it imports but doesn't run. My server is Unix. Typing
"python smtpmail.py" doesn't do it. That seems to be what a few websites
say to do to run a program. Doesn't work for me. It returns 'File
"<stdin>", line 1' and a little carrot pointing up at the 'l' in smtpmail.
I know it's on the path since I can import it. And the permissions are 755.
It sounds like what you are looking for really is a tutorial on the OS itself
so that you understand more about where files are etc. I've been using Unix
for a long time so I have no idea what introductory material is good (just
avoid Dummies and learn X in 24 hrs type books should cut it down).

What's happening in the instance you give is that when people say type 'python
smptmail.py', they mean to do it at the Unix command shell (sh or bash or
whatever) NOT inside the python interpreter.
Another example of a very basic problem I can't find a solution to in any
tutorial: how to log in to an SMTP server (authentication ). My web
searches have turned up only a few snippets of listserv conversations
between people who already know enough about the subject that I'm not able
to divine anything from the code they pass back and forth. A search on
Python.org doesn't turn up anything that would help newcomers. So basically, what I'm saying is, there is a wealth of information about how
to concatenate strings and stuff like that, but I'm finding it very
difficult to get started with basic processes and logistical things. For
example, it took me longer than I care to admit to figure out how to append
the sys.path (that's actually in the tutorial but it's somewhat
inconspicuous. ) My ideal beginner resource would be a complete, step-by-step explanation of
how to implement a simple program -- starting with typing "python" at the
command prompt and ending with some kind of concrete result. Then, with a
complete understanding of the process of writing and implementing (emphasis
on the latter) a program, my efforts to learn the content and syntax of the
language itself will be a lot more meaningful. That is, I can learn things
like what a string is and have some confidence that I'll actually be doing
something (other than playing with a calculator) that can provide something
of value to end users in far flung places. Might seem weird to start with learning process and implementation, since
it's all dependent to a large extent on using the language properly, but I
do think it's possible to learn implementation first (with a bare minimum of
language learning) and then go back and learn more about the language. Just
something to think about for the excellent people who teach ingrates like me
how to program. If anyone has any pointers on where to get more how-to information more
oriented towards process/logistics please let me know.


It occurs to me that some of the Linux and even PC magazines seem to be
running tutorials on how to use Python. They probably cover some such
issues.

Eddie


Jul 18 '05 #7
Van


Ryan Walker wrote:
Hi,
I'm getting started with python and have almost zero programming experience.
I'm finding that there are tons of tutorials on the internet -- such as the
standard tutorial at python.org -- that tell you all about the language.
That is, what are the methods, functions, modules, syntax, punctuation, etc.
No problem there!

I like 'How to Think Like a Computer Scientist' it is in the beginners
guide at python.org

Jul 18 '05 #8

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

Similar topics

9
1602
by: Limey Drink | last post by:
Hi I have used recently for the odd shell scrit hear and there but nothing really serious. Software I have previously written has been in VB(urgh) and C++. I have been thinking of changing my primary development landguage for some time, this is partly because my software ideally needs to be cross platform and partly because I feel there must be better cleaner/programmer friendly languages out there so i have decided to bite the bullit...
19
1723
by: Roberto Dias | last post by:
Why is C++ a powerful language? Does it fit for engineering purpose? I mean, for doing matrices manipulation, numerical computing, solving equations, and, eventually, for file streaming. Should I migrate direct for C++, by-passing the C? Thanks,
8
4051
by: Hermawih | last post by:
Hello , I want your opinion about this . In order to say it clearly , I think I have to describe it in long sentences . I could consider myself as Intermediate/Advance Access Developer ; Intermediate/Advanced Database designer . Because of the requirements , I must create Web Application . Access Pages is not suitable for that so I think about learning VB Net / ASP Net . I am
9
1652
by: John Ilves | last post by:
I've read an online C tutorial and a book but I don't really know enough to work on any real projects. What comes in between in the process of learning C? Can anyone direct me to some good websites about this? Thanks, John
11
3326
by: Bryan | last post by:
Hi, I work for a company that is heading towards an FDA approved development process. We have always used C++ in a windows environment, and we have more than 6 years of code, applications and libraries developed. Our IT director has made the decision that to speed up development times we need to re-architect all of our existing code, and has hired a 3rd party (offshore) company to do this for us. They have recommended that we change...
10
10793
by: Immortalist | last post by:
Various aquisition devices that guide learning along particular pathways towards human biases. And as E.O. Wilson might say mental development appears to be genetically constrained. (1) Language Aquisition Device (2) Color Aqusition Device (3) Sound Aquistion Device (4) Smell Aquisition Device (5) Touch Aquisition Device (6) Art Aquisition Device
1
1579
by: CoreyWhite | last post by:
C++ is different from C, because C was built to execute algorithms and solve mathematical problems quickly. C++ is designed to work with special data types that hold strings of abstract information. It can take abstract data types and hold them in containers, that allow you to work with sets of strings in many useful ways. It isn't that complex to understand how to use these new tools, but writing neat, fast executing code is something...
1
2633
by: Steven Bird | last post by:
NLTK — the Natural Language Toolkit — is a suite of open source Python modules, data sets and tutorials supporting research and development in natural language processing. It comes with 50k lines of code, 300Mb of datasets, and a 360 page book which teaches both Python and Natural Language Processing. NLTK has been adopted in at least 40 university courses. NLTK is hosted on sourceforge, and is ranked in the top 200 projects. ...
4
1946
by: somenath | last post by:
Hi All, I have some questions about the process of learning C language. I see in this groups all expert most of the time quote from C standard. 1) My question is do all of you study the C standard as the part of your learning C language? 2) Is it very much required to study line by line of the C standard to
0
10138
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9930
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8961
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.