Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That edge case sounds like a reasonable tradeoff you would make for such a simple and readable generic data format.

Escaped json probably hits that sweetspot by being a bit uglier than yaml, but 100 times simpler than xml, though.



Mh, since I just commented about ansible, you just made XML-based ansible flash in front of my eyes. I think I'm in a bit of pain now.

    <tasks>
        <ansible.builtin.copy notify="restart minio">
            <src> files/minio.service </src>
            <dest> /etc/systemd/system/minio.service </dest>
            <owner> root </owner>
            <group> root </group>
            <mode> 0x644 </mode>
        </ansible.builtin.copy>
    </tasks>
But you could use XSLT to generate documentation in XHTML from your playbooks about what files are deployed, what services are managed...


I will die on the hill than writing out ansible.builtin. are characters of my life I'll never get back, and refuse to. If it's built in why do I have to qualify it?!

Also, watch out: 0x644 != 0644 which is the mode you meant




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: