I’ve written in the past about why computer programming is hard. I think at the time I blamed invisible things like .files and \r\n.
A client sent me the following string of text to include in his application:
“We’ll add it to our database”
What’s wrong with that String? Can anyone tell?
Here’s a hint. Compare it to this one:
“We’ll add it to our database”
Exactly! The single quote in we’ll is a curly quote in the first sentence! I’m guessing the client probably uses Microsoft Outlook and it automagically makes straight quotes into curly quotes. Usually not such a big deal until you start encoding the string into other character sets and wondering why the world is broken.
That is why programming is hard. That, and refactoring algorithms to take advantage of multicore processors.
lol, you killed me there dude