Four Lines of Code in an Afternoon
The other day, my pair and I managed four lines of code in a whole afternoon. But they were the right lines of code, so we were very happy.
We wanted to add charts to an application creating MS Word Documents. We knew a little bit about automating Excel and updating Word's Content Controls. The four lines were
- set the source cells for an Excel chart
- copy the chart to the clipboard
- select a content control in Word
- paste from the clipboard
Agile is the art of maximizing work not done, so that was a good afternoon's work.