I tend to hate both railroads and adventures where the DM is obviously pulling the whole thing out of his ass.
I'd argue it's a balancing act. Players should broadcast their intentions ahead of time so the DM can prep for next session and occasionally throw him a bone if he spent time creating a unique dungeon or something. And GMs should incorporate stuff the players want into games and let them have a W if they solve a problem in an unexpected way.