• GTG3000@programming.dev
    link
    fedilink
    Русский
    arrow-up
    0
    ·
    1 year ago

    Why use const max = (x, y) => x > y ? x : y instead of function max(x, y) { return x > y ? x : y } ?

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

    Reminded of how truly little I know about programming despite the time have spent doing it

    Ugh. I’ll never be any good.

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

      Listen, in industry programming (and for personal projects if you want to get them done), the thief is the way to go. By all means, challenge yourself to understand each of these functions, but 99% of day to day development will not look like this.