It's all in how you approach programming. If you view it as a puzzle and enjoy finding new ways to optimize some workflow it can be very enjoyable. Yes there are tedious moments, but those goes with just about any career out there and I'd argue that programming has a lot less tediousness compared to other jobs out there.
The question to ask yourself, is if you are finding programming not fun, is this really the career path for you? Don't waste your time doing something you don't enjoy.