Refactoring and Unit Testing

I do a fair amount of manual refactoring. I've used WebSphere Studio (Eclipse) to do some automated refactoring, so I have some experience in using IDE's which exploit Java's static type-checking.

However, the question of type checking in a dynamic language is interesting. I don't use a sophisticated IDE for …

more ...


Ways in which learning can be A Bad Thing™

Once I learned C++, all my C programming became poor-man's OO.

  • Every "class" became a C structure type.
  • Every class structure was implemented as a header file that defined the structure and a bunch of method functions.
  • Each method function would have a "self" argument, which was a pointer to …
more ...

Comments

In a recent code review, I saw a bizarre habit. The author defended it so vehemently, I gave up on trying to explain the needless confusion it caused. The author was one of those "I always do it this way, and I'm always right." people, so nothing was gained by …

more ...


Python OODB (Revised)

Simple object persistence (i.e., serialization to a file system) is what pickle, marshal and shelve do.

However, here's the next thing of some interest OODB's.

Zope's ZODB . The original OODB for Python, the backbone of Zope.

buzhug : "a fast, pure-Python database engine, using a syntax that Python programmers should …

more ...

Doctest beyond Python

This is something that elevates Doctest into the realm of Pattern. Perhaps even above that.

The idea is so elegant: the document is the test, and the test procedure is the document.

There's a DRY clarity to the whole thing that is rather exciting. It is an elegant application of …

more ...


Agile Testing Goodies from PyCon 2006

A number of testing frameworks were used. The Agile Testing tutorial provides a path through the toolsets, showing what you can do, and how you should do it.

Unit Testing: [Nose ], <{filename}/blog/2005/11/2005_11_09-compare_and_contrast_round_3_revised.rst>

Acceptance Testing: [FitNesse ]

Regression Testing: [TextTest ]

Functional Testing: [twill ]. A thorough analysis is …

more ...