News for hackers. Stuff that matters.
Re:Death by design patterns, or On the cognitive load of abs... by pmontra on Monday May 29, 2023 @06:23PM (#36118804)
Many languages have string interpolation, which looks more similar to C++'s << than to printf

  puts "You have #{itemCount} items of type #{itemType}."

  print(f"You have {itemCount} items of type {itemType}.")

  console.log(`You have ${itemCount} items of type ${itemType}.`)

There are no comments on this comment yet.