I see people talking about doas saying it’s just like sudo but with less features. I’m just wondering if there is any situation where you should use doas or if it’s just personal preference.

  • tabular@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    1
    ·
    7 months ago

    Less lines of code needed means less chances of errors and potential vulnerabilities (if number and quality of eyeballs were the same)

    • taladar@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      7 months ago

      Also only really applies if you are comparing programs in the same programming language as some programs have lines that are significantly more expressive than others. Conversely, some languages have constructs that are significantly more bug-prone than others (e.g. for loops with explicit integer indices instead of higher order functions like map or iterators to iterate over a collection).