Why Computer Programming is Hard II

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.


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: