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 ...





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 ...


Manual Testing -- Bad Idea

The question of testing came up recently. The description of the process sounded like manually "testing" some complex web application. When trying to work out manual "testing", I find it necessary to use scare quotes. I'm not sure there's a place for "manual testing" of any software.

I know that …

more ...


Computers, Power and Space Heaters

Just a safety note for folks who use a lot of electricity. In the winter, you might have computers and space heaters. Or you might (like me) live "off the grid". We use an inverter with a transfer relay to switch between battery power and grid power. Recently, we had …

more ...