Hi, I'm Harlin and welcome to my blog. I write about Python, Alfresco and other cheesy comestibles.

Python - Using the -m Option to Run Modules

Do you ever make use of the Python interpreter's many options? These are often overlooked but if you ever take the time to see what's available, I think you'll be pleasantly surprised.

If you call python from the command line using --help, you'll see a number ...

Read More

Python - Using the timeit Module for Quick Speed Evaluations

The timeit module allows for a developer to time a few lines of Python code. It can be used as either a Command-Line Interface or a callable method in a Python script.

From the command line:

$ python -m timeit "[i for i in range(10000)]"

100 loops, best ...

Read More

Python - Basic Unit Testing and Test Driven Development

In case you're unfamiliar with it, code testing is proving your code works as expected. Unit testing does this too, of course, but in much smaller bites. There's also this other thing called Test Driven Development. There are also many other subjects that have to do with code ...

Read More