News for hackers. Stuff that matters.
Re:Show HN: A JavaScript function that looks and behaves lik... by Bjartr on Wednesday September 27, 2023 @09:47AM (#37674606)
`greetingMsg`? `greeting`? Naming the other one differently? Splitting the work done with that message and the work done with this message into their own functions?
Re:Show HN: A JavaScript function that looks and behaves lik... by wruza on Wednesday September 27, 2023 @02:04PM (#37678634)
Frankly, this always sounded like a readability issue seeking a readability problem. Splitting because the names clash, because you decided to name things, because a one-liner was less than ideally readable.