I am working on making a list of all the common programming tasks that any regular developer works with in real world application development. Code that you work with in most regular LOB applications repeatedly. Even if it's not so common, and you think it is fairly worthwhile to add it to the list, please do so.
Let me start with:
- Reading a text file from disk, load it on to a string
- Saving a string to a text file
- Serialize a business object to XML
- Deserialize XML from string and/or disk to a business object
- Validate an XML string against an XSD schema
now it's your turn.
Update: Let me say why I want this list. I want to create a handy reference of very efficient code for each of these tasks, once I have a sizable number of tasks. Because each time I write code to do one of those tasks I can simply refer to my code reference. I don't want my code to be different in multiple places. My step 2 is to write efficient and elegant code for all of these tasks.
I guess I should have made this a blog post. Is SO a wrong place for this?