• aksdb@feddit.de
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Basically every program that deals with some form of user input will come across strings. Be it to print something to the screen, write something to a file, read something from a file, read something from the user interface (even if it’s stdin). Even most non-user-facing tools (daemons, drivers, etc) have to deal with strings often enough, even if “just” for something like writing log or debug entries.

    For me it’s hard to come up with any application where I don’t need strings sooner or later. Typically sooner than later.

    • INeedMana@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      But this is high level. You shouldn’t rely on strings or user input down in the mission critical part of the program

      • aksdb@feddit.de
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Do you separate that? I mean if the idea is to use C only outside of user interaction, then maybe. But is this a realistic scenario? If I write my whole application/library in C, user interaction is part of the application nonetheless. Maybe not what you consider “mission critical” from a program-reliability standpoint. But still mission critical from a user-experience standpoint. Because the whole application is worthless, if it cannot be used.