- 『ビジネススクールでは学べない 世界最先端の経営学』
- http://www.amazon.co.jp/dp/4822279324/
これを読んでる。
この本の中で「トランザクティブ・メモリー」という話がでてきた。概要は以下のコラムに書いてる。
| #include <arpa/inet.h> | |
| #include <ifaddrs.h> | |
| #include <iostream> | |
| #include <netdb.h> | |
| #include <sys/socket.h> | |
| #include <sys/types.h> | |
| int main() { | |
| struct ifaddrs* addr; | |
| getifaddrs(&addr); |
| #!/usr/bin/env jjs | |
| /*#################################################################################################################################### | |
| # As Nashorn does not have http capabilities through XMLHttpRequest (DOM API), we have to use regular Java classes instead. | |
| # This sample shows how this can be acheived without depending on any third party libraries. Just a standard Java 8 JDK. | |
| # Make sure to have JAVA_HOME/bin on your PATH for the shebang to work. Then just chmod +x away and run... | |
| # Alternatively if you're on a non *nix OS, start with jjs -scritping httpsample.js | |
| ####################################################################################################################################*/ | |
| var url = "https://api.github.com/users/billybong/repos"; | |
| var response; |
| map $time_iso8601 $upstream { | |
| default "app-b.example.net"; | |
| "~T(0|1[01])" "app-a.example.net"; | |
| } | |
| server { | |
| listen 80; | |
| server_name _; | |
| location / { |
| map $time_iso8601 $upstream { | |
| default "app-b.example.org"; | |
| "~T(0|1[01])" "app-a.example.org"; | |
| } | |
| server { | |
| server_name app.example.org; | |
| location / { | |
| proxy_pass http://127.0.0.1; | |
| proxy_set_header Host $upstream; |
これを読んでる。
この本の中で「トランザクティブ・メモリー」という話がでてきた。概要は以下のコラムに書いてる。
パターンとはその言語が抽象化できなかった敗北の歴史である。 しかしどんなに優れた言語であってもあらゆる繰り返しに勝てるわけではない。 人は必ずメタ繰り返しを欲するからだ。 そしてそれはRustも例外ではない。
ここでは、OOPでも知られているパターンよりも、Rustに特有のパターンを思いつく限りまとめてみた。名前は適当。