Skip to content

Instantly share code, notes, and snippets.

View eyakcn's full-sized avatar

Song Peng eyakcn

  • Eventslin
  • Shanghai
View GitHub Profile

based on the principle of developer-first--putting your target developers’ interests ahead of all other considerations

By building on top of APIs that are designed with the developers’ interests at heart, you are able to save you and your developers a lot of work while laying down the building blocks for others to build on top of.

API-first design is about a series of best practices across companies and industries that prioritize a better developer experience (DX).

by using the RESTful API Markup Language (RAML) to describe them.

APIs used to be simply the technical ways that you achieved something in a business context, but now APIs have transformed into business drivers. Why? Businesses are looking to:

location … {
if ($http_x_real_ip != ''){
set $clientip $http_x_real_ip;
break;
}
if ($http_x_real_ip = ''){
set $clientip $remote_addr;
break;
}
proxy_set_header X-Real-IP $clientip;
@eyakcn
eyakcn / sayings.md
Created January 24, 2016 06:30
Sayings

There are only two hard things in Computer Science: cache invalidation and naming things.

-- Phil Karlton

@eyakcn
eyakcn / web-scale-it.md
Last active January 24, 2016 02:55
Web Scale IT

Gartner coined the term web-scale IT to describe the ways that large cloud companies such as Google, Amazon, and Facebook deliver seamless user services on a massive scale. The concept allows them to reduce time to market for IT services and lower infrastructure costs while increasing agility, improving their ability to stimulate IT culture change and boosting quality of service.

Elements commonly accepted as key components of an effective web-scale approach include an open approach to hardware, new software architectures, agile processes, a collaboratively aligned organization starting with DevOps, and a risk-embracing culture.

<input ref={node => { this.input = node; }} />
Things you should never do inside a reducer:
Mutate its arguments;
Perform side effects like API calls and routing transitions;
Calling non-pure functions, e.g. Date.now() or Math.random().
@eyakcn
eyakcn / 0_reuse_code.js
Created January 14, 2016 05:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console