This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, when reading my db data, I convert all bytes to characters and it works well. However, shall we perform a check that the field value is numeric/not numeric? I mean this for extensibility. If we give for granted that each field value is a string, what would it happen tomorrow if a numeric field would be added? Am I asking too many questions? Marco
Don't fall into the trap of trying to make sure that anything that can happen will be handled by your program. If something isn't stated in the assignment spec, just leave it alone. Not only will you not get any extra points for doing extra stuff, but you also open yourself up to extra bugs and issues which can bring down your score or even fail you. There is a balance between making a good design and doing everything possible. Lot of people hardcode the db schema information into the data access class, while others made some sort of meta information class to use. Either approach seems to be valid, but keep it tempered. Don't get carried away. Any time you hear your brain mutter "extensibility" kick it. (Or at least question it).