Link Details

Link 884717 thumbnail
User 1068999 avatar

By stanislav0
via stackful.io
Submitted: Nov 29 2012 / 13:08

So, here is my thought experiment -- whenever you have the urge of building a custom file format, just don't. Don't use your language or platform's built-in serialization/pickle/shelve feature to dump objects to a file. Don't rely on XML, JSON, or YAML serializers to try and make your file format human-readable since most of the time it doesn't help at all. Don't come up with a custom language that people have to learn in order to work with your program. And, God forbid, don't create a custom (undocumented, of course!) binary format that nobody else can read. Just use your SQL skills (I think all developers have those nowadays) and store your data in a SQLite database.
  • 2
  • 0
  • 304
  • 125

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (2)



Voters Against This Link (0)



    Spring Integration
    Written by: Soby Chacko
    Featured Refcardz: Top Refcardz:
    1. Search Patterns
    2. Python
    3. C++
    4. Design Patterns
    5. OO JS
    1. PhoneGap
    2. Spring Integration
    3. Regex
    4. Git
    5. Java