He/Him | Hu/En/some Jp | ASD | Bi | C/C++/D/C#/Java

  • 0 Posts
  • 21 Comments
Joined 6 months ago
cake
Cake day: March 16th, 2024

help-circle
  • XML has its strengths as a markdown format. My own formatted text format ETML is based on XML, as I could recycle old HTML conventions (still has stylesheet as an option), and I can store multiple text blocks in an XML file. It’s not something my main choice of human readable format SDL excels at, which itself has its own issues (I’m writing my own extensions/refinements for it by the name XDL, with hexadecimal numbers, ISO dates, etc.).



  • The “Don’t repeat yourself” mantra is also used with documentation, this leads to documentation which you first have to read and learn unless you frequently want to step into issues of the documentation assumed you read prior parts and didn’t just searched how to do XYZ.

    Also while I used the more clean code oriented XML DOM implementation for my D XML parser (or at least copied such code as it was abandoned by its original creator), I planned a much simpler system for my SDLang parser. While everything originates from the DLElement abstract class, I didn’t go overboard with the interfaces, etc.









  • ZILtoid1991@lemmy.worldtoProgrammer Humor@lemmy.mlgot him
    link
    fedilink
    arrow-up
    34
    arrow-down
    1
    ·
    4 months ago

    Why is multiple levels of indentation bad?

    IDK, but if the reason is “to break stuff into multiple functions”, then I’m not necessarily writing yet another single-use function just to avoid writing a comment, especially in time critical applications. Did that with a text parser that could get text formatting from a specifically written XML file, but mainly due to it being way less time critical, and had a lot of reused code via templates.









  • Russia is way worse. I’m in Hungary, and our government tries everything to scrub information about stuff they don’t like, all while putting Project 2025-tier evil stuff into our constitution, meaning it could be pretty much be undone by an armed rebellion, which will very unlikely thanks to what I call “weaponized doomerism” (pushing people into inaction via depression, crushed protests, and underfunded health care system), and “political gaslighting” (basically the method behind “you’ll be more conservative as you get older”).