• WildPalmTree@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    21 hours ago

    Because this is a simplified example? Maybe you create the object in one place (saying something more realistic like “2015” or whatever your inexperience or AI told you to) and use getTime() at a later place where you thought you created it in a correct way.

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      20 hours ago

      (saying something more realistic like “2015” or whatever your inexperience or AI told you to)

      User input is probably the big one where this API is gonna get stress-tested…