Either of these require programming on a computer with web-browser, games, chat, etc. Programming embedded hardware does not solve the problem of working in a distracting environment. Self-discipline, determination, and perhaps other inner qualities are necessary and always have been.