I bought it because I love electric cars and what they stand for, and I want to help contribute to the new movement by putting my money where my mouth is. I also test drove it and fell in love with it. Really fun car.
I can definitely afford it. The payment is $300, insurance is $100. That's a lot of money but I can afford it no problem. I do have other debt though - I owe the government a few thousand in taxes and those will be paid over the course of several months. Once I finish college at the end of the year (majoring in computer science) I'll have anywhere from 17k to 25k in student loans, depending on whether or not I pay the rest of my education mostly with cash. I'm not too worried about the student loans because I plan on living at home and paying them off within a year. Already working as a software developer intern, and the pay can only get better from here on out.
Would it be better to pay the car and loans off over a longer period of time and instead invest some money starting now? Or is it better to pay off debts before investing? Sorry for this slight deviation from the original question.
If the car works for you, keep it. It's possibly (with exceptions I cannot think of) the most efficient car you can buy at over 100MPGe. Even if you could ride a bike (and nothing's STOPPING you from doing that), riding a bike builds aerobic fitness and leg muscle mass, but doesn't give you the same upper body muscle mass that lifting will.
You could take the equivalent money you might have spent fueling a 30-35MPG car and start routing that money to either before-tax or after-tax investment savings, if you want to see payback start accumulating.
Don't forget: when you score that big programming career you are aiming for, you will have pre-tax 401k opportunities you may not have now. Selling the LEAF won't matter one way or another - you want to be in a pre-tax 401k, that's the priority, not necessarily selling the LEAF.
One other advantage of the LEAF that only time will tell: You may be able to drive it many years longer (and cheaper) than a gasoline-engined car. The batteries will last a very long time (I got 15 years out of the battery pack in my hybrid) and the electric motor can run indefinitely.