Think Python
An anonymous reader writes "In a neverending effort to spread the word about free quality online programming books, here is a Python programming book. 'How to Think Like a Computer Scientist: Learning With Python', by Allen B. Downey, Chris Meyers, and Jeffrey Elkner is a copylefted work available in multiple formats at Green Tea Press: HTML , PDF, LaTeX. Compliments of the online books what's new page."
Thanks to Copylefted Online Books, I now can read the books before I buy.
On my bookshelf, seven of the books were bought after I read their online version.
I live in a third world country where there is no Towers bookstore, nor Borders, nor Barnes - there is NO WAY for you to know how good a book is without first buying the book - the bookstore here do NOT allow you to read the book !
The idea of Copylefted books really help me, and many others who are in the situation of buying books not knowing if the books are good or not.
Thanks again !
Muchas Gracias, Señor Edward Snowden !
I think part of the problem is the name `Computer Science', which gives a wrong impression of what the core of the poodle really is. That's like calling Astronomy `Telescope Science'. I have met so many people who didn't want to study CS at all - they just wanted to learn `installing Linux and setting up a web server'. This has regrettably put universities under pressure to change their curriculum...
Some universities (eg. Edinburgh) have started calling it `Informatics', which is much more appropriate. (In fact in Germany, and probably elsewhere, it was always called `Informatik'.)
Maybe there should be CS *and* Informatics.
Uhm, guess that was offtopic.
Feynman once said during an interview that some 'sciences' were really pseudosciences, in that they have never made any laws, eg social science, is computer science a real science with laws, or a pseudoscience?, if its a science, does anyone know of any of these laws?
I'm a rabbit startled by the headlights of life
The lower-level concepts you have described probably fit better into a degree of Electronics and Electrical Engineering than Computer Science. Indeed, the style of EE courses has shifted from electronic component based logic to programming in languages like C++.
In many ways, CS and EE are extremely similar.
Does anyone know if the author of the book gets paid by Green Tea for donating or "copylefting" the book?
I'm working on the theory of collecting tax deductions for copylefted art, and this contribution is a great example because it closely resembles historically donated items. If the author donates the artwork to the right organization - he could by my reading of the IRS be paid in tax deductions.
Does anyone know of cases in Open Source / Copyleft where tax deduction are being used to help cover expenses?
I'm sure that the competition - i.e. Microsoft uses every tax deduction in the book. Are Open Source contributers playing by the same rules - or are we handicapping ourselves by ignoring the tax benefits of donation?
If anyone can provide examples of copylefted donations and how you documented it for tax purposes - I'm interested.
I believe there are Billions of dollars in potential government funding just waiting to be collected by Open Source artists. Lets go get it!
AIK
I wouldn't make a broad statement that CS is lacking in CS degrees... I know my CS degree contained:
Computer theory, system design and architecture, analysis of algorithms, algorithm design, data structures, compiler design, AI, networking theory, files and databases, mathematics (up to multi-variable calculus, discrete structures/combinatorics, linear algebra, numerical analysis, statistics and probability), software engineering, languages (LISP, C, C++, Java, Prolog, Cobol, Assembly), computer graphics, to name a few things - there's more but it's been quite a few years and that's what comes to mind at the moment. I'd say that's pretty well-rounded for a CS program.
My first impression of your review was quite favorable. You started off well with an engaging style.
Unfortunately, you spent far too much time writing about the merits of Lunix and Open Source than reviewing the book. Using the review text as a platform for your views on the GPL was inappropriate and didn't tell me what I wanted to know about - the book.
The few paragraphs on the content of the books were sadly lacking and offered little insight into the use of the book for learning about CS or Python.
I'd say your review scores 1 out of 5.
Actually, Python and Perl are very different:
- Python is strongly dynamically typed, while Perl is weakly typed
- Python has a small number of syntactic constructs, while Perl has many
- In Python, everything is an object
blah, blah, blah
C is a system level language, and is still used widely, especially in OS and VM coding. The whole point is for C to remain stable. I certainly don't see Python being used in these applications, and it doesn't deserve to be used at the system level either.. Python is nothing but a glorified scripting language.
mogorific carpentry experiments
I think part of the problem is the name `Computer Science', which gives a wrong impression of what the core of the poodle really is.
Well, yeah.
I'd make the following analogies:
CS is a science that deals with unravelling how information and logical systems function and developing frameworks to understand them. CS are most likely to determine the boundaries at which things can happen and to lay out how to practically approach that boundary.
Software Engineering is an engineering discipline that deals with manipulating those systems to perform a needed task. They take the work of the CS and design systems to address specific problems. Quick and dirty is just fine, provided that all the needs are being met.
Coders assemble the systems that the SEs design and informaticians maintain those systems.
There's overlap among all of them to some degree, and plenty of people do them all, but from an education point of view, if you mix them together, you get a mess - and most schools mix them together. It was easier to mix them in the past because the field was narrow. But now, you just can't do it.
CS has become very deep, and you can't get into any of the real work if you spend your time dealing with SE and coding practices. SE has become very deep as well and you don't want these folks getting bogged down with the NP completeness proofs and whatnot, or with learning the programming tools too much. There's enough to do in all three areas that they need to be treated as different but complementary disciplines...
If you already know Perl, then once you learn Pythin you will regret every minute you ever wasted on Perl, and never want to look at another line of that disgusting language again.
Perl is such a badly designed language, that's tragically wasteful of your time and effort, and pointlessly complex for no good reason other than ensuring the job security of unskilled laborers who should be working at McDonalds anyway.
Hi. Thanks for mentioning the other versions of "How to think..."! Actually, the Java version was the original (I used it at Colby College) and then I wrote the C++ version to help students prepare for the AP exam. Jeff Elkner translated the Java version into Python, and Chris Meyers translated some of the later chapters and added some new material. So the Python version is truly the result of a Free Content collaboration (I have never met Jeff or Chris in person). I am in the process of editing and expanding the Java version, in preparation for the AP Exam's switch to Java. The web page for the Java version is: http://thinkapjava.com Cheers, Allen Downey
I REALLY dislike any language that depends on white space. Miranda and Haskell are two other examples of this. Its a pain to move blocks around and anyone who doesn't use an editor with auto-indent is screwed. Also, unless tabs are set to spaces, computers with differnt tab stops will see your code differently, which can be a problem if code is emailed, etc.
It isn't a pain to move blocks around. At least not more so than any other language when one is coding properly. Nor does not having auto-indent cause any more problems here than any other language when coding properly. Operative words, coding properly. The nice thing about Python is you're assure that the programmer got his blocks mostly right.
As for the space/tab problem that is simple, no tabs. Done. Tabs are bad. They are very bad. Just say no to Tabs.
As has already been mentioning, not too much one can teach about memory management and pointers with python. . .
Oddly enough it is with Python that I finally grasped the concept of pointers. The nice thing about Python is that one isn't constantly trying to do the dereference shuffle to do the right thing. This makes copying lists a little sticky but that is an acceptable trade off compared to scratching one's head over "Ok, this function requires a variable, a pointer-to-a-variable, another variable which I'm going to dereference from this pointer here...."
Sounds kinda strange as a complaint, but too much is built in. I have this complaint about java too. As an example, I would much rather have an early homework be a sorting algorithm and then have them reuse this algorithm in other homeworks than let them just type "xxx.sort()". Not that this isn't a great feature for experienced programmers, its just that begining students should have to do sorting, reversing, duplicating, etc themselves at first.
Not only is this an odd complaint it is also a non-issue. There is nothing that precludes you from requiring a home-brew sort to be used in your assignments. It begins something like this, "Yes, Python is nice in that it has a sort function. However, knowing how a sort function works really helps one understand computers and programming. So, today's class we're going to program our own sort function which we'll later use in a larger program." The nice thing is then you can say thisn, "Then we'll compare what we've written with the default sort function..." It is an unimaginative teache who cannot figure that one out. It has been pretty common practice in all of the programming classes I've taken over the years. High school, college and vocational all did it while I was learning BASIC, Turbo Pascal and C.
-- Grey d'Miyu, not just another pretty color.