Life is like computer programming.
You write code all your life, not entirely sure what will come of it, but to try to realize whatever it is you want to achieve. And sometimes everything is working fine, and sometimes you're really just taking time to write code, and sometimes, those red letters appear that you've got an error and your program won't run.
And sometimes all it takes is a semicolon, and other times it's NullPointerException and you have no idea what's wrong and you spend a lot of time debugging and searching for solutions on the internet or from people around you.
And then maybe you'll solve your problems again and you'll press play and everything will be alright and so you'll keep writing code until the next time you forget to instantiate a variable.
And sometimes you feel proud of yourself for figuring out how to write code. And most of the time, you'd rather be eating a giant pepperoni pizza, or sleeping, than be programming.
That is why life is like computer programming.