Re: Teaching Python

2014-10-31 Thread sohcahtoa82
On Friday, October 31, 2014 10:10:33 AM UTC-7, Seymore4Head wrote: > On Mon, 29 Sep 2014 11:44:01 -0400, Seymore4Head > wrote: > > >On Mon, 29 Sep 2014 15:18:31 +0200, Gabor Urban > >wrote: > > > >>Hi, > >> > >>my 11 years old son and his classmate told me, that they would like to > >>learn Pyth

Re: Teaching Python

2014-10-31 Thread Seymore4Head
On Mon, 29 Sep 2014 11:44:01 -0400, Seymore4Head wrote: >On Mon, 29 Sep 2014 15:18:31 +0200, Gabor Urban >wrote: > >>Hi, >> >>my 11 years old son and his classmate told me, that they would like to >>learn Python. They did some programming in Logo and turtle graphics, bat >>not too much. >> >>Doe

Re[2]: Teaching Python

2014-09-30 Thread Grawburg
I use Chris Roffey's "Coding Club - Python Basics (Level 1)" and "Coding Club - Python: Next Steps (Level 2)" I also use the Turtle material from "Python for Kids" These are 11+ year old kids in week long, 3 hour/day summer camps on the Raspberry Pi and Python. The Level 2 book is for the 2nd cam

Re: Teaching Python

2014-09-29 Thread Terry Reedy
On 9/29/2014 9:18 AM, Gabor Urban wrote: Hi, my 11 years old son and his classmate told me, that they would like to learn Python. They did some programming in Logo and turtle graphics, bat not too much. Doesn anybody has an idea how to start? Python has a turtle module, so they can continue w

Re: Teaching Python

2014-09-29 Thread John Ladasky
I am actually teaching Python as a side job. My students have ranged from eighth graders, up to a Silicon Valley hardware engineer who had no coding experience, but who needed to do some test engineering. My wife is an elementary school teacher. We occasionally talk about age-appropriate

Re: Teaching Python

2014-09-29 Thread Simon Ward
On 29 September 2014 14:18:31 BST, Gabor Urban wrote: >my 11 years old son and his classmate told me, that they would like to >learn Python. They did some programming in Logo and turtle graphics, >bat >not too much. > >Doesn anybody has an idea how to start? "How to Think Like a Computer Scient

Re: Teaching Python

2014-09-29 Thread Seymore4Head
On Mon, 29 Sep 2014 15:18:31 +0200, Gabor Urban wrote: >Hi, > >my 11 years old son and his classmate told me, that they would like to >learn Python. They did some programming in Logo and turtle graphics, bat >not too much. > >Doesn anybody has an idea how to start? I ordered this book from the l

Re: Teaching Python

2014-09-29 Thread Chris Angelico
On Mon, Sep 29, 2014 at 11:38 PM, Rustom Mody wrote: >> https://docs.python.org/3/tutorial/ > > The official tutorial for an 11 year old?? I dont think so... I don't see why not, to be honest. Not a lot of difference between his 11yo son and my 12yo sister, and I just pointed her at the tutorial

Re: Teaching Python

2014-09-29 Thread Rustom Mody
On Monday, September 29, 2014 6:59:10 PM UTC+5:30, Chris Angelico wrote: > On Mon, Sep 29, 2014 at 11:18 PM, Gabor Urban wrote: > > my 11 years old son and his classmate told me, that they would like to learn > > Python. They did some programming in Logo and turtle graphics, bat not too > > much. >

Re: Teaching Python

2014-09-29 Thread Steven D'Aprano
Gabor Urban wrote: > Hi, > > my 11 years old son and his classmate told me, that they would like to > learn Python. They did some programming in Logo and turtle graphics, bat > not too much. > > Doesn anybody has an idea how to start? The Internet is a big place, I always start by searching :-)

Re: Teaching Python

2014-09-29 Thread Chris Angelico
On Mon, Sep 29, 2014 at 11:18 PM, Gabor Urban wrote: > my 11 years old son and his classmate told me, that they would like to learn > Python. They did some programming in Logo and turtle graphics, bat not too > much. > > Doesn anybody has an idea how to start? Right here: https://docs.python.org

Teaching Python

2014-09-29 Thread Gabor Urban
Hi, my 11 years old son and his classmate told me, that they would like to learn Python. They did some programming in Logo and turtle graphics, bat not too much. Doesn anybody has an idea how to start? -- Urbán Gábor Linux is like a wigwam: no Gates, no Windows and an Apache inside. -- https:

