Profile cover photo
Profile photo
黃大衛
56 followers
56 followers
About
大衛's posts

Xbox One amazing features:

Fast.
Multitasking.
Snap mode.
Runs three operating systems.
Instant conversational voice recognition.
Live TV.
New Kinect gestures.
Internet Explorer.
Skype.

Post has attachment
+Douglas Crockford

What do you think about requiring ternary conditional ?: operations to be surrounded with parentheses, especially if they contain compound expressions?

Parentheses should always be required because they alert the reader to look at the whole operation.

How to make fewer errors at the stage of code writing. Part N2:
http://www.viva64.com/en/a/0072/

Instead of
    A < B ? 1 : 2
require
    (A < B ? 1 : 2)

Instead of
    (A < B && A < C) ? 1 : 2
require
    (A < B && A < C ? 1 : 2)

Instead of
    alert(A < B ? 1 : 2);
require
    alert((A < B ? 1 : 2));

Post has attachment
"We will retire Messenger in all countries worldwide in the first quarter of 2013."

:(

http://blogs.skype.com/en/2012/11/skypewlm.html

Post has shared content

Post has attachment
Opera Dragonfly - Experimental build with event listener inspection and function source tooltips

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has shared content
Arg, %E2%80%8B!
Why are there zero-width spaces in Facebook URLs?

Over on Facebook, +Steven Pemberton observes that Facebook are adding zero-width spaces into URLs mentioned in posts, so you can't cut and paste them into web browsers, but must click through the Facebook redirector instead. This is performed on the text of a URL string, not the hyperlink, which links as expected to the redirector.

(Zero-width spaces are special characters that don't take up any space or display on the screen, but they form part of the sentences they're in so you'll pick them up if you copy a sentence to the clipboard.)

Because I can't link to his post so that you can see it, here's a relevant quote about his experience:

"I just tried it in three browsers. It looks like Chrome elides the extra characters, but Firefox and Opera both kept them in, thus giving a 404. This is what it looked like in Firefox: http://www.guardian.co.uk/educ%E2%80%8Bation/2011/oct/24/university-a%E2%80%8Bpplicants-drop-tuition-fees"

Whatever you think about redirectors, this particular practice is plainly deceptive. It's as bad and naive as redacting PDFs by overlaying black rectangles. I'm sorry to say this, but Facebook do not seem like a company that respect their users. I don't believe that the trade-off here in favor of data collection--in what's pretty much a corner case--is worth the aggressive message it sends to savvy users.

Update -- I amended the title to be less inflammatory, as I allow for the possibility this is a naive engineering choice with unfortunate consequences.
Wait while more posts are being loaded