Thanks very much for organizing, and paying for, the dinner last
night. It was a pleasure meeting you and the other guys that showed
up. I enjoyed the lively conversations.
At dinner I mentioned the application that we recently rolled out, the
California Instant Rebates application
One of the guys asked about it wanting to know how many source lines
of code. I didn't mention last night that this app was a ground-up
rewrite of version one of the application, which was written (by
others) in Java/J2EE. Here's a sloc comparison summary:
23,150 lines of java code
16,090 lines of jsp code
39,240 lines of code total
(no documentation, no unit tests)
14,928 lines of python code*
3,677 lines of unit test code
6,376 lines of django templates
24,981 lines of code total
*(includes plenty of doc strings)
Now it's not really a fair comparison because the Python version has
more features than the Java version did and it was designed by
another team. The Python version is also much easier to debug
because of the unit testing framework, documentation and sane design.
All things considered, this app has been a huge success for me, my
team and our clients. Three cheers for Python and Django!