Profile cover photo
Profile photo
Dong Liu
64 followers
64 followers
About
Dong's posts

Post has attachment
POST was used in Google Survey API in order to set a resource state. PUT makes more sense. 

Post has attachment

Post has attachment
"The opposite approach to this waving-off of physical problems is to assume that almost nothing can be counted on, and to design using only formal models of a very adversarial world. The "asynchronous" model that FLP was proved on is not the most adversarial model on which to build a working system, but it is certainly a world much more hostile than most developers believe their systems are running in. The thinking goes that if the world you model in is worse than the world you run in, then things you can succeed at in the model should be possible in the real world of implementation."

Post has shared content
Always use single when it is valid. 
I was discussing with some friends about single quotes and double quotes in JS. While the JSON specification tells us to double quote keys and values, linting tools like Google's closure compiler are recommending single quotes.

Lookin' for an answer, greppin' the Internets, I only found answers like "it's programmer's choice". What's your opinion about this?

For JSON, it is easy. Always use double quotes.

For JavaScript, I recommend using double quotes for strings that make sense outside of the program: error messages, urls, html fragments, etc.

Use single quotes for strings that only make sense to the program: symbols, property names, character constants, etc.

The advice "Programmer's choice" is usually very bad advice. Always look deeper.

Post has attachment

Post has attachment
Ten years ago, all the major email service providers increased their free storage size as a response to Google's 1GB offer.  Microsoft increased to 250MB, and Yahoo increased to 100MB.

Post has attachment
Saturday night at home, watched Nicholas Negroponte's TED talk, a 30-year history of the future, for 2 times.

Post has attachment
"There is a becoming of continuity, but no continuity of becoming." - A. N. Whitehead

Post has attachment
Which code to use, 201 or 303, when POST to create a new resource?

Post has attachment
Check out the pdf slides. 
Wait while more posts are being loaded