Re: Teaching python to non-programmers

2014-04-14 Thread Mark Lawrence
On 14/04/2014 01:20, Steven D'Aprano wrote: On Mon, 14 Apr 2014 00:54:02 +0100, Mark Lawrence wrote: but the powers that be deem fit not to take any action over. There is no Internet police. Which is a good thing, for if there were, this sort of criticism of the Internet police is exactly the

Re: Teaching python to non-programmers

2014-04-14 Thread Ian Kelly
On Mon, Apr 14, 2014 at 12:13 AM, alex23 wrote: > http://www.ietf.org/rfc/rfc1855.txt > > If you are sending a reply to a message or a posting be sure you > summarize the original at the top of the message, or include just > enough text of the original to give a context. This will mak

Re: Teaching python to non-programmers

2014-04-13 Thread alex23
On 11/04/2014 3:42 PM, Rustom Mody wrote: On Friday, April 11, 2014 10:41:26 AM UTC+5:30, Chris Angelico wrote: On Fri, Apr 11, 2014 at 2:37 PM, Rustom Mody wrote: Right. Its true that when I was at a fairly large corporate, I was not told: "Please always top post!" What I was very gently and

Re: Teaching python to non-programmers

2014-04-13 Thread Steven D'Aprano
On Mon, 14 Apr 2014 00:54:02 +0100, Mark Lawrence wrote: > but the powers that be deem fit not > to take any action over. There is no Internet police. Which is a good thing, for if there were, this sort of criticism of the Internet police is exactly the sort of thing that would bring down their

Re: Teaching python to non-programmers

2014-04-13 Thread Mark Lawrence
On 13/04/2014 23:51, Rhodri James wrote: On Fri, 11 Apr 2014 21:20:05 +0100, wrote: On Thursday, April 10, 2014 3:40:22 PM UTC-7, Rhodri James wrote: It's called irony, and unfortunately Mark is reacting to an all-to-common situation that GoogleGroups foists on unsuspecting posters like yours

Re: Teaching python to non-programmers

2014-04-13 Thread Rhodri James
On Fri, 11 Apr 2014 21:20:05 +0100, wrote: On Thursday, April 10, 2014 3:40:22 PM UTC-7, Rhodri James wrote: It's called irony, and unfortunately Mark is reacting to an all-to-common situation that GoogleGroups foists on unsuspecting posters like yourself. People who say "I can't be bothe

Re: Teaching python to non-programmers

2014-04-11 Thread Steven D'Aprano
On Fri, 11 Apr 2014 11:19:22 -0700, Rustom Mody wrote: > On Friday, April 11, 2014 5:04:28 PM UTC+5:30, Steven D'Aprano wrote: [...] > For the rest, Im not sure that you need my help in making a fool of > yourself... Anyway since you are requesting said help, here goes: Very strong words. >> On

Re: Teaching python to non-programmers

2014-04-11 Thread Rustom Mody
On Saturday, April 12, 2014 1:50:05 AM UTC+5:30, pete.b...@gmail.com wrote: > On Thursday, April 10, 2014 3:40:22 PM UTC-7, Rhodri James wrote: > > > It's called irony, and unfortunately Mark is reacting to an all-to-common > > situation that GoogleGroups foists on unsuspecting posters like your

Re: Teaching python to non-programmers

2014-04-11 Thread pete . bee . emm
On Thursday, April 10, 2014 3:40:22 PM UTC-7, Rhodri James wrote: > It's called irony, and unfortunately Mark is reacting to an all-to-common > situation that GoogleGroups foists on unsuspecting posters like yourself. People who say "I can't be bothered to correct this" while posting a wise a

Re: Teaching python to non-programmers

2014-04-11 Thread Rustom Mody
On Friday, April 11, 2014 5:04:28 PM UTC+5:30, Steven D'Aprano wrote: > I've been in plenty of mailing list forums where interleaved posting was > required, but there's only so many times you can tell people off for > being rude before you start coming across as rude yourself. > It's one of those

Re: Teaching python to non-programmers

2014-04-11 Thread Mark H Harris
On 4/10/14 10:54 AM, Lalitha Prasad K wrote: Dear List Recently I was requested to teach python to a group of students of GIS (Geographic Information Systems). Adults? ... what age ranges? Their knowledge of programming is zero. The objective is to enable them to write plug-ins for GIS s

Re: Teaching python to non-programmers

