Asking developers if they're "productive" is absolutely the wrong metric. Developers, well, love writing code. Lots of code. But in reality, code is a liability, not an asset. (That Bill Gates quote about airplanes and weight, etc.)
I'm sure developers are not measuring their own productivity in lines of code. Rather how fast tasks get completed or how easy it is to modify code etc