Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9124907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:40:32+00:00 2026-06-17T06:40:32+00:00

I am considering using YAML for storing chronological data in the following way: –

  • 0

I am considering using YAML for storing chronological data in the following way:

- entrydate: 5:55 AM 1/1/2013
  title: blog post 1
  tags: [yaml, json]
  description: what have i learned today 1
  location: scottsdale
- entrydate: 5:55 AM 1/2/2013
  title: blog post 2
  tags: [general,software-development]
  description: what have i learned today 2
  location: scottsdale

This YAML document will get updated daily by a C# application which collects the data and at the end of week/month a Python program calculates some metrics about the blogging progress .

This answer to the question Is this valid YAML? suggests that YAML supports the notion of partial documents and if formatted as above each blog entry would considered a separate entity. Now I am concerned about two things.

  1. Would YAML parsers be able to identify each entity (or blog entry , in this case) by the entrydate as it is in the top of each element? I ask this because in both yamllint and online yaml parser, the parsed output was reordered and the entrydate was lumped in together with other items.
  2. Is YAML a complete overkill for this task? I feel it is apt, because the data stored would be in human readable format and if need be I could edit the document by hand easily.

PS: I considered JSON for this, but I felt YAML is too easy on the eyes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T06:40:33+00:00Added an answer on June 17, 2026 at 6:40 am

    Would YAML parsers be able to identify each entity (or blog entry , in this case) by the entrydate as it is in the top of each element? I ask this because in both yamllint and online yaml parser, the parsed output was reordered and the entrydate was lumped in together with other items.

    I’m not entirely clear what you’re asking here. This is valid YAML, and it will result in a list of dictionaries. Each dictionary will have several keys (description, entrydate, locations, tags, title). Once you have read the data in with a YAML parser you can reference any of those keys; which one appears “first” in the output is typically unimportant. Generally, dictionary implementations do no preserve the order in which keys are added.

    The ordering of the list will be preserved, so the entry with entrydate = 5:55 AM 1/1/2013 will always be the first in the list (as long as it is the first entry in the file).

    Is YAML a complete overkill for this task? I feel it is apt, because the data stored would be in human readable format and if need be I could edit the document by hand easily.

    You’re trying to store structured data in a simple, readable format. That’s what YAML is for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm considering using HSQLDB version 1.8.x in a desktop app for storing local data.
I'm considering using YAML as part of my next iPhone application, but I haven't
We're considering using SSIS to maintain a PostgreSql data warehouse. I've used it before
I'm considering using Core Data for an app I'm writing. However, after reading the
I am considering using django-cms to implement the following scenario: Admins can create hierarchical
I am considering using class extension as a way to connect my model with
I am considering using the WebMail helper for sending email. Is there any way
I am considering using the following rules for a casual website. 8-20 chars long
I was considering using Dart for a Framework I was going to write. One
We are considering using Cassette in our asp.net web application which might be accessed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.