Line Break column

Just the urls, ma'am.

Line Break column

Postby quantus » Fri Feb 12, 2016 12:19 am

http://www.theregister.co.uk/2016/02/10/line_break_ep2/

We'll crack on with this appetizing anecdote sent in by Ian:

A long time ago I was working on the driver for a touchscreen controller chip. This driver was supplied to our customers as sample source code which they then incorporated into their product.

One part of the touchscreen controller code detected whether the stylus (pen) is touching the screen (down) or not (up) to determine whether to send points to the operating system. I was updating the end-of-scribble detection code, and decided to change a variable name before it went to customers. I reordered the words in it to isPenUp. I'll leave it to you work out the original variable name.

Well done, Ian, for avoiding that cockup. Lesson: It's said that there are only two hard things in computer science: cache invalidation and naming things. 'nuff said.

If it slipped through, I guess it would've been a 3rd hard thing...
Have you clicked today? Check status, then: People, Jobs or Roads
User avatar
quantus
Tenth Dan Procrastinator
 
Posts: 4653
Joined: Fri Jul 18, 2003 2:09 am
Location: San Jose, CA

Return to Links

Who is online

Users browsing this forum: No registered users and 1 guest

cron