To build a habit of coding more, try a daily goal:
https://wakatime.com/goals
Reply on news.ycombinator.com