Stack Overflow is where bright minds meet. I wish this site publish a book containing questions and answers of different users.
Answers given by the programmers who use Stack Overflow amaze us for many reaosns: their great ideas, solid analysis and accurate answers; much of which is usually not found in other books or tutorials.
You gave so many different possible correct solutions that the phrase, "there are many ways to kill the chicken," comes to mind.
Publishing a book such as this would benefit students, beginners, intermediate and master programmers alike.
Agree or disagree? Possible or impossible?