This is the final post in a series of 3 covering 15 exercises that provide a sense of a programming language’s idioms and “feel.” For newcomers, if you can’t “jump in” and tackle these exercises in a particular programming language, don’t embarrass yourself by claiming to know that language. For more experienced developers, these programs should be tough enough to require problem solving: try to embrace the language’s idioms.
- Write a program that outputs the current date and time to a Web page as a reversed ISO 8601-formatted value (i.e.: “2006-06-16T13:15:30Z” becomes “Z03:51:31T61-60-6002″). Create an XML interface (either POX or WS-*) to the same.
Educational goals of exercise 11:
- Write a client-side program that can both scrape the above Web page and the XML return and redisplays the date in a different format.
Educational goals of exercise 12:
HTTP get, string parsing.
- Write a daemon program that monitors an email account. When a strongly-encoded email arrives that decrypts to a valid ISO 8601 time, the program sets the system time to that value.
Educational goals of exercise 13:
Encryption, Email, OS libraries, daemons