For a fairly quickly implementable web product logic (include basic auth, profiles, blogs, dynamic pages - they don't count to main logic, however are necessary), I usually end up writing ~40% of the code, remaining is code-reuse or available in choice of development framework or at some corner of github.