• 0 Posts
  • 10 Comments
Joined 6 months ago
cake
Cake day: May 19th, 2024

help-circle


  • it_depends_man@lemmy.worldtoProgrammer Humor@lemmy.mlAI's take on XML
    link
    fedilink
    Deutsch
    arrow-up
    1
    ·
    edit-2
    2 months ago

    I’m not sure now that I think about it, but I find this more explicit and somehow more free than json. Which can’t be true, since you can just

    {"anything you want":{...}}
    

    But still, this:

    <my_custom_tag>
    <this> 
    <that>
    <roflmao>
    ...
    

    is all valid.

    You can more closely approximate the logical structure of whatever you’re doing without leaving the internal logic of the… syntax?

    <car>
    <tyre> air, <valve>closed</valve>  </tyre>
    <tyre> air, <valve>closed</valve>  </tyre>
    <tyre>      <valve>open</valve>  </tyre>
    <tyre> air, <valve>closed</valve>  </tyre>
    </car>
    

    Maybe I just like the idea of a closing tag being very specific about what it is that is being closed (?). I guess I’m really not sure, but it does feel nicer to my brain to have starting and closing tags and distinguishing between what is structure, what is data, what is inside where.

    My peeve with json is that… it doesn’t properly distinguish between strings that happen to be a number and “numbers” resulting in:

    myinput = {"1":"Hello",1:"Hello"}
    tempjson = json.dumps(myinput)
    output = json.loads(tempjson)
    print(output)
    >>>{'1': 'Hello'}
    

    in python.

    I actually don’t like the attributes in xml, I think it would be better if it was mandatory that they were also just more tagged elements inside the others, and that the “validity” of a piece of xml being a certain object would depend entirely on parsing correctly or not.

    I particularly hate the idea of attributes in svg, and even more particularly the way they defined paths.

    https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths#curve_commands

    It works, but I consider that truly ugly. And also I don’t understand because it would have been trivial to do something like this:

    <path><element>data</element><element>data</element></path>
    


  • it_depends_man@lemmy.worldtoProgrammer Humor@lemmy.mlAI's take on XML
    link
    fedilink
    Deutsch
    arrow-up
    16
    arrow-down
    4
    ·
    2 months ago

    It is very cool, specifically as a human readable mark down / data format.

    The fact that you can make anything a tag and it’s going to be valid and you can nest stuff, is amazing.

    But with a niche use case.

    Clearly the tags waste space if you’re actually saving them all the time.

    Good format to compress though…


  • it_depends_man@lemmy.worldtomemes@lemmy.worldSelf-confidence
    link
    fedilink
    English
    arrow-up
    19
    ·
    4 months ago
    1. if a random comment on the internet is enough to destroy

    your dream

    then it was a weak and shitty dream. Get a new one.

    1. do it anyway. Who cares. You know what’s the worst that could happen? You try, and it doesn’t work out and then you can look back at it and consider it “gave it a good shot, didn’t work out”. And then you can point to all the people who still sit on their couch and didn’t even try.

    2. do it.




  • it_depends_man@lemmy.worldtomemes@lemmy.worldHe deserves better
    link
    fedilink
    English
    arrow-up
    71
    arrow-down
    1
    ·
    5 months ago

    The show runner insisted on telling “their version of the story”.

    Which… let’s put it like this:

    If you’re making a TV series about a book series written by a world famous author, and you think you can do a variation / “your take” on the story, because you think you’re just that great of a writer, artist, director, etc., then you better actually be on his level.


  • it_depends_man@lemmy.worldtomemes@lemmy.worldEvery day.
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    5 months ago

    1984 literally has a manifesto describing what’s happening.

    In fact, the brainwashing of the kids in 1984 to report on their parents having / reading / discussing “controversial media” is a major element of the dystopia. Those media are not explicitly named, but I don’t think they have to be.