Hello all,
I just started with my project for
SCJD. I started with reading the header from the db file. I know there is a tool on this site and I also used it but I think I also need to put into the deliveries the reading header piece of code(don't I?) since this is how I read the record's length and fields' number, and since the tool is not my own creation I decided to implement my own solution for it:
an enum as follows, which should be the only thing changed in case of changes over this section of the file structure:
[edit] don't post complete (real) code snippets (and use the code-tags if you want to post a code sample)
and a class which, for now, just makes use of it:
[edit] don't post complete (real) code snippets (and use the code-tags if you want to post a code sample)
I skipped my code comments. Now, my question is, is this to complex or less readable, or shouldn't I have considered adding the header reading part?
I chosed this design from the desire of separating what is likely to be changed from what is less likely.