What are you working on this week? (Sep. 29, 2024)
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearWE
    webbureaucrat
    3w ago 100%

    I am a YAML hater. The biggest thing about YAML that keeps biting me recently is this:

    script:
        - echo "a key: a value"
    

    throws parse errors because of the colon, even though it is inside a quoted string.

    But there are lots of reasons to hate YAML.

    Honestly, an underrated one to me is I just hate significant whitespace. I don't want to use any language that supports it.

    4
  • What are you working on this week? (Sep. 29, 2024)
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearWE
    webbureaucrat
    3w ago 100%

    I'm working on a fault-tolerant JSON5 parsing library in the service of a JSON5-to-JSON and JSON5-to-YAML transpiler.

    My goal is to never write any more YAML ever again.

    7
  • Which protocol or open standard do you like or wish was more popular?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearWE
    webbureaucrat
    2mo ago 100%

    I'd think they'd get it back by not having to share their ad rev with Google. There's something to be said for the economies of scale Google benefits from but with cloud services that's not as relevant as it was.

    1
  • Hi, folks! I'd like to set up my emacs with `lsp-mode` and `lsp-ui`, but I am finding myself in some analysis paralysis. Ruling out the Palantir language server because it's deprecated and because it's Palantir, that still leaves me with *five* [language server recommendations from `lsp-mode`](https://emacs-lsp.github.io/lsp-mode/page/languages/). Anybody have any opinions they'd like to share? Any really bad experiences I should avoid? How do I configure your favorite? (Feel free to assume I know very little about configuring emacs.) If it makes a difference, I am a [poetry](https://python-poetry.org/) user and a religious `mypy --strict` user. Thanks in advance!

    16
    10
    Which protocol or open standard do you like or wish was more popular?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearWE
    webbureaucrat
    2mo ago 100%

    I'll give my usual contribution to RSS feed discourse, which is that, news flash! RSS feeds support video!

    It drives me crazy when podcasters are like, "thanks for listening to our audio podcasts. We also have a video feed for our YouTube subscribers." Just let me have the video in PocketCasts please!

    23
  • rust
    Rust 2mo ago
    Jump
    XHTML 1.0 Transitional parser?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearWE
    webbureaucrat
    2mo ago 100%

    I wish I could be more help. My advice is you need a better grade of general purpose HTML parsing library, possibly even a browser emulator, rather than a lib specifically for XHTML 1.0 transitional or a converter.

    In my Python web automation course in college we used BeautifulSoup and I think maybe mechanize. I think either of those would probably be robust enough to do what you’re trying to do, but if it has to be Rust I’m not sure what’s out there. Otherwise you could upgrade to Selenium or something.

    Or if you’re trying to do something fairly simple and you don’t need to parse the whole thing but it’s still a little too complex for plain old regular expressions, you might be able to build a simple parser with the rust pest crate, but of course I would absolutely not recommend trying to build your own full-featured XHTML parser.

    1