Showing posts with label book. Show all posts
Showing posts with label book. Show all posts

Saturday, May 31, 2014

Still Keeping to Pygame Despite Great New Kivy O'Reilly Book (for now)


Since I wrote about Kivy six months ago, my son and daughter have continued to make strong progress with Pygame.  For IDEs, they've both moved to PyCharm with its awesome code completion and easy integration with GitHub.  My son is making progress with object oriented programming and recursion.

Kivy is much more powerful than Pygame.  It is also harder to use.  Although the documentation is comprehensive, only the tutorials on Pong and Paint are geared toward beginners.  It also not designed to teach programming concepts to new programmers.  Kivy is geared more toward intermediate to advance programmers that want to get a mobile app up quickly. The new O'Reilly book, Creating Apps in Kivy,  by Dusty Phillips is great.  However, most people new to programming will get stalled around chapter 4.  Although the text is easy to follow and the code examples are clear, the concepts are dense.  Just as an example, in chapter 2 of this thin book, Dusty rips into list comprehensions.  While the example is easy to understand, a new programmer is better off dealing with for loops and list iteration.

There's many other places where Dusty teaches us a valuable concept, but I think it is too much, too soon for young developers.  This said, I've been gearing up for my son''s summer by going through the Kivy book and I plan to introduce him to Kivy later in June.

Kivy makes use of a Python file, which works great in PyCharm, and a kv language file, which does not work great by default.  To get the kv language syntax highlighting and tabs working properly in PyCharm, you need to install the kv settings file.  This makes the development process much easier.  I could never get the kv language settings working properly in Emacs.    After 20 years of using Emacs, I find myself grabbing PyCharm more and more.  It's amazing to me that even at my age, I find myself moving to new tools.  I've even moved off of the Emacs key mappings and am using the default PyCharm keymaps.  JetBrains has done a nice job.

I've also gone through the Packt Publishing book, Kivy: Interactive Applications in Python.  The O'Reilly book is much better, clearer, easier to read, with less errors in grammar.  It's also newer.  The O'Reilly book does focus on Python 3, which I don't think is a good thing since most Kivy development is still done with Python 2.7.  Though, I haven't run into any problems following the Python 3 examples.


Monday, March 10, 2014

Program Arcade Games Pygame/Pygame Book by Dr. Paul Craven


Dr. Paul Craven has written a nice book and site for college students learning to program.  He focuses on Python and Pygame.

It looks like a great curriculum for adults.

It's quite different from my curriculum which is targeted at children between 9 and 16.   The upper end of my curriculum is a moving target as my son gets older.

Since Dr. Craven is teaching computer science at Simpson College, he has a great pool of students ages 18 to 22 to experiment with and refine his curriculum.  It looks like a great class for college students.

His lessons on classes and sprites look like they're a nice next steps for more advanced children that have completed my curriculum.  I've been teaching my son about modules and libraries.  I've taken a different approach from Dr. Craven, but his approach seems fine for adults and possibly some children.



Sunday, October 9, 2011

Bruce Eckel's Python Patterns

From this free book, by Bruce Eckel I also learned about code dojos.

https://bitbucket.org/BruceEckel/python-3-patterns-idioms

Tuesday, September 27, 2011

John Zelle and Python Programming: An Introduction to Computer Science




More awesomeness from John Zelle - found his slides for  Python Programming: An Introduction to Computer Science, 2nd Edition.

The book is great and the slides were a really nice find.  In addition to the slides for individual chapters to the book, the slides from SIGCSE 2003 were also incredible.