Unfortunately, coding can be a non-productive use of time. If you're not taking active steps against it becoming so, it is probably a non-productive use of time. This is one of the core insights of the Lean Startup folks that is valuable to all of us: building stuff does not necessarily move the needle for the business, and the difficulty of building stuff bears no relation whatsoever to the business benefits realized by building it.