I was reading the above blog and a little shiver went up my spine. It's been raining the whole day, and that could have been the chill of the night air, but I doubt it.
I like to read code when it's simple and easy to understand, if I can understand the intent of the author without too much deciphering. I'd like to consider the consumer of my code to be the next programmer, rather than the computer.
If I saw
String text = new Scanner( new File("poem.txt") ).useDelimiter("\\A").next();
for the first time, I'd be trying to figure out what the intent is. It just didn't feel right to use a "Scanner" when the intent is not to scan. What's wrong with putting those 4 lines into a common util library ?
Anyway, I'm blogging it here so that if I do see it, I'd spend less time trying to decipher it.