You aren't bored 'because coding', you're bored because what you're coding doesn't excite you. For some people that's okay - it pay's a wage, and they find other outlets for excitement (or none).<p>If that's not you, find something to get excited about. Volunteer, join some clubs, get a job completely outside your sphere (not so easy I know). If it's something you can apply your coding skills to, fantastic! If it's something that requires you to learn new skills, even better!<p>But whatever it is, use it to learn from, not because it's 'your purpose'. Your purpose will find you, you just need to put yourself out there so it has a chance. (And locking yourself into a military career is not it, IMHO, as although it has its own merits, it has greater drawbacks.)