Archives
Python - Command Line Progress Bar With Percentage and Elapsed Time Display
Submitted by corey@goldb.org (Corey Goldberg) on Wed, 13/01/2010 - 16:46.Here is a Python module which produces an ascii command line progress bar with percentage and elapsed time display.
code:
progress_bar.py
to use:
from progress_bar import ProgressBar
p = ProgressBar(60)
p.update_time(15)
print p
p.fill_char = '='
p.update_time(40)
print p
results:
Mocks, the removal of test detail, and dynamically-typed languages
Submitted by Brian Marick on Wed, 13/01/2010 - 18:41.Simplify, simplify, simplify! – Henry David Thoreau(A billboard I saw once.)Part 1: Mocking as a way of removing wordsOne of the benefits of mocks is that tests don’t have to build up complicated object structures that have nothing essential to do with the purpose of a test. For example, I have an entry point [...]
