Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #54464 > unrolled thread
| Started by | Aseem Bansal <asmbansal2@gmail.com> |
|---|---|
| First post | 2013-09-20 02:58 -0700 |
| Last post | 2013-09-26 12:16 +0200 |
| Articles | 20 on this page of 24 — 13 participants |
Back to article view | Back to comp.lang.python
What minimum should a person know before saying "I know Python" Aseem Bansal <asmbansal2@gmail.com> - 2013-09-20 02:58 -0700
Re: What minimum should a person know before saying "I know Python" rusi <rustompmody@gmail.com> - 2013-09-20 04:43 -0700
Re: What minimum should a person know before saying "I know Python" Robert Kern <robert.kern@gmail.com> - 2013-09-20 14:39 +0100
Re: What minimum should a person know before saying "I know Python" rusi <rustompmody@gmail.com> - 2013-09-20 08:50 -0700
Re: What minimum should a person know before saying "I know Python" Aseem Bansal <asmbansal2@gmail.com> - 2013-09-20 09:28 -0700
Re: What minimum should a person know before saying "I know Python" Chris Angelico <rosuav@gmail.com> - 2013-09-21 02:34 +1000
Re: What minimum should a person know before saying "I know Python" Aseem Bansal <asmbansal2@gmail.com> - 2013-09-20 10:40 -0700
Re: What minimum should a person know before saying "I know Python" Aseem Bansal <asmbansal2@gmail.com> - 2013-09-20 10:51 -0700
Re: What minimum should a person know before saying "I know Python" Chris Angelico <rosuav@gmail.com> - 2013-09-21 12:06 +1000
Re: What minimum should a person know before saying "I know Python" Gene Heskett <gheskett@wdtv.com> - 2013-09-21 02:22 -0400
Re: What minimum should a person know before saying "I know Python" Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-09-22 12:44 -0400
Re: What minimum should a person know before saying "I know Python" Roy Smith <roy@panix.com> - 2013-09-20 22:31 -0400
Re: What minimum should a person know before saying "I know Python" Chris Angelico <rosuav@gmail.com> - 2013-09-21 12:54 +1000
Re: What minimum should a person know before saying "I know Python" Tim Chase <python.list@tim.thechases.com> - 2013-09-20 06:53 -0500
Re: What minimum should a person know before saying "I know Python" Chris Angelico <rosuav@gmail.com> - 2013-09-21 00:26 +1000
Re: What minimum should a person know before saying "I know Python" Mark Janssen <dreamingforward@gmail.com> - 2013-09-20 09:23 -0700
Re: What minimum should a person know before saying "I know Python" Jugurtha Hadjar <jugurtha.hadjar@gmail.com> - 2013-09-20 18:07 +0100
Re: What minimum should a person know before saying "I know Python" Terry Reedy <tjreedy@udel.edu> - 2013-09-20 18:26 -0400
Re: What minimum should a person know before saying "I know Python" Gene Heskett <gheskett@wdtv.com> - 2013-09-22 14:55 -0400
Re: What minimum should a person know before saying "I know Python" Gene Heskett <gheskett@wdtv.com> - 2013-09-22 15:48 -0400
Re: What minimum should a person know before saying "I know Python" Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-09-22 23:29 -0400
Re: What minimum should a person know before saying "I know Python" Gene Heskett <gheskett@wdtv.com> - 2013-09-23 00:10 -0400
Re: What minimum should a person know before saying "I know Python" CM <cmpython@gmail.com> - 2013-09-23 19:34 -0700
Re: What minimum should a person know before saying "I know Python" Schneider <js@globe.de> - 2013-09-26 12:16 +0200
Page 1 of 2 [1] 2 Next page →
| From | Aseem Bansal <asmbansal2@gmail.com> |
|---|---|
| Date | 2013-09-20 02:58 -0700 |
| Subject | What minimum should a person know before saying "I know Python" |
| Message-ID | <31df03f7-2b81-483a-9242-b83ba4559b1a@googlegroups.com> |
I started Python 4 months ago. Largely self-study with use of Python documentation, stackoverflow and google. I was thinking what is the minimum that I must know before I can say that I know Python? I come from a C background which is comparatively smaller. But as Python is comparatively much larger what minimum should I know? Just a general question not for a specific purpose.
[toc] | [next] | [standalone]
| From | rusi <rustompmody@gmail.com> |
|---|---|
| Date | 2013-09-20 04:43 -0700 |
| Message-ID | <97f90924-7690-442c-a1b3-4d7409e30d44@googlegroups.com> |
| In reply to | #54464 |
On Friday, September 20, 2013 3:28:00 PM UTC+5:30, Aseem Bansal wrote: > I started Python 4 months ago. Largely self-study with use of Python documentation, stackoverflow and google. I was thinking what is the minimum that I must know before I can say that I know Python? > > > > I come from a C background which is comparatively smaller. But as Python is comparatively much larger what minimum should I know? > > > > Just a general question not for a specific purpose. Stroustrup says he is still learning C++ and I know kids who have no qualms saying they know programming language L (for various values of L) after hardly an hour or two of mostly advertising and pep-talk exposure. So without knowing what you mean my 'knowing' I am not going to try answering q-1 I am just curious about q-2 -- C is small compared to python -- whats your measure for that? BTW 20 years ago I wrote about why C is very hard to learn and teach In these intervening years some things have changed, some have not See http://blog.languager.org/2013/02/c-in-education-and-software-engineering.html#relevate
[toc] | [prev] | [next] | [standalone]
| From | Robert Kern <robert.kern@gmail.com> |
|---|---|
| Date | 2013-09-20 14:39 +0100 |
| Message-ID | <mailman.182.1379684366.18130.python-list@python.org> |
| In reply to | #54466 |
On 2013-09-20 12:43, rusi wrote: > On Friday, September 20, 2013 3:28:00 PM UTC+5:30, Aseem Bansal wrote: >> I started Python 4 months ago. Largely self-study with use of Python documentation, stackoverflow and google. I was thinking what is the minimum that I must know before I can say that I know Python? >> >> I come from a C background which is comparatively smaller. But as Python is comparatively much larger what minimum should I know? >> >> Just a general question not for a specific purpose. > > Stroustrup says he is still learning C++ and I know kids who have no qualms saying they know programming language L (for various values of L) after hardly an hour or two of mostly advertising and pep-talk exposure. > So without knowing what you mean my 'knowing' I am not going to try answering q-1 I think that's his actual question: "What do *you* mean by 'I know Python'?" At what point in your Python career did you feel comfortable claiming that? -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
[toc] | [prev] | [next] | [standalone]
| From | rusi <rustompmody@gmail.com> |
|---|---|
| Date | 2013-09-20 08:50 -0700 |
| Message-ID | <31648467-19e8-484c-995d-1e5ba48b5ea3@googlegroups.com> |
| In reply to | #54474 |
On Friday, September 20, 2013 7:09:13 PM UTC+5:30, Robert Kern wrote: > On 2013-09-20 12:43, rusi wrote: > > Stroustrup says he is still learning C++ and I know kids who have no qualms saying they know programming language L (for various values of L) after hardly an hour or two of mostly advertising and pep-talk exposure. > > > So without knowing what you mean my 'knowing' I am not going to try answering q-1 > > > I think that's his actual question: "What do *you* mean by 'I know Python'?" > At what point in your Python career did you feel comfortable claiming that? Hmm... Now you are putting me in a spot :-) Too many aspects to this to give a reasonably short answer :-) I'll try and collect my thoughts in due course... What I meant to say to the OP: Knowing a language can mean widely different things: 1. to crack interviews 2. as a junior programmer 3. as a tech-lead 4. for bug-fixing/maintaining others' code A big difference between 1 and 2 is the value of obfuscated/ting code For 1 knowing trick questions/answers is a big win; for 2 more likely a loss. Also for 1 a big breath-first knowledge is required; for 2 its ok to know a subset well and be able to use it with good taste. For 3 right emotions are more important than details -- to look at a significant piece of code and be accurate in exclaiming "Wonderful/Blechhh" 4 is really an important and much neglected mindset. Ive talked about it here http://blog.languager.org/2010/02/service-and-product-mindsets.html Ok... So trying to say (a little!) in answer to your (Robert's) question though tangentially. Ive spent 20 years in a university. Most of what goes on there may be called gaming. - The best students are not the one's who know or love to know most but who successfully game the system - The best teachers are not those who teach best but who are one-up on the students' gaming habits and tendencies - The best administrators are those who are cleverest at using academic (sounding) jargon to make lucrative institutions Sounds cynical? Well most of the students are not the 'best students' above and so its more important to gauge where (s)he is coming from, where going etc and to answer appropriately rather than giving to-the-point answers when the student may be too bewildered to ask exact/precise questions. Basically instruct him just enough on how to game the system so that he clears the course but not so much he loses his soul!
[toc] | [prev] | [next] | [standalone]
| From | Aseem Bansal <asmbansal2@gmail.com> |
|---|---|
| Date | 2013-09-20 09:28 -0700 |
| Message-ID | <771f2126-883f-40de-8df0-93c79061305f@googlegroups.com> |
| In reply to | #54481 |
By C being smaller than Python I did not mean the scope of C is lesser than Python. I simply meant that the standard libraries are less in number compared to Python. By knowing Python I didn't imply an expert-level understanding. Minimum that so someone cannot say "Hey, you said you knew Python but you don't know anything.". Something on these lines. You can say for cracking interviews and/or as a junior programmar and/or as a fresher getting into industry. I like to have test cases for my functions/scripts but that wasn't what I had in my mind. Also I am learning Python because it is faster to make things with it. Not because it is going to get me any marks or anything. @Tim Chase That list helped. I was looking for something like that. Questions which I can try to answer and see where I stand. I hope that cleared some confusion about what I wanted to ask. I wanted to gauge myself to find if I am progressing or not.
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-09-21 02:34 +1000 |
| Message-ID | <mailman.192.1379694881.18130.python-list@python.org> |
| In reply to | #54490 |
On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal <asmbansal2@gmail.com> wrote: > I hope that cleared some confusion about what I wanted to ask. I wanted to gauge myself to find if I am progressing or not. Well, based on my definition, that's easy to answer. Have you solved problems using Python? If you have a bunch of HTML pages and you need to get some info out of all of them by COB today, do you think "I can do that with Python", or do you think "I can do that with sed, awk, grep, and five levels of pipe"? The tools you use for an urgent job will be the ones you know. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Aseem Bansal <asmbansal2@gmail.com> |
|---|---|
| Date | 2013-09-20 10:40 -0700 |
| Message-ID | <3fa2d1ea-c873-43c3-b703-1e187e7bc6ce@googlegroups.com> |
| In reply to | #54494 |
On Friday, September 20, 2013 10:04:32 PM UTC+5:30, Chris Angelico wrote: > On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal <asmbansal2@gmail.com> wrote: > > I hope that cleared some confusion about what I wanted to ask. I wanted to gauge myself to find if I am progressing or not. > > Well, based on my definition, that's easy to answer. Have you solved > problems using Python? If you have a bunch of HTML pages and you need > to get some info out of all of them by COB today, do you think "I can > do that with Python", or do you think "I can do that with sed, awk, > grep, and five levels of pipe"? The tools you use for an urgent job > will be the ones you know. > > ChrisA Yeah I have. I needed to get stats from the front page of a website. I wrote a script for that. I plotted the stats using matplotlib. I collected data manually and missed running the script one day so I took care of that problem using Python. Wrote a script that checked for internet connectivity and then ran the scripts that downloaded the stuff I needed and then placed this script in the Windows startup folder. That was a nice feeling. Because I can just customize that startup script if I ever wanted to change my computer's startup behaviour. But that was pure luck that I had done the random example that you had chosen. It would be difficult to find my overall progress by the one thing. I am currently unemployed so the sense of urgency isn't there normally. That's why I asked this question. But I got your point.
[toc] | [prev] | [next] | [standalone]
| From | Aseem Bansal <asmbansal2@gmail.com> |
|---|---|
| Date | 2013-09-20 10:51 -0700 |
| Message-ID | <92af2463-9b65-4bd6-a380-47208c529294@googlegroups.com> |
| In reply to | #54499 |
I understand that being able to solve problems and knowing when to use something is the final measure of knowing something properly. But I wanted to find something quantitative that I can use to measure myself. Like the interview questions that Tim Chase posted. Measuring myself based on the problems that I can think of is like a small child saying "I know that 1 + 1 = 2. So I know maths". That may be the toughest problem that he can think of. That isn't a correct evaluation of his math abilities. Similarly measuring myself on the basis of the problems that I can think of and solve doesn't actually measure anything. I don't want to be living in a fool's paradise based on solving the problems I can solve. It is not being able to solve a problem that will make me realize my limits. That's why I asked this question... I am kind of asking for advice.
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-09-21 12:06 +1000 |
| Message-ID | <mailman.211.1379729213.18130.python-list@python.org> |
| In reply to | #54499 |
On Sat, Sep 21, 2013 at 3:40 AM, Aseem Bansal <asmbansal2@gmail.com> wrote: > On Friday, September 20, 2013 10:04:32 PM UTC+5:30, Chris Angelico wrote: >> On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal <asmbansal2@gmail.com> wrote: >> > I hope that cleared some confusion about what I wanted to ask. I wanted to gauge myself to find if I am progressing or not. >> >> Well, based on my definition, that's easy to answer. Have you solved >> problems using Python? If you have a bunch of HTML pages and you need >> to get some info out of all of them by COB today, do you think "I can >> do that with Python", or do you think "I can do that with sed, awk, >> grep, and five levels of pipe"? The tools you use for an urgent job >> will be the ones you know. >> >> ChrisA > > Yeah I have... > But that was pure luck that I had done the random example that you had chosen. It would be difficult to find my overall progress by the one thing. > > I am currently unemployed so the sense of urgency isn't there normally. That's why I asked this question. But I got your point. It wasn't exactly a random example; it's an extremely common task (maybe without the "must be done today" restriction), and one that Python happens to do fairly well. :) There was a time, back in the 1990s, when REXX was my primary language. (We were exclusively an OS/2 shop at the time, so it was a good choice.) If I needed to write a quick script, it would be in REXX. If I needed to parse text, I'd use REXX. If I wanted a GUI app, I'd write it in VX-REXX. Later on, when I needed to write Windows code, I tended to use C++. It wasn't till the late 2000s that I started using Python for those sorts of jobs - even though I'd met the language back in the 90s - indicating that that's when I actually knew the language. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Gene Heskett <gheskett@wdtv.com> |
|---|---|
| Date | 2013-09-21 02:22 -0400 |
| Message-ID | <mailman.217.1379744590.18130.python-list@python.org> |
| In reply to | #54499 |
On Saturday 21 September 2013 01:34:50 Chris Angelico did opine:
> On Sat, Sep 21, 2013 at 3:40 AM, Aseem Bansal <asmbansal2@gmail.com>
wrote:
> > On Friday, September 20, 2013 10:04:32 PM UTC+5:30, Chris Angelico
wrote:
> >> On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal <asmbansal2@gmail.com>
wrote:
> >> > I hope that cleared some confusion about what I wanted to ask. I
> >> > wanted to gauge myself to find if I am progressing or not.
> >>
> >> Well, based on my definition, that's easy to answer. Have you solved
> >> problems using Python? If you have a bunch of HTML pages and you need
> >> to get some info out of all of them by COB today, do you think "I can
> >> do that with Python", or do you think "I can do that with sed, awk,
> >> grep, and five levels of pipe"? The tools you use for an urgent job
> >> will be the ones you know.
> >>
> >> ChrisA
> >
> > Yeah I have...
> > But that was pure luck that I had done the random example that you had
> > chosen. It would be difficult to find my overall progress by the one
> > thing.
> >
> > I am currently unemployed so the sense of urgency isn't there
> > normally. That's why I asked this question. But I got your point.
>
> It wasn't exactly a random example; it's an extremely common task
> (maybe without the "must be done today" restriction), and one that
> Python happens to do fairly well. :)
>
> There was a time, back in the 1990s, when REXX was my primary
> language. (We were exclusively an OS/2 shop at the time, so it was a
> good choice.) If I needed to write a quick script, it would be in
> REXX. If I needed to parse text, I'd use REXX. If I wanted a GUI app,
> I'd write it in VX-REXX. Later on, when I needed to write Windows
> code, I tended to use C++. It wasn't till the late 2000s that I
> started using Python for those sorts of jobs - even though I'd met the
> language back in the 90s - indicating that that's when I actually knew
> the language.
>
> ChrisA
That also brings back fond memories of the days of the amiga, Chris.
We had a huge superset of REXX called ARexx, which brought every system
call that AmigaDOS had right into the script writers usage menu. Jim Hines
and I wrote the only cron the amiga ever had that didn't busy wait, so cpu
usage was minimal. Called it EzCron. Gave it away. Then since the x10
stuff for home automation was /the/ system back in the day, we wrote
EzHome, which had an MUI driven gui, and sold that for a time. It, ARexx,
was written by a William Hawes, and sold thru the commie dealer chains at
the time. I've no clue whatever became of that gentleman after that, but
it came to light much that he never got a dime for writing ARexx from those
2 crooks that bought commie and moved it to the Bahamas where he, nor
anyone else, could sue to collect. I did note that for many years, there
was a subdir on kernel.org for him to work in, but to my knowledge it was
empty when I downloaded and built my first x86 based linux kernel in early
1998, and remained empty till whenever.
I was quite pleased to see that there was a Rexx/Regina for linux, and for
about 10 minutes thought I could make use of the library of ARexx code Jim
& I had carved up and had running on the amiga, but was very disappointed
to see that Regina wasn't coupled to the os itself in any way, causing our
scripts to barf and exit within the first 3 or 4 lines of code.
Our first web page at WDTV.com in the winter of 1999-2000 was served up on
a dialup circuit, by an ARexx script we wrote, from an amiga 2000.
Heady days, those, while the dosboxes were still struggling with trumpet,
and choking on the all the amiga, pdp and VAX dust. But time marches on,
while the amiga didn't.
I've seen python doing some heady stuff in the last 5 years, but the
learning curve is pretty steep for my now aging wet ram, which will be 79
years old in a few days, so the scripting language here at the Heskett
Ranchette is bash, and there is quite a boatload of that running as
background daemons right now. So I lurk, reading what goes by, hoping I'll
learn enough python from osmosis to get comfortable with it. From all
indications, it is todays "ARexx" of scripting languages.
I'll get me coat now. :)
Cheers, Gene
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://gene.homelinux.net:6309/gene> should be up!
As pointed out in a followup, Real Perl Programmers prefer things to be
visually distinct.
-- Larry Wall in <199710161841.LAA13208@wall.org>
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
law-abiding citizens.
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2013-09-22 12:44 -0400 |
| Message-ID | <mailman.245.1379868248.18130.python-list@python.org> |
| In reply to | #54499 |
On Sat, 21 Sep 2013 02:22:59 -0400, Gene Heskett <gheskett@wdtv.com>
declaimed the following:
>
>I was quite pleased to see that there was a Rexx/Regina for linux, and for
>about 10 minutes thought I could make use of the library of ARexx code Jim
>& I had carved up and had running on the amiga, but was very disappointed
>to see that Regina wasn't coupled to the os itself in any way, causing our
>scripts to barf and exit within the first 3 or 4 lines of code.
>
No surprise given the lack of real /interactive/ IPC in Windows and
Linux. A version of REXX running on (Open)VMS might have a chance -- as VMS
Mailboxes were a (protected memory equivalent) of Amiga message ports... So
a means of "address other_application" could be mapped to opening
"other_application_port".
I vaguely recall once using the "advanced" calls from the back of the
manual, and having multiple ARexx scripts talking to each other via
"address other_script"
>
>I've seen python doing some heady stuff in the last 5 years, but the
>learning curve is pretty steep for my now aging wet ram, which will be 79
>years old in a few days, so the scripting language here at the Heskett
>Ranchette is bash, and there is quite a boatload of that running as
>background daemons right now. So I lurk, reading what goes by, hoping I'll
>learn enough python from osmosis to get comfortable with it. From all
>indications, it is todays "ARexx" of scripting languages.
>
Having been spoiled by ARexx myself... No... Python will never be
/that/... Even subprocess.popen() doesn't allow for the easy control of
other programs. One is stuck with M$ COM (the win32 extension library or,
more portable maybe [if the libraries are ported] ctypes to do what
"address ..." did in ARexx.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | Roy Smith <roy@panix.com> |
|---|---|
| Date | 2013-09-20 22:31 -0400 |
| Message-ID | <roy-0DE919.22310420092013@news.panix.com> |
| In reply to | #54494 |
In article <mailman.192.1379694881.18130.python-list@python.org>,
Chris Angelico <rosuav@gmail.com> wrote:
> On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal <asmbansal2@gmail.com> wrote:
> > I hope that cleared some confusion about what I wanted to ask. I wanted to
> > gauge myself to find if I am progressing or not.
>
> Well, based on my definition, that's easy to answer. Have you solved
> problems using Python? If you have a bunch of HTML pages and you need
> to get some info out of all of them by COB today, do you think "I can
> do that with Python", or do you think "I can do that with sed, awk,
> grep, and five levels of pipe"? The tools you use for an urgent job
> will be the ones you know.
The fact that you reach for traditional command-line tools to parse HTML
should not be taken as evidence that you don't know Python. It should
be taken as evidence that you have a lot of tools in your quiver and
know when to use the right one.
I started with Python in the 1.4 days. I will reach for Python these
days in preference to Perl, Tcl, C, C++, Java, or PHP for most things.
But, for a lot of basic text processing, I can throw together a sed,
awk, grep, sort, uniq, wc, tac, tail, etc pipeline faster than I can
write a Python program to do the same thing.
Oh, and by the way, the python.org home page has
$ curl -s python.org | tr ' ' '\n' | grep ^href= | wc -l
124
124 links on it.
You're still reading the BeautifulSoup docs :-)
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-09-21 12:54 +1000 |
| Message-ID | <mailman.213.1379732077.18130.python-list@python.org> |
| In reply to | #54526 |
On Sat, Sep 21, 2013 at 12:31 PM, Roy Smith <roy@panix.com> wrote: > In article <mailman.192.1379694881.18130.python-list@python.org>, > Chris Angelico <rosuav@gmail.com> wrote: > >> On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal <asmbansal2@gmail.com> wrote: >> > I hope that cleared some confusion about what I wanted to ask. I wanted to >> > gauge myself to find if I am progressing or not. >> >> Well, based on my definition, that's easy to answer. Have you solved >> problems using Python? If you have a bunch of HTML pages and you need >> to get some info out of all of them by COB today, do you think "I can >> do that with Python", or do you think "I can do that with sed, awk, >> grep, and five levels of pipe"? The tools you use for an urgent job >> will be the ones you know. > > The fact that you reach for traditional command-line tools to parse HTML > should not be taken as evidence that you don't know Python. It should > be taken as evidence that you have a lot of tools in your quiver and > know when to use the right one. > > I started with Python in the 1.4 days. I will reach for Python these > days in preference to Perl, Tcl, C, C++, Java, or PHP for most things. > But, for a lot of basic text processing, I can throw together a sed, > awk, grep, sort, uniq, wc, tac, tail, etc pipeline faster than I can > write a Python program to do the same thing. Oh, absolutely! I never said that sed/awk/grep was a bad way to do things; my point is that, when there are dozens of viable solutions to a problem and you have to solve that problem *now*, you are going to reach for the one you know best. I use sed all the time (it's one of the easiest ways to edit a root-owned file from a non-root shell script - 'sudo sed -i'). ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Tim Chase <python.list@tim.thechases.com> |
|---|---|
| Date | 2013-09-20 06:53 -0500 |
| Message-ID | <mailman.178.1379677978.18130.python-list@python.org> |
| In reply to | #54464 |
On 2013-09-20 02:58, Aseem Bansal wrote: > I started Python 4 months ago. Largely self-study with use of > Python documentation, stackoverflow and google. I was thinking what > is the minimum that I must know before I can say that I know Python? It's a fuzzy line. A good while back, there was a thread regarding Python interview questions: http://www.mail-archive.com/python-list@python.org/msg168971.html to which I replied with a pretty large list. The idea was not to ensure that people knew everything on it, but as a way to take stock of somebody means by "I know Python", which can mean anything from "I wrote _Hello World_ in Python once" to "I'm Guido/Raymond/Effbot". Along with the "Basics" section of that email, I'd expect a reasonable understanding of commonly-used libraries offered out of the box (at least a breadth of what is there, even if you haven't used them much). Most of the "history" items in that list are somewhat moot unless you have to support older Python (I still have some 2.4 installs that don't let me use the "with" statement or sqlite by default). -tkc
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-09-21 00:26 +1000 |
| Message-ID | <mailman.183.1379687191.18130.python-list@python.org> |
| In reply to | #54464 |
On Fri, Sep 20, 2013 at 7:58 PM, Aseem Bansal <asmbansal2@gmail.com> wrote: > I started Python 4 months ago. Largely self-study with use of Python documentation, stackoverflow and google. I was thinking what is the minimum that I must know before I can say that I know Python? > > I come from a C background which is comparatively smaller. But as Python is comparatively much larger what minimum should I know? > > Just a general question not for a specific purpose. Interesting. Everything's relative. I would say that I "know Python" at the point where I am comfortable using it to solve problems, as opposed to using it to learn Python. That is to say, when you choose Python (above bash, or above some other language, or whatever) because it will take you less time to achieve a goal in Python than in any other language, when it's the goal that's important. I'd also add, though it's somewhat tangential to the first, that "knowing Python" also requires knowing when/where Python is a good choice of language. I like to be able to make one-sentence summaries of the form "X is a good choice when you want to...": * Python: put something together NOW, with no boilerplate * Pike: run a server that reloads code without dropping connections * C: implement a high level language (or a module for one) * PHP: gouge your eyes out with a rusty fork, but aren't allowed to on work time * Haskell: code functionally rather than imperatively (I'm not familiar with a broad range of functional languages; someone who is would be distinguishing them from each other) * bash: execute a series of commands, with minimal processing in between * Lua: embed a tiny and secure scripting language in an application * JavaScript/ECMAScript: ditto, but less tiny * Brainf*: gouge your eyes out with a rusty fork, but aren't allowed to use PHP Etcetera. Familiarity with a language requires knowing both how to use it and when to use it. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Mark Janssen <dreamingforward@gmail.com> |
|---|---|
| Date | 2013-09-20 09:23 -0700 |
| Message-ID | <mailman.189.1379694218.18130.python-list@python.org> |
| In reply to | #54464 |
> I started Python 4 months ago. Largely self-study with use of Python documentation, stackoverflow and google. I was thinking what is the minimum that I must know before I can say that I know Python? Interesting. I would say that you must know the keywords, how to make a Class, how to write a loop. That covers about 85% of it. -- MarkJ Tacoma, Washington
[toc] | [prev] | [next] | [standalone]
| From | Jugurtha Hadjar <jugurtha.hadjar@gmail.com> |
|---|---|
| Date | 2013-09-20 18:07 +0100 |
| Message-ID | <mailman.194.1379696864.18130.python-list@python.org> |
| In reply to | #54464 |
I think it is a philosophical question. It's like saying "I know maths", which is a ridiculous phrase I was surprised to hear, let alone surprised to hear often. Can someone know everything there is to know about something ? I doubt it. The point, at least for me, isn't to know everything .. But the ability to find out. I consider myself ignorant in almost everything, that's because I ask myself a lot of questions about a lot of things I ignore. The point is following up and looking things up so that you know them. I knew many things I wasn't even aware existed. What this (constant questions) does is that it gives a lot of information that is networked (and you make a lot of connections between seemingly unrelated topics). I'll give an example: I had a class in my second year in college about nuclear and atomic physics. There was a chapter about the Doppler effect. I was able to grasp it easily, because when I was a kid, it happened I took magazines in the bathroom to read, and I've read about it. Having a déjà-vu impression in a lot of things and to be able to make analogies of concepts and principles has helped me tremendously. When I got into college and started programming PIC microcontrollers, having tinkered with Intel assembly language in high-school (disassembling executables and tinkering with them) was definitely a plus (Registers, operands, carry operations, hexadecimal, addresses). When in the first year we started Pascal, I already did things in Delphi when I was in high-school. But then again, I also did tinker with C in middle-school (really basic stuff) and BASIC as a child. Do I know Python ? No. I don't think I ever will. But I am confident I will be able to do what I cannot do right now, and the complexity of the things I will be able to do will increase, as will my ability to simplify complex things. It's a converging exponential, as a capacitor charging. The goal is to minimized the time constant so you get at about 63.2% fast. The incremental 1%s will take years and I don't think you'll ever hit 100%, not even after decades. Sorry :) -- ~Jugurtha Hadjar,
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2013-09-20 18:26 -0400 |
| Message-ID | <mailman.205.1379716919.18130.python-list@python.org> |
| In reply to | #54464 |
On 9/20/2013 5:58 AM, Aseem Bansal wrote: > I started Python 4 months ago. Largely self-study with use of Python > documentation, stackoverflow and google. I was thinking what is the > minimum that I must know before I can say that I know Python? > > I come from a C background which is comparatively smaller. But as > Python is comparatively much larger what minimum should I know? The C stdlib may be smaller than the Python stdlib, but I do not think the language itself is much smaller. Python3 is a bit smaller than Python2 due to removals. Python the language is defined in the Language Reference. So 'knowing Python' means knowing most of that. What I might leave out: the details of all the special method names; which bitwise operators do what; yield from (3.3+). From the library manual, I would include an overview of chapters 2 to 5. For instance, not memorize all the exceptions, but understand the hierarchy. -- Terry Jan Reedy
[toc] | [prev] | [next] | [standalone]
| From | Gene Heskett <gheskett@wdtv.com> |
|---|---|
| Date | 2013-09-22 14:55 -0400 |
| Message-ID | <mailman.248.1379876135.18130.python-list@python.org> |
| In reply to | #54464 |
On Sunday 22 September 2013 14:49:21 Dennis Lee Bieber did opine:
> On Sat, 21 Sep 2013 02:22:59 -0400, Gene Heskett <gheskett@wdtv.com>
>
> declaimed the following:
> >I was quite pleased to see that there was a Rexx/Regina for linux, and
> >for about 10 minutes thought I could make use of the library of ARexx
> >code Jim & I had carved up and had running on the amiga, but was very
> >disappointed to see that Regina wasn't coupled to the os itself in any
> >way, causing our scripts to barf and exit within the first 3 or 4
> >lines of code.
>
> No surprise given the lack of real /interactive/ IPC in Windows and
> Linux. A version of REXX running on (Open)VMS might have a chance -- as
> VMS Mailboxes were a (protected memory equivalent) of Amiga message
> ports... So a means of "address other_application" could be mapped to
> opening "other_application_port".
>
> I vaguely recall once using the "advanced" calls from the back of
the
> manual, and having multiple ARexx scripts talking to each other via
> "address other_script"
We did that dozens of times a day on every machine we owned, which at the
time was about just in the commercial production rooms.
> >I've seen python doing some heady stuff in the last 5 years, but the
> >learning curve is pretty steep for my now aging wet ram, which will be
> >79 years old in a few days, so the scripting language here at the
> >Heskett Ranchette is bash, and there is quite a boatload of that
> >running as background daemons right now. So I lurk, reading what goes
> >by, hoping I'll learn enough python from osmosis to get comfortable
> >with it. From all indications, it is todays "ARexx" of scripting
> >languages.
>
> Having been spoiled by ARexx myself... No... Python will never be
> /that/... Even subprocess.popen() doesn't allow for the easy control of
> other programs. One is stuck with M$ COM (the win32 extension library
> or, more portable maybe [if the libraries are ported] ctypes to do what
> "address ..." did in ARexx.
Then it seems to me that work in the direction should be an active feature
request. Unforch, as I've said before, I'm rowing this barge with a
toothpick for an oar. :)
I would be interesting to see if the "bait" is taken. :)
Thanks Dennis.
Cheers, Gene
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://gene.homelinux.net:6309/gene> should be up!
Real programmers don't write in BASIC. Actually, no programmers write in
BASIC after reaching puberty.
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
law-abiding citizens.
[toc] | [prev] | [next] | [standalone]
| From | Gene Heskett <gheskett@wdtv.com> |
|---|---|
| Date | 2013-09-22 15:48 -0400 |
| Message-ID | <mailman.249.1379879289.18130.python-list@python.org> |
| In reply to | #54464 |
On Sunday 22 September 2013 15:46:52 Gene Heskett did opine:
> On Sunday 22 September 2013 14:49:21 Dennis Lee Bieber did opine:
> > On Sat, 21 Sep 2013 02:22:59 -0400, Gene Heskett <gheskett@wdtv.com>
> >
> > declaimed the following:
> > >I was quite pleased to see that there was a Rexx/Regina for linux,
> > >and for about 10 minutes thought I could make use of the library of
> > >ARexx code Jim & I had carved up and had running on the amiga, but
> > >was very disappointed to see that Regina wasn't coupled to the os
> > >itself in any way, causing our scripts to barf and exit within the
> > >first 3 or 4 lines of code.
> > >
> > No surprise given the lack of real /interactive/ IPC in Windows and
> >
> > Linux. A version of REXX running on (Open)VMS might have a chance --
> > as VMS Mailboxes were a (protected memory equivalent) of Amiga
> > message ports... So a means of "address other_application" could be
> > mapped to opening "other_application_port".
> >
> > I vaguely recall once using the "advanced" calls from the back of
>
> the
>
> > manual, and having multiple ARexx scripts talking to each other via
> > "address other_script"
>
> We did that dozens of times a day on every machine we owned, which at
> the time was about just in the commercial production rooms.
s/about just/about 6 just/g
> > >I've seen python doing some heady stuff in the last 5 years, but the
> > >learning curve is pretty steep for my now aging wet ram, which will
> > >be 79 years old in a few days, so the scripting language here at the
> > >Heskett Ranchette is bash, and there is quite a boatload of that
> > >running as background daemons right now. So I lurk, reading what
> > >goes by, hoping I'll learn enough python from osmosis to get
> > >comfortable with it. From all indications, it is todays "ARexx" of
> > >scripting languages.
> > >
> > Having been spoiled by ARexx myself... No... Python will never be
> >
> > /that/... Even subprocess.popen() doesn't allow for the easy control
> > of other programs. One is stuck with M$ COM (the win32 extension
> > library or, more portable maybe [if the libraries are ported] ctypes
> > to do what "address ..." did in ARexx.
>
> Then it seems to me that work in the direction should be an active
> feature request. Unforch, as I've said before, I'm rowing this barge
> with a toothpick for an oar. :)
>
> I would be interesting to see if the "bait" is taken. :)
>
> Thanks Dennis.
>
> Cheers, Gene
Cheers, Gene
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://gene.homelinux.net:6309/gene> should be up!
Hate is like acid. It can damage the vessel in which it is stored as well
as destroy the object on which it is poured.
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
law-abiding citizens.
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.lang.python
csiph-web