2014-04-11 Thread Mark H Harris
On 4/10/14 3:52 PM, pete.bee@gmail.com wrote: Do you get paid to be a jerk, or is it just for yuks? If the latter, you're not funny. Mark is the c.l.python resident margin police. Think of him as a welcome committee with an attitude. :) -- https://mail.python.org/mailman/listinfo/pyt

Re: Teaching python to non-programmers

2014-04-11 Thread Mark Lawrence
On 10/04/2014 21:52, pete.bee@gmail.com wrote: Just awesome, not only do we have double line spacing and single line paragraphs, we've also got top posting, oh boy am I a happy bunny :) I'll leave someone3 else to explain, I just can't be bothered. Do you get paid to be a jerk, or is

Re: Teaching python to non-programmers

2014-04-11 Thread Chris Angelico
On Fri, Apr 11, 2014 at 10:39 PM, Tim Chase wrote: > On 2014-04-11 11:34, Steven D'Aprano wrote: >> >> That's equivalent to being told "Don't ever delete any of your >> >> code, just comment it out". I don't care who's saying that, it's >> >> bad advice. >> > >> > The correct analogy: "Dont ever d

Re: Teaching python to non-programmers

2014-04-11 Thread Tim Chase
On 2014-04-11 11:34, Steven D'Aprano wrote: > >> That's equivalent to being told "Don't ever delete any of your > >> code, just comment it out". I don't care who's saying that, it's > >> bad advice. > > > > The correct analogy: "Dont ever delete content from the > > repository" > > No -- the

Re: Teaching python to non-programmers

2014-04-11 Thread Steven D'Aprano
On Fri, 11 Apr 2014 12:46:05 +0100, Paul Rudin wrote: > Steven D'Aprano writes: > >> On Thu, 10 Apr 2014 22:42:14 -0700, Rustom Mody wrote: >> >>> In middle-eastern society women are expected to dress heavier than in >>> the West. A few years ago a girl went to school in France with a scarf >>>

Re: Teaching python to non-programmers

2014-04-11 Thread alister
On Fri, 11 Apr 2014 21:01:46 +1000, Chris Angelico wrote: > On Fri, Apr 11, 2014 at 8:46 PM, alister > wrote: >> Right up to the point when someone forwards on an internal email chain >> to an external customer without bothering to prune out the bit where >> someone (usually an engineer like myse

Re: Teaching python to non-programmers

2014-04-11 Thread Paul Rudin
Steven D'Aprano writes: > On Thu, 10 Apr 2014 22:42:14 -0700, Rustom Mody wrote: > >> In middle-eastern society women are expected to dress heavier than in >> the West. A few years ago a girl went to school in France with a scarf >> and she was penalized. > > Citation please. I think this is bogu

Re: Teaching python to non-programmers

2014-04-11 Thread Steven D'Aprano
On Thu, 10 Apr 2014 22:54:23 -0700, Rustom Mody wrote: > What I am pointing out is that if one gets so besotted with irritation > as to lose coherence, its unlikely that any useful communication will > ensue. This, a million times. If all we do is be curmudgeons who complain about GG's poor post

Re: Teaching python to non-programmers

2014-04-11 Thread Steven D'Aprano
On Thu, 10 Apr 2014 22:42:14 -0700, Rustom Mody wrote: > In middle-eastern society women are expected to dress heavier than in > the West. A few years ago a girl went to school in France with a scarf > and she was penalized. Citation please. I think this is bogus, although given how obnoxious som

Re: Teaching python to non-programmers

2014-04-11 Thread Chris Angelico
On Fri, Apr 11, 2014 at 8:46 PM, alister wrote: > Right up to the point when someone forwards on an internal email chain to > an external customer without bothering to prune out the bit where someone > (usually an engineer like myself) has stated (bluntly) that what the > salesman is proposing wil

Re: Teaching python to non-programmers

2014-04-11 Thread alister
On Fri, 11 Apr 2014 06:34:46 +0100, Paul Rudin wrote: > > It's not necessarily a bad idea to retain context in corporate emails. > Messages tend to get forwarded to people other than the original > recipient(s), and the context can be very helpful. > Right up to the point when someone forwards on

Re: Teaching python to non-programmers

2014-04-11 Thread Chris Angelico
On Fri, Apr 11, 2014 at 8:07 PM, Steven D'Aprano wrote: > It is, in a way, the corporate equivalent of "RTFM", only enshrined as > normal practice rather than seen as a deliberate put-down of somebody who > hasn't done their homework. And because it's normal practice, even those > who know better

Re: Teaching python to non-programmers

2014-04-11 Thread Steven D'Aprano
On Thu, 10 Apr 2014 23:39:24 -0600, Ian Kelly wrote: > On Thu, Apr 10, 2014 at 11:11 PM, Chris Angelico > wrote: [...] >> Then you were told that by someone who does not understand email. >> That's equivalent to being told "Don't ever delete any of your code, >> just comment it out". I don't care

Re: Teaching python to non-programmers

2014-04-11 Thread Steven D'Aprano
On Thu, 10 Apr 2014 21:37:22 -0700, Rustom Mody wrote: > Right. Its true that when I was at a fairly large corporate, I was not > told: "Please always top post!" That's only because they are ignorant of the terminology of top- bottom- and interleaved posting. If they knew the term, they would sa

Re: Teaching python to non-programmers

2014-04-11 Thread Chris Angelico
On Fri, Apr 11, 2014 at 5:09 PM, Steven D'Aprano wrote: > On Fri, 11 Apr 2014 13:59:00 +1000, Chris Angelico wrote: > >> I have seen plenty of cultures where people are unaware of the value of >> interleaved/bottom posting, but so far, not one where anyone has >> actually required it. Not one. > >

Re: Teaching python to non-programmers

2014-04-11 Thread Steven D'Aprano
On Fri, 11 Apr 2014 13:59:00 +1000, Chris Angelico wrote: > I have seen plenty of cultures where people are unaware of the value of > interleaved/bottom posting, but so far, not one where anyone has > actually required it. Not one. I've been in plenty of mailing list forums where interleaved pos

Re: Teaching python to non-programmers

2014-04-10 Thread Chris Angelico
On Fri, Apr 11, 2014 at 3:54 PM, Rustom Mody wrote: > Just to make it clear: > 1. I have no objection to the python list culture. > As I said I tend to follow it in places where it is not the norm and get > chided for it > [For the record on other groups which are exclusively GG/gmail based

Re: Teaching python to non-programmers

2014-04-10 Thread Chris Angelico
On Fri, Apr 11, 2014 at 3:42 PM, Rustom Mody wrote: > People whose familiarity with religion is limited to the Judeo-Christian > tradition are inclined to the view (usually implicit) that > "being religious" == "belief in God" > However there are religions where belief in God is irreligious -- Jai

Re: Teaching python to non-programmers

2014-04-10 Thread Rustom Mody
On Friday, April 11, 2014 11:12:14 AM UTC+5:30, Rustom Mody wrote: > On Friday, April 11, 2014 10:41:26 AM UTC+5:30, Chris Angelico wrote: > > Also unhelpful is to suggest that norms should, simply *because* they > > are the prevailing practice, be maintained. Even if everyone else on > > python-li

Re: Teaching python to non-programmers

2014-04-10 Thread Chris Angelico
On Fri, Apr 11, 2014 at 3:39 PM, Ian Kelly wrote: > That depends on what the mail is being used for. For instance there's > a difference between mail-as-dialogue and mail-as-business-process. > In the former it is normal, even polite, to prune as the topic evolves > and past quotations become les

Re: Teaching python to non-programmers

2014-04-10 Thread Rustom Mody
On Friday, April 11, 2014 10:41:26 AM UTC+5:30, Chris Angelico wrote: > On Fri, Apr 11, 2014 at 2:37 PM, Rustom Mody wrote: > > Right. Its true that when I was at a fairly large corporate, I was not told: > > "Please always top post!" > > > > What I was very gently and super politely told was: > >

Re: Teaching python to non-programmers

2014-04-10 Thread Chris Angelico
On Fri, Apr 11, 2014 at 3:34 PM, Paul Rudin wrote: > Chris Angelico writes: > >> On Fri, Apr 11, 2014 at 2:37 PM, Rustom Mody wrote: >>> What I was very gently and super politely told was: >>> "Please dont delete mail context" >> >> Then you were told that by someone who does not understand emai

Re: Teaching python to non-programmers

2014-04-10 Thread Ian Kelly
On Thu, Apr 10, 2014 at 11:11 PM, Chris Angelico wrote: > On Fri, Apr 11, 2014 at 2:37 PM, Rustom Mody wrote: >> Right. Its true that when I was at a fairly large corporate, I was not told: >> "Please always top post!" >> >> What I was very gently and super politely told was: >> "Please dont dele

Re: Teaching python to non-programmers

2014-04-10 Thread Paul Rudin
Chris Angelico writes: > On Fri, Apr 11, 2014 at 2:37 PM, Rustom Mody wrote: >> Right. Its true that when I was at a fairly large corporate, I was not told: >> "Please always top post!" >> >> What I was very gently and super politely told was: >> "Please dont delete mail context" > > Then you we

Re: Teaching python to non-programmers

2014-04-10 Thread Chris Angelico
On Fri, Apr 11, 2014 at 2:37 PM, Rustom Mody wrote: > Right. Its true that when I was at a fairly large corporate, I was not told: > "Please always top post!" > > What I was very gently and super politely told was: > "Please dont delete mail context" Then you were told that by someone who does no

Re: Teaching python to non-programmers

2014-04-10 Thread Rustom Mody
On Friday, April 11, 2014 9:29:00 AM UTC+5:30, Chris Angelico wrote: > On Fri, Apr 11, 2014 at 1:17 PM, Rustom Mody wrote: > > > There are cultures -- far more pervasive than USENET in 2014 -- where > > top posting is the norm, eg > > > - Gmail makes top posting the norm. Compare the figures of g

Re: Teaching python to non-programmers

2014-04-10 Thread Chris Angelico
On Fri, Apr 11, 2014 at 1:17 PM, Rustom Mody wrote: > There are cultures -- far more pervasive than USENET in 2014 -- where > top posting is the norm, eg > - Gmail makes top posting the norm. Compare the figures of gmail and Usenet > users > - Corporate cultures more or less require top posting -

Ostracising bad actors (was: Teaching python to non-programmers)

2014-04-10 Thread Ben Finney
"Rhodri James" writes: > Sorry your post was the straw to break the camel's back this week, but > it is a complete pain to the rest of us. I have more than once > considered getting my reader to automatically discard anything with > "@googlegroups.com" in the message ID just to reduce the aggrava

Re: Teaching python to non-programmers

2014-04-10 Thread Rustom Mody
On Friday, April 11, 2014 4:10:22 AM UTC+5:30, Rhodri James wrote: > Sorry your post was the straw to break the camel's back this week, but it > is a complete pain to the rest of us. I have more than once considered > getting my reader to automatically discard anything with > "@googlegroups.

Re: Teaching python to non-programmers

2014-04-10 Thread Rhodri James
On Thu, 10 Apr 2014 21:52:53 +0100, wrote: Just awesome, not only do we have double line spacing and single line paragraphs, we've also got top posting, oh boy am I a happy bunny :) I'll leave someone3 else to explain, I just can't be bothered. Do you get paid to be a jerk, or is it ju

Re: Teaching python to non-programmers

2014-04-10 Thread pete . bee . emm
> > Just awesome, not only do we have double line spacing and single line > > paragraphs, we've also got top posting, oh boy am I a happy bunny :) > > I'll leave someone3 else to explain, I just can't be bothered. > > Do you get paid to be a jerk, or is it just for yuks? If the latter, yo

Re: Teaching python to non-programmers

2014-04-10 Thread Mark Lawrence
On 10/04/2014 18:53, pete.bee@gmail.com wrote: Don't underestimate the value of morale. Python is a scripting language. You don't need to teach them very much python to get something working, and you can always revisit the initial code and refactor it for better coding hygiene. Someday the

Re: Teaching python to non-programmers

2014-04-10 Thread Rustom Mody
On Thursday, April 10, 2014 9:24:48 PM UTC+5:30, Lalitha Prasad K wrote: > Dear List > > Recently I was requested to teach python to a group of students of GIS > (Geographic Information Systems). Their knowledge of programming is zero. The > objective is to enable them to write plug-ins for GIS

Re: Teaching python to non-programmers

2014-04-10 Thread pete . bee . emm
Don't underestimate the value of morale. Python is a scripting language. You don't need to teach them very much python to get something working, and you can always revisit the initial code and refactor it for better coding hygiene. Someday they might have jobs, and be required to learn things i

Teaching python to non-programmers

2014-04-10 Thread Lalitha Prasad K
Dear List Recently I was requested to teach python to a group of students of GIS (Geographic Information Systems). Their knowledge of programming is zero. The objective is to enable them to write plug-ins for GIS software like QGIS and ArcGIS. It would require them to learn, besides core python, P

Re: Experiences/guidance on teaching Python as a first programming language

2014-01-28 Thread David Combs
In article , Neil Cerutti wrote: >On 2013-12-17, Steven D'Aprano > wrote: >> I would really like to see good quality statistics about bugs >> per program written in different languages. I expect that, for >> all we like to make fun of COBOL, it probably has few bugs per >> unit-of-useful-work-don

Re: Experiences/guidance on teaching Python as a first programming language

2014-01-28 Thread David Combs
In article <20131216213225.2006b30246e3a08ee241a...@gmx.net>, Wolfgang Keller wrote: >> > And ever after that experience, I avoided all languages that were >> > even remotely similar to C, such as C++, Java, C#, Javascript, PHP >> > etc. >> >> I think that's disappointing, for two reasons. First

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-27 Thread Steven D'Aprano
On Thu, 19 Dec 2013 19:38:51 -0500, Roy Smith wrote: > Does anybody ever use D? I looked at it a few years ago. It seemed > like a very good concept. Sort of C++, with the worst of the crap torn > out. If nothing else, with the preprocessor torn out :-) > > Did it ever go anywhere? Apparently

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-20 Thread Ned Batchelder
On 12/20/13 6:58 PM, Dennis Lee Bieber wrote: On 20 Dec 2013 02:16:05 GMT, Steven D'Aprano declaimed the following: 2) Even for kernel developers, I believe that systems languages should be safe by default. You ought to have to explicitly disable (say) bounds checking in critical sections of

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Steven D'Aprano
On Thu, 19 Dec 2013 19:38:51 -0500, Roy Smith wrote: > In article <52b328f7$0$6512$c3e8da3$54964...@news.astraweb.com>, > Steven D'Aprano wrote: > >> Correct. The *great deal of trouble* part is important. Things which >> are the responsibility of the language and compiler in (say) Java, D, >>

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Rhodri James
On Fri, 20 Dec 2013 00:38:51 -, Roy Smith wrote: I disagree entirely (but respectfully). If you want to get down to the hardware where you can fiddle bits, you want as little getting between you and the silicon as possible. Every time you add a safety feature, you put another layer of *st

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Roy Smith
In article <52b328f7$0$6512$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > Correct. The *great deal of trouble* part is important. Things which are > the responsibility of the language and compiler in (say) Java, D, Rust, > Go, etc. are the responsibility of the programmer with

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Roy Smith
In article <52b365b6$0$6512$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: [some stuff] > where Unix went, so did C; [some more stuff] What he said. -- https://mail.python.org/mailman/listinfo/python-list

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Steven D'Aprano
On Thu, 19 Dec 2013 04:50:54 +, Mark Lawrence wrote: > If C is such a crap language, what does it says for the thousands of > languages that never got anywhere? Or did C simply have a far larger > sales and marketing budget? :) The sociology of computer languages is a fascinating topic. Like

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Chris Angelico
On Fri, Dec 20, 2013 at 7:42 AM, Gregory Ewing wrote: > A piece of code such as > >for (i = 0; i < numThings; i++) > total[i] += things[i]; > > is NOT improved by rewriting it as > >for (theLoopIndex = 0; theLoopIndex < numThings; theLoopIndex++) > total[theLoopIndex] += things

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Gregory Ewing
Wolfgang Keller wrote: In fact, thinking of it, a really good language should imho *require* verbosity (how about a *minimum* length - or maybe even a dictionary-based sanity check - for identifiers?), since that already keeps all those lazy morons away who think that "shortcuts are cool". No,

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Chris Angelico
On Fri, Dec 20, 2013 at 5:40 AM, Neil Cerutti wrote: > And another thing: How many other languages have their very own > calling convention? Pascal does (sometimes called the Win32 convention). ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Neil Cerutti
On 2013-12-19, Chris Angelico wrote: > On Fri, Dec 20, 2013 at 4:12 AM, Steven D'Aprano > wrote: >> But why is so much non-performance critical code written in C? >> Why so many user-space applications? > > Very good question! I don't have an answer. There are a few > "maybe-answers", but they mos

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Chris Angelico
On Fri, Dec 20, 2013 at 4:12 AM, Steven D'Aprano wrote: > But why is so much non-performance critical code written in C? Why so > many user-space applications? Very good question! I don't have an answer. There are a few "maybe-answers", but they mostly come down to "programmer didn't know of a vi

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread rusi
> On Thursday, December 19, 2013 9:46:26 AM UTC+5:30, Roy Smith wrote: > > rusi wrote: > > > Soon the foo has to split into foo1.c and foo2.c. And suddenly you need > > > to > > > understand: > > > 1. Separate compilation > > > 2. Make (which is separate from 'separate compilation') > > > 3. H

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Chris Angelico
On Fri, Dec 20, 2013 at 4:06 AM, Steven D'Aprano wrote: > Should some implementation decide to compile that away as dead > code, it would be perfectly allowed to. (Well, assuming that it > determined first that locals() actually was the built-in and not some > substitute, either by static analysis

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Steven D'Aprano
On Wed, 18 Dec 2013 17:15:30 +, Mark Lawrence wrote: > On 18/12/2013 08:18, Steven D'Aprano wrote: >> >> The C99 standard lists 191 different kinds of undefined behavior, >> including what happens when there is an unmatched ' or " on a line of >> source code. >> >> No compile-time error, no ru

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Steven D'Aprano
On Wed, 18 Dec 2013 17:33:49 -0500, Terry Reedy wrote: > On 12/18/2013 3:18 AM, Steven D'Aprano wrote: > >> We don't know what locals()['spam'] = 42 will do inside a function, > > I am mystified that you would write this. Context is everything. locals() doesn't just return any old dictionary.

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Chris Angelico
On Fri, Dec 20, 2013 at 3:20 AM, Steven D'Aprano wrote: > On Wed, 18 Dec 2013 19:51:26 +1100, Chris Angelico wrote: > >> On Wed, Dec 18, 2013 at 7:18 PM, Steven D'Aprano >> wrote: >>> You want to know why programs written in C are so often full of >>> security holes? One reason is "undefined beha

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Steven D'Aprano
On Wed, 18 Dec 2013 19:51:26 +1100, Chris Angelico wrote: > On Wed, Dec 18, 2013 at 7:18 PM, Steven D'Aprano > wrote: >> You want to know why programs written in C are so often full of >> security holes? One reason is "undefined behaviour". The C language >> doesn't give a damn about writing *cor

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Steven D'Aprano
On Wed, 18 Dec 2013 07:23:54 -0800, Ethan Furman wrote: > On 12/18/2013 12:18 AM, Steven D'Aprano wrote: >> And yes, I'm being pedantic. > > No, you're being an ass. My my, it doesn't take much of a challenge to the Holy Church Of C to bring out the personal attacks. -- Steven -- https://m

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Wolfgang Keller
> > I've never heard C syntax reviled quite so intensely. What syntax > > do you like, out of curiosity? > > Pascal, Python, if written by someone who uses semantic identifiers > and avoids to use C(++)/Java-isms. I've seen Eiffel as well (without > understanding it) and it didn't look ridiculous

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Wolfgang Keller
> I find it frustrating that Pythonistas shy away from regex as much as > they do. I find regular expression syntax frustrating. >;-> As long as I have the choice, I still prefer syntax like e.g. VerbalExpressions. That's made for actual humans like me. Sincerely, Wolfgang -- https://mail.pyt

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Dave Angel
On Thu, 19 Dec 2013 19:41:00 +1300, Gregory Ewing wrote: But it's not above inferring a dereferencing operation when you call a function via a pointer. If f is a pointer to a function, then f(a) is equivalent to (*f)(a) If the compiler can do that for function calls, ther

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread Gregory Ewing
Roy Smith wrote: I suspect what you mean is, "There are some things that don't make sense until you understand computer architecture". An example of that kind of thing from a different perspective: I learned Z80 assembly language by first learning Z80 *machine* language (my homebrew computer di

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread Gregory Ewing
Dave Angel wrote: C is a glorified macro assembler. So the -> operator is not analogous to the dot operator, it's Syntactic sugar: p-> a. Is really (*p).a But it's not above inferring a dereferencing operation when you call a function via a pointer. If f is a pointer to a function, then

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread 88888 Dihedral
Roy Smith於 2013年12月19日星期四UTC+8下午12時16分26秒寫道: > In article <07c6e6a3-c5f4-4846-9551-434bdaba8...@googlegroups.com>, > > rusi wrote: > > > > > Soon the foo has to split into foo1.c and foo2.c. And suddenly you need to > > > understand: > > > > > > 1. Separate compilation > > > 2. Make (wh

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread Roy Smith
In article , Gregory Ewing wrote: > Roy Smith wrote: > > even > > if you've got all the signatures of foo() in front of you, it can > > sometimes be hard to figure out which one the compiler will pick. > > And conversely, sometimes the compiler will have a hard > time figuring out which one y

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread Gregory Ewing
Roy Smith wrote: even if you've got all the signatures of foo() in front of you, it can sometimes be hard to figure out which one the compiler will pick. And conversely, sometimes the compiler will have a hard time figuring out which one you want it to pick! I had an experience in Java recent

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread Mark Lawrence
On 19/12/2013 05:09, rusi wrote: On Thursday, December 19, 2013 10:20:54 AM UTC+5:30, Mark Lawrence wrote: On 19/12/2013 04:29, rusi wrote: On Thursday, December 19, 2013 6:19:04 AM UTC+5:30, Rhodri James wrote: On Tue, 17 Dec 2013 15:51:44 -, Wolfgang Keller wrote: The only issue for me

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread rusi
On Thursday, December 19, 2013 10:20:54 AM UTC+5:30, Mark Lawrence wrote: > On 19/12/2013 04:29, rusi wrote: > > On Thursday, December 19, 2013 6:19:04 AM UTC+5:30, Rhodri James wrote: > >> On Tue, 17 Dec 2013 15:51:44 -, Wolfgang Keller wrote: > >>> The only issue for me was to figure out how

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread Mark Lawrence
On 19/12/2013 04:29, rusi wrote: On Thursday, December 19, 2013 6:19:04 AM UTC+5:30, Rhodri James wrote: On Tue, 17 Dec 2013 15:51:44 -, Wolfgang Keller wrote: The only issue for me was to figure out how to do in C what I already knew in Pascal. And I had to waste a *lot* more time and ment

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread rusi
On Thursday, December 19, 2013 9:46:26 AM UTC+5:30, Roy Smith wrote: > rusi wrote: > > Soon the foo has to split into foo1.c and foo2.c. And suddenly you need to > > understand: > > 1. Separate compilation > > 2. Make (which is separate from 'separate compilation') > > 3. Header files and libra

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread rusi
On Thursday, December 19, 2013 6:19:04 AM UTC+5:30, Rhodri James wrote: > On Tue, 17 Dec 2013 15:51:44 -, Wolfgang Keller wrote: > > The only issue for me was to figure out how to do in C what I already > > knew in Pascal. And I had to waste a *lot* more time and mental effort > > to mess with

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread Chris Angelico
On Thu, Dec 19, 2013 at 3:16 PM, Roy Smith wrote: > It's pretty common here to have people ask questions about how import > works. How altering sys.path effects import. Why is import not finding > my module? You quickly get into things like virtualenv, and now you've > got modules coming from y

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread Roy Smith
In article <07c6e6a3-c5f4-4846-9551-434bdaba8...@googlegroups.com>, rusi wrote: > Soon the foo has to split into foo1.c and foo2.c. And suddenly you need to > understand: > > 1. Separate compilation > 2. Make (which is separate from 'separate compilation') > 3. Header files and libraries and t

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread rusi
On Thursday, December 19, 2013 7:10:53 AM UTC+5:30, Roy Smith wrote: > Grant Edwards wrote: > > I've always felt that there are features in C that don't make a lot of > > sense until you've actually implemented a compiler -- at which point > > it becomes a lot more obvious why some thing are done

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread Mark Lawrence
On 19/12/2013 01:49, Roy Smith wrote: In article , Mark Lawrence wrote: I've never contemplated writing a compiler, let alone actually written one. It's like the comments along the lines of "you can't call yourself a programmer until you've mastered regular expressions". Who makes comment

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread Roy Smith
In article , Grant Edwards wrote: > On 2013-12-18, Chris Angelico wrote: > > > Well, okay. In C you can't have Foo.foo(). > > If "Foo" is a structure with a field named "foo" that is a pointer to > a function, then you can indeed "have" Foo.foo(). Sigh. This has gone off in a direction I ne

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread Roy Smith
In article , Mark Lawrence wrote: > I've never contemplated writing a compiler, let alone actually written > one. It's like the comments along the lines of "you can't call yourself > a programmer until you've mastered regular expressions". Who makes comments like that? As far as I can tell,

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread Roy Smith
In article , Grant Edwards wrote: > On 2013-12-18, Roy Smith wrote: > > In article , > > Grant Edwards wrote: > > > >> Ideally, you should also have written at least one functioning > >> compiler before learning C as well. > > > > Why? I've never written a compiler. I've written plenty of

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-18 Thread Chris Angelico
On Thu, Dec 19, 2013 at 11:49 AM, Rhodri James wrote: > It's sounds like you made, and are carrying on making, one of the classic > mistakes of software engineering Never get into a flame war in Asia, and never go up against a C programmer when segfaults are on the line! ChrisA -- https://mail.

  1   2   3   4   >