I ran into an interesting and silly issue today. First, I invite you to form your own opinion about the following block of code.
source: https://github.com/microsoft/TypeScript/blob/main/lib/lib.es5.d.ts, line 53
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
* @param number A numeric value.
declare function isNaN(number: number): Boolean;
Go ahead — stare at it for a bit. Think about what this function is supposed to do. Read the commented description again. Then stare at it some more. At this point, I’m scratching my head and second guessing myself, with a “What the heck?” thrown in for good measure.
If you haven’t figured out my point yet, consider this: A rock doesn’t need proof that it’s a rock. It simply is. So… if logic serves… why would I need to test a number to see if it’s a number? Kind of defeats the whole purpose, don’t you think?
I figure when I get some time I’ll create a pull request to fix this interface and function, because this is just silly. Please, feel free to beat me to it. Because this is not a good reason to use @ts-ignore.
Today I geeked out with some very cool people over at the University of North Florida. Special thanks to Bayer White and his cohorts for putting together a great event full of fun, learning and awesome content.
My talk was of course about Cortana… but a significant break from the regular rhetoric. Today, it was all about Cortana Skills and proof positive that Cortana is/can be useful (and intriguing!) on Android and iOS as well. As promised to those folks who braved my one hour session, here is the slide deck that we covered. Thanks again for attending!
… GRRRRRRR! Sometimes I really, really, really don’t like how other people make things so hard.
I recently needed to add a colleague as an Administrator on a FB App. Until then he didn’t even have a Facebook account and only created one for this purpose. So, once he verified that he was a real person we thought it would be straight forward to add him.
It wasn’t. Not. No. Never. Not by a long shot.
I’m going to spare you all the gory details (like his account getting deactivated twice and FB constantly logging him out), as well as some lost hair by simply saying this: Make sure that anyone you want to add as a Developer or Administrator to a FB App goes to http://developers.facebook.com and creates an app. All you need to do is click the button, provide a bogus name that it will accept, click “Next” and wait for these screen to finish downloading.
Takes about 15 seconds. Not several hours and choice curse words.
For more information, see here: http://facebook.stackoverflow.com/questions/8595181/when-adding-an-admin-to-the-application-i-get-the-error-message-name-is-not-a-v