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

  • 1 Post
  • 30 Comments
Joined 8 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.).





  • That’s why I often recommend D instead.

    Has a much more C-style syntax, except much more refined from the years of hindsight. The catch? No corporate backing, didn’t jump on the “immutable by default” trend when functional programming evangelists said for loops are a bad practice and instead we should just write recursive functions as a workaround, memory safety is opt-in (although “safe by default” can be done by starting your files with @safe:), some of the lead devs are “naive centrists” who want to “give everyone a chance at coding even if they’re bad people (nazis)”, implementing new changes to the lang has slowed down significantly up until the departure of Adam D Ruppe and the drama surrounding it, 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.








    • A non-AI generated image - it communicates to artists that they’re not welcome, while Linux is getting there in support for artists (Krita, LMMS, etc.).
    • A debugger with a GUI - no, I don’t care about writing shell scripts to automate debugging.
    • Server-side decorations on Gnome - just add an option for it FFS!
    • A way to easily recover from a crash during an update - I was lucky that I could do it from the command line, but my Ubuntu still likes to crash the VM host if I open Nautilus.
    • Drivers.
    • Linux devs not throwing a temper tantrum for a driver not being GPL. I know, that would be the ideal, but corporations gonna corporate.

    Also web-native apps are a web 2.0 mistake, and lead to the abandonment of many portable GUI frameworks in favor of the “what if your pops didn’t had to install Word Processor, and instead just had to type wordprocessor.com into his browser” idea of some techbro. Do you know why your ÜBERGAMERMOUSE Ultrautility is 250+MB? Because they’re all Electron apps!




  • ZILtoid1991@lemmy.worldtoProgrammer Humor@lemmy.mlgot him
    link
    fedilink
    arrow-up
    34
    arrow-down
    1
    ·
    6 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.