Profile

Cover photo
Dong Liu
Attended Univ. of Saskatchewan
62 followers|51,782 views
AboutPosts

Stream

Dong Liu

Shared publicly  - 
 
"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."
Distributed Computing · Download PDF version of this article. March 10, 2015. Volume 13, issue 3. There is No Now. Problems with simultaneity in distributed systems. Justin Sheehy. "Now." The time elapsed between when I wrote that word and when you read it was at least a couple of weeks.
1
Add a comment...

Dong Liu

Shared publicly  - 
 
Saturday night at home, watched Nicholas Negroponte's TED talk, a 30-year history of the future, for 2 times.
MIT Media Lab founder Nicholas Negroponte takes you on a journey through the last 30 years of tech. The consummate predictor highlights interfaces and innovations he foresaw in the 1970s and 1980s that were scoffed at then but are ubiquitous today. And he leaves you with one last (absurd? brilliant?) prediction for the coming 30 years.
1
Add a comment...

Dong Liu

Shared publicly  - 
 
Which code to use, 201 or 303, when POST to create a new resource?
1
Add a comment...

Dong Liu

Shared publicly  - 
 
Make the moment live with livestamp
Livestamp.js is a neat library that update your moment ().fromNow() timestamps with js timer. By default, the update interval is one second, which is too short considering that the from now time shows update every minute. If you set the interval by $.livest...
1
Add a comment...
Have him in circles
62 people
Dong Dai's profile photo
Andy Wang's profile photo
Yan zhang's profile photo
Thrust Retreat's profile photo
Elder Matias's profile photo
Mike Kelly's profile photo
Leigh Griffin's profile photo
Guobao Shen's profile photo
Raymundo Pena's profile photo

Dong Liu

Shared publicly  - 
 
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.
View original post
1
Add a comment...

Dong Liu

Shared publicly  - 
 
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.
1
Add a comment...

Dong Liu

Shared publicly  - 
 
"There is a becoming of continuity, but no continuity of becoming." - A. N. Whitehead
1
Add a comment...
 
Check out the pdf slides. 
1
2
Benjamin Bouillé's profile photoMatt Dragon's profile photo
Add a comment...

Dong Liu

Shared publicly  - 
 
As I thought when first time logging in https://trello.com, it is built on #mongodb  and #nodejs .
We Help the World's Best Developers Make Better Software.
1
Add a comment...
People
Have him in circles
62 people
Dong Dai's profile photo
Andy Wang's profile photo
Yan zhang's profile photo
Thrust Retreat's profile photo
Elder Matias's profile photo
Mike Kelly's profile photo
Leigh Griffin's profile photo
Guobao Shen's profile photo
Raymundo Pena's profile photo
Education
  • Univ. of Saskatchewan
    Computer Science, 2004 - 2013
Links
YouTube
Other profiles
Work
Occupation
Software Engineer
Basic Information
Gender
Male