Favorite Method to store data?
-
Not a Programming question.. just a question out of curiosity. I've been working on a Windows Service, I had the need to dump some data to a file. I started creating a binary file... however now that I'm 5 hours into debugging it.. I'm starting to think I should have used XML. What's your preference? Is it different based on the situation and the language you're using?
-
Not a Programming question.. just a question out of curiosity. I've been working on a Windows Service, I had the need to dump some data to a file. I started creating a binary file... however now that I'm 5 hours into debugging it.. I'm starting to think I should have used XML. What's your preference? Is it different based on the situation and the language you're using?
Rarely, if ever, was there the need for me to store my files in binary format. I use XML as my preferred file format unless needs dictate otherwise.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook "There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib "Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"
-
Not a Programming question.. just a question out of curiosity. I've been working on a Windows Service, I had the need to dump some data to a file. I started creating a binary file... however now that I'm 5 hours into debugging it.. I'm starting to think I should have used XML. What's your preference? Is it different based on the situation and the language you're using?
Depends on the data :)
xacc.ide
IronScheme a R5RS-compliant Scheme on the DLR
The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach." -
Not a Programming question.. just a question out of curiosity. I've been working on a Windows Service, I had the need to dump some data to a file. I started creating a binary file... however now that I'm 5 hours into debugging it.. I'm starting to think I should have used XML. What's your preference? Is it different based on the situation and the language you're using?
Depends on the data but if it's conf, preferences, ... I prefer XML
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
-
Not a Programming question.. just a question out of curiosity. I've been working on a Windows Service, I had the need to dump some data to a file. I started creating a binary file... however now that I'm 5 hours into debugging it.. I'm starting to think I should have used XML. What's your preference? Is it different based on the situation and the language you're using?
I'll second Mustafa's suggestion of XML. You can't beat a format that supports highly-structured data that you can debug with Notepad if necessary. I reserve XML for data that I'm persisting, with the idea of loading it into my application. For pure logging situations (output only), I'll dump the data as simply formatted text, or as HTML.
Software Zen:
delete this;
-
I'll second Mustafa's suggestion of XML. You can't beat a format that supports highly-structured data that you can debug with Notepad if necessary. I reserve XML for data that I'm persisting, with the idea of loading it into my application. For pure logging situations (output only), I'll dump the data as simply formatted text, or as HTML.
Software Zen:
delete this;
Gary R. Wheeler wrote:
You can't beat a format that supports highly-structured data that you can debug with Notepad if necessary
Sorry to be pedantic, but you can't debug with Notepad. Well - not without you doing some serious hacking on it beforehand.
Deja View - the feeling that you've seen this post before.
-
Not a Programming question.. just a question out of curiosity. I've been working on a Windows Service, I had the need to dump some data to a file. I started creating a binary file... however now that I'm 5 hours into debugging it.. I'm starting to think I should have used XML. What's your preference? Is it different based on the situation and the language you're using?
(*) SQLServer (*) Access (*) XML As far as possible, try clinging on to a standard database.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson