If you really like coding or writing, you shouldn't need to force yourself to do it.
Building up on that, you can't control if the next task you have is going to be a tedious or smooth one. If you have a bug, or have to parse a CSV file in your assembly language program, then you just gotta do it. Sometimes there may be a way around it, but most often there isn't. Otherwise, you'd be able to circumvent the whole task in the first place.
You might think you like all ice cream, until someone hands you some anchovies ice cream or something.