Mastering Object-Oriented Python
- 0 Some Preliminaries 3 examples, 56 lines
- 1 The __init__() Method 55 examples, 351 lines
- 2 Integrating Seamlessly …
See this: SortedContainers — sortedcontainers 0.6.0 documentation
Here's some text from the invitation.
You may find the the performance comparison and implementation details interesting because it doesn't use any sophisticated tree data structure or balancing algorithms. It's a great example of taking advantage of what processors are good at …more ...
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 ...While wrestling with Python's shelve module, I ran across ACID. Interesting thoughts. Plus what appears to be the related Tumblr blog: python sweetness. Also interesting. Not sure I can make heavy use of it right now, but it's helpful to see the thought process. I find the subject of shelve …
more ...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 ...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
Lazyweb: Django REST Framework vs. Tastypie. Thoughts? #django — Joe Dougherty (@modusjonens) February 17, 2014
"Request help w/ finding a reference or you can post a blog about how you can you have 2 oracle servers …more ...