penalising lines of code can easily lead to a shorter, but much more opaque piece of software,
Yes indeed, hence the weighting:
Pretend that you are being charged per line of (pseudo)code, per use case to test (10x more) and per bug fixed (10x more still)
Yes indeed, hence the weighting: