Mastering Object-Oriented Python

Coming soon.
This is relatively deep, under-the-hood stuff for folks who want to master the Python feature set.
Here's the overview of what you get:
  • 0 Some Preliminaries 3 examples, 56 lines
  • 1 The __init__() Method 55 examples, 351 lines
  • 2 Integrating Seamlessly …
more ...



Preconceived Notions, Perceptual Narrowing, The Einstellung Effect

Read this http://en.wikipedia.org/wiki/Einstellung_effect Great article in Scientific American on this.

I didn't realize that sometimes I do spend time trying to defeat the Einstellung effect. Not a lot of time. But some time.

When confronted with gnarly design problems, I have the same bad habits …

more ...


Shiny New MacBook Pro

Wow. Just Wow. An almost seamless technology change. Almost.
The old MacBook Pro (dual core 4Gb RAM) was struggling to keep up. Struggling. It had been dropped once, so there was a ding in the corner. The trackpad "click" wasn't reliably clicking. It was shaky.
Nothing that couldn't be cured …
more ...

The Visitor Design Pattern and Python

Epiphany.

In Python, with iterators, the Visitor design pattern is useless. And a strongly-ingrained habit. Which I'm trying to break.

Here's a common Visitor approach:

class Visitor:
    def __init__( self ): ...
    def visit( self, some_target_thing ): ...
    def all_done( self ): ...

v = Visitor()
for thing in some_iterator():
    v.visit(thing)
v.all_done()

If we …

more ...

Enterprise JavaScript -- Not the best idea

See this:
JavaScript is a swampy foundation for your enterprise codebase: My latest column at SD Times http://t.co/a82aUquk0d — Larry O'Brien (@lobrien) February 20, 2014

The article lists reasons why Enterprise JavaScript is a recipe for disaster. "Finally, there's legacy integration..." This is the point.
In particular, JavaScript …
more ...

Django and REST -- Tastypie vs. Django REST

Ouch. What a difficult question.
Lazyweb: Django REST Framework vs. Tastypie. Thoughts? #django — Joe Dougherty (@modusjonens) February 17, 2014
more ...

TCP/IP Mysteries and user support

It's not clear, actually, if this involves a TCP/IP "Mystery". What it may involve is a simple lack of ability to communicate. Or something.
I got this question:
"Request help w/ finding a reference or you can post a blog about how you can you have 2 oracle servers …
more ...