<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by tomonari takahashi on Medium]]></title>
        <description><![CDATA[Stories by tomonari takahashi on Medium]]></description>
        <link>https://medium.com/@tomonari_t?source=rss-359880b52845------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*B70ZrRWrFpLMxEWiiM6eog.jpeg</url>
            <title>Stories by tomonari takahashi on Medium</title>
            <link>https://medium.com/@tomonari_t?source=rss-359880b52845------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 10:32:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tomonari_t/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[[日本語翻訳]Life Cycle of an Ethereum Transaction]]></title>
            <link>https://medium.com/kyuzan/%E6%97%A5%E6%9C%AC%E8%AA%9E%E7%BF%BB%E8%A8%B3-life-cycle-of-an-ethereum-transaction-de5434b3363a?source=rss-359880b52845------2</link>
            <guid isPermaLink="false">https://medium.com/p/de5434b3363a</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[翻訳]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[tomonari takahashi]]></dc:creator>
            <pubDate>Fri, 14 Dec 2018 08:20:30 GMT</pubDate>
            <atom:updated>2019-04-03T04:37:56.356Z</atom:updated>
            <content:encoded><![CDATA[<h3>[日本語訳] Ethereum / イーサリアム：トランザクションのライフサイクル</h3><h4>この記事は、「<a href="https://medium.com/blockchannel/life-cycle-of-an-ethereum-transaction-e5c66bae0f6e">Life Cycle of an Ethereum Transaction</a>」を作者の許可をいただいて翻訳したものです。Ethereumのトランザクションがどのように処理されながらネットワークに伝わっていくかを学ぶことができます。</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L6bWzgq4o28oKjE4_PDt-w.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/QfHEWqPelsc?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Tiraya Adam</a> on <a href="https://unsplash.com/search/photos/mountain?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>トランザクションは、Ethereumブロックチェーンに限らずあらゆるブロックチェーンを考える上で重要な概念です。 Ethereumブロックチェーンとのやり取りには、トランザクションを実行しブロックチェーンの状態を更新します。 Ethereumでトランザクションを実行したときに、実際に何が起こっているのか考えてみたことはありますか？今回はサンプルのコードを用いてトランザクションについて、詳しく見ていきます。この記事では、以下の内容について解説します。</p><ol><li>トランザクションがあなたのブラウザ/コンソールから生成されEthereumネットワークを経て再びあなたのブラウザ/コンソールに戻るトランザクションの一連の流れを理解する</li><li>独自のノードを実行する代わりにMetaMaskやMyetherwalletなどのプラグインを使用した時、トランザクションがどのように処理されるのかを理解する</li><li>MetaMaskなどのプラグインを信頼しない場合、どうすればよいか</li></ol><p>この投稿は、あなたがEthereumの基本的な知識を持っていること、アカウント、GAS、契約などの知識があることを前提としています。なので、これらの概念については詳しく説明しません。あなたがEthereum開発をしたことがない場合は、<a href="https://hudsonjameson.com/2017-06-27-accounts-transactions-gas-ethereum/">この記事</a>が役立つかもしれません。この記事では簡単なdappを構築する方法も学べます。またこの記事は、自分でトランザクションを実行したことがある人は理解がより深まります。トランザクションというのは、“あなたがある人やあるコントラクトにEtherを送る”といったものです。トランザクションの他の例は、dappとやりとりする時です。たとえば、<a href="https://www.zastrin.com/simple-ethereum-voting-dapp.html">ここ</a>に行っていくつかのトークンを購入すると、それがトランザクションになります。この記事で用いるコードであなたが候補者に投票すると、それもトランザクションになります。</p><h3>1. Etereumトランザクションの全貌</h3><p>では、ここから下に示したコードを実行したと仮定して、この関数呼び出し/トランザクションがどのように処理され、ブロックチェーンに記録されるのか、全体の流れをたどってみましょう。コードの全体は<a href="https://github.com/maheshmurthy/ethereum_voting_dapp/blob/master/chapter2/contracts/Voting.sol">ここ</a>で確認することができます。このコントラクトは選挙コントラクトです。立候補者を最初に初期化し、誰でもその立候補者に投票できるようになっています。投票の履歴はブロックチェーンに記録されます。</p><pre>Voting.deployed().then(function(instance) {<br>  instance.voteForCandidate(&#39;Nick&#39;, {gas: 140000, from: web3.eth.accounts[0]}).then(function(r) {<br>    console.log(&#39;Voted successfully!&#39;)<br>  })<br>})</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*5yLpmDXlwySJOahxqP2epw.png" /></figure><p>あなたのコンピュータ上でEthereumクライアント（GethまたはParity）をローカルに実行しており、TestnetまたはMainnetに接続しているEthereumクライアントがあり、コントラクトアドレスとABIにアクセスしてトランザクションを実行できる状態になっていると仮定して解説を続けます。</p><p>dappを作ったことがある人にとっては、上記のコードは馴染みのあるものだと思います。ブロックチェーン上にデプロイされているVotingというコントラクトがあります。このコントラクトをインスタンス化して、voteForCandidateというメソッドを実行し、このコントラクトに候補名、gasLimit、およびこのトランザクションを実行するアカウント情報を渡します。関数名に書いてある通り、この関数は立候補者に投票するために使用され、投票履歴はブロックチェーンに記録されます。この呼び出しを分解し、このJavaScript関数を実行するとなにが起こっていくのか順に説明します。</p><h4>1. Raw Transaction Objectを作る</h4><p>voteForCandidate関数呼び出しは、以下のコードに書いてあるように、まずRaw Transaction（rawTxn）を生成します。 Web3ライブラリは、Raw Transaction Objectを作るために使われます。</p><pre>txnCount = web3.eth.getTransactionCount(web3.eth.accounts[0])<br>var rawTxn = {<br>    nonce: web3.toHex(txnCount),<br>    gasPrice: web3.toHex(100000000000),<br>    gasLimit: web3.toHex(140000),<br>    to: &#39;0x633296baebc20f33ac2e1c1b105d7cd1f6a0718b&#39;,<br>    value: web3.toHex(0),<br>    data: &#39;0xcc9ab24952616d6100000000000000000000000000000000000000000000000000000000&#39;<br>};</pre><p>では、Raw Transaction Objectが持つフィールドとそれに紐づくデータを見ていきましょう、</p><p><strong>nonce</strong>：各Ethereumアカウントには、アカウントが実行したトランザクションの総数を記録するためのnonceというフィールドがあります。nonceは新しいトランザクションごとにインクリメントされ、nonceによりネットワークはトランザクションの実行順序を知ることができます。 nonceはリプレイプロテクションにも使用されます。</p><p><strong>gasPrice</strong>：トランザクションのために支払うGASの単位あたりの価格です。Mainnet上でトランザクションを実行する場合は、<a href="https://medium.com/@ethgasstation">ETH Gas Station</a>が提供する便利なこの<a href="https://ethgasstation.info/">サイト</a>で、適切なgasPriceを設定するのがおすすめです。gasPriceの単位はGWei、0.1〜100Gweiの範囲で設定します。gasPriceについてよく理解していない人は一旦別のサイトで理解を深めて、この記事を読み進めることをおすすめします。この記事の後半を理解する上でgasPriceはとても重要な概念になります。</p><p><strong>gasLimit</strong>：トランザクションに支払う最大GAS。gasLimitは、トランザクションを実行する際に（無限ループのような）問題が発生した場合、実行者のEhterがなくなってしまわないことを保証します。トランザクションが実行されると、残りのGASは実行者のwalletに返金されます。</p><p><strong>to</strong>：この関数呼び出しを行うコントラクトアドレス。今回は投票処理を行うコントラクトアドレス（0x633296baebc20f33ac2e1c1b105d7cd1f6a0718b）です。</p><p><strong>value</strong>: 送信したいEther。 voteForCandidate関数の実行に関しては、Etherは送信されないので、値は0です。Etherを別の人やコントラクトに送信するトランザクションを実行する場合は、値を設定します。</p><p><strong>data</strong>：このデータフィールドの計算方法を見てみましょう。</p><p>まず、voteForCandidate（bytes32）の<a href="https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI">ABI</a>から関数シグネチャを取り出し、そのハッシュを生成します。</p><pre>&gt; web3.sha3(&#39;voteForCandidate(bytes32)&#39;)</pre><pre>&#39;0xcc9ab267dda32b80892b2ae9e21b782dbf5562ef3e8919fc17cab72aa7db9d59&#39;</pre><p>次にそのハッシュの最初の4バイト（=0xcc9ab267）を取ります。</p><p>関数の引数 ‘Nick’をとり、bytes32に変換すると52616d6100000000000000000000000000000000000000000000000000000000となります。</p><p>2つ（0xcc9ab267, 52616d6100000000000000000000000000000000000000000000000000000000 ）を組み合わせたものがdataの値になります。</p><h4>2. トランザクションに署名する</h4><p>Ethereumネットワークは、あなたの代わりに他の誰かがこのトランザクションを実行しないように、実際にそのアカウントを所有者がトランザクションを実行しているか検証する必要があります。その検証は、そのアカウントに対応する秘密鍵を使用してトランザクションに署名することで行うことで実現できます。トランザクションへの署名は次のように行われます。</p><pre>const privateKey = Buffer.from(&#39;e331b6d69882b4ab4ea581s88e0b6s4039a3de5967d88dfdcffdd2270c0fd109&#39;, &#39;hex&#39;)<br><br>const txn = new EthereumTx(rawTxn)<br>txn.sign(privateKey)<br>const serializedTxn = txn.serialize()</pre><h4>3. ローカルでトランザクションを検証する</h4><p>署名されたトランザクションは、あなたのローカルのEthereumノードに提出されます。ローカルノードは、署名されたトランザクションが正当なアカウントアドレスによって実際に署名されたことを公開鍵を用いて検証します。</p><h4>4. トランザクションをネットワークにブロードキャストする</h4><p>署名されたトランザクションは、あなたのgeth /parity ノードによって他のノードにブロードキャストされます。そのノードはさらに順番に他のノードにトランザクションをブロードキャストします。トランザクションがネットワークにブロードキャストされると、ローカルノードはトランザクションIDを出力します。このIDを使用してあなたはトランザクションのステータスを追跡できます。このトランザクションIDは、署名されたトランザクションオブジェクトのハッシュです。</p><pre>transactionId = sha3(serializedTxn)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*7u1ri_MFa1svbAprMUVKyA.png" /></figure><p>公開Ethereumネットワーク上でトランザクションを実行する場合、トランザクションのステータスを追跡するメジャーな方法は<a href="https://etherscan.io/">etherscan.io</a>を使うことです。上記の図を見てみると、Etherscanノードにマークされているノードを２つ見つけることができます。 Etherscanはいくつかのノードを世界中で走らせていて、そのノードには素敵なフロントエンドwebappが繋がっています。あなたのトランザクションがEtherscanノードによって取得されると、あなたはpending中のトランザクションをEtherscanのwebappを通して確認できます。</p><p>もう一つ覚えておくべきことは、すべてのノードがあなたのトランザクションを受け入れるわけではないということです。ノードの中には、gasPriceの最低価格を設定し、それ以上のgasPriceが指定されたトランザクションのみを受け入れる設定をしているものがあります。あなたがgasPriceをその最低価格より低く設定した場合、そのノードはあなたのトランザクションを無視します。</p><h4>5. マイナーがトランザクションを受け入れる</h4><p>図からわかるように、Ethereumネットワークには、マイナーノードと非マイナーノードが混在しています。あなたが知っているように、マイナーはあなたのトランザクションをブロックに含める仕事をする人です。マイナーは、評価前のトランザクションプールを所持しています。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*y5NVHUzqF0fs8zpp5hdKIg.png" /></figure><p>上の図のように、マイナーはプール内のすべてのトランザクションをgasPriceでソートして保管します。gasPriceが高いほど、トランザクションは次のブロックに取り込まれる可能性が高くなります。これは、（より高い報酬を得るための）マイナーノードの一般的な構成です。しかし、マイナーは自分のノードを設定して、好きなようにトランザクションを並べ替えることができます（低いgasPriceだけをマイニングしてネットワークを手助けするマイナーもいます）。</p><p>上記の図では、voteForCandidateのトランザクションがマイナーのトランザクションプールの底にあることを確認できます。高額なgasPriceトランザクションが優先的にマイニングされ、それらがブロックに含まれると、マイナーはvoteForCandidateのトランザクションのマイニングを行います。</p><p>ここで注意すべきことは、マイナーのプールには所持できるトランザクションの数に限りがあるということです。人気のあるICOセールや、人気のあるdapp（Crypto Kittiesなど）が始まったとしましょう。ユーザーは、自分のトランザクションが他のトランザクションより早くマイナーに処理してもらうために高額のgasPriceでトランザクションを提出します。高額gasPriceトランザクションがプールをいっぱいにすると、あなたの低価格gasPriceトランザクションは破棄されます。立候補者’Nick’はしばらくの間投票を受けることはできません。そのような場合には、トランザクションを再ブロードキャストする必要があるかもしれません。</p><p>あなたのトランザクションをプールの上に押し上げるトリックは、同じnonce値を用いてより高いgasPriceでトランザクションを再提出することです。そうすれば、新しいトランザクションがマイナーに受け取られたときに、新しいより高価格gasPriceのトランザクションが古い低価格gasPriceトランザクションを上書きします。nonce値が異なる場合は、別のトランザクションと見なされます（’Nick’に2票を投票することになります）。このことについては、<a href="https://medium.com/@jgm.orinoco">Jim McDonald</a>の素晴らしい記事があります。</p><h4>6. マイナーノードは有効なブロックを掘り当ててネットワークにブロードキャストする</h4><p>マイナーは他のトランザクションと一緒にあなたのトランザクションをブロックに取り込みます。 Ethereumは１ブロックに含めることができるGAS値の上限を設定しています。マイナーはトランザクションのGAS合計値がブロックの上限値を超えない限り複数のトランザクションをブロックに含めることができます。現在のGAS上限値は<a href="https://ethstats.net/">ethstats.net</a>で確認できます。</p><p>マイナーがブロックに含めるトランザクションを選択すると、トランザクションは検証され、pending中のブロックに含まれ、Proof of Workが開始されます。 マイナーノードの1つは、最終的に（PoWパズルを解くことによって）有効なブロックを掘り出し、ブロックをブロックチェーンに追加します。Raw Transaction Objectがローカルノードによってブロードキャストされたのと同じように、マイナーノードはこの有効なブロックを他のノードにブロードキャストします。</p><h4>7. ローカルノードが新しいブロックを受け取り、同期する</h4><p>最終的にローカルノードは新しいブロックを受け取り、ローカルブロックチェーンを同期します。</p><p>truffleを使用してトランザクションを実行する場合、truffleは常にブロックチェーンをポーリングしてブロックチェーンの状態を確認します。トランザクションが確認されると、then()ブロック内のコードを実行し、コンソールログを出力します（この記事で用いたコードの場合）。</p><h3>2. ローカルノードの代わりにMetaMaskを使う</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*uT6UHN0x2xrVVg_i2kBPUw.png" /></figure><p><a href="https://medium.com/@metamask_io">MetaMask</a>ブラウザプラグインをインストールすると、ブラウザでアカウント管理ができます。秘密鍵はブラウザにのみ保存されるため、アカウントと秘密鍵にアクセスできるのはあなただけです。ブラウザでトランザクションを実行すると、MetaMaskプラグインは関数呼び出しをRaw Transaction Objectに変換し、秘密鍵を使用してトランザクションに署名します。 MetaMaskはトランザクションをブロードキャストするために使用する独自のノードを管理しています。（Metamaskは<a href="https://infura.io/dashboard">Infura</a>がホストするノードを使用します）。MetaMaskを使う方法では、あなたが独自のローカルEthereumノードを実行・管理する必要はありません。</p><h3>3. オフライン署名</h3><p>MetaMaskなどのプラグインを使用したくない場合や、ローカルノードが安全ではない可能性がある場合はどうしましょう？その問題を解決するための方法があります。</p><p>気づいた人がいるかもしれませんが、最初の2つのステップ（Raw Transaction Objectの生成と署名）は、オンラインで行う必要はありません。トランザクションが改ざんされていないことを絶対に確認したい場合は、オフラインのコンピュータを使用して、関数呼び出しをRaw Transaction Dataに変換し、秘密鍵を使用してトランザクションに署名します。署名されたトランザクション文字列をコピーし、オンラインのコンピュータを使用してネットワークにブロードキャストすることができます。署名されたトランザクションをネットワークにブロードキャストするために使用できる<a href="https://etherscan.io/pushTx">Etherscan</a>や<a href="https://infura.io/docs/#supported-json-rpc-methods">Infura</a>のような多くのサービスがあります。</p><p>もう1つの安全なソリューションは、<a href="https://www.ledger.com/">Ledger</a>や<a href="https://trezor.io/">Trezor</a>などのハードウェアウォレットを使用することです。これらのウォレットには秘密鍵が格納されており、トランザクションに署名するコードがハードウェア自体にプログラムされています。あなたは署名されたトランザクションを公開する時だけインターネットに接続します。</p><p>この記事があなたのEthereumトランザクション理解の手助けになれば何よりです。もしこの記事に誤りを見つけた場合コメントを残してください。修正します。</p><p><a href="https://medium.com/u/378f42c2a442">Jim McDonald</a>、この記事の校正に協力してくれてありがとう。</p><p><strong>宣伝: dapp開発に興味があったら、私のサイト </strong><a href="http://www.zastrin.com/"><strong>zastrin.com</strong></a><strong> を見てみてください！ </strong><em>(※この記事の原著の方のサイトです。)</em></p><p>この記事は、「<a href="https://medium.com/blockchannel/life-cycle-of-an-ethereum-transaction-e5c66bae0f6e">Life Cycle of an Ethereum Transaction</a>」(著者: <a href="https://medium.com/@mvmurthy?source=post_header_lockup">Mahesh Murthy</a>)を作者の許可をいただいて翻訳したものです。</p><p>Thank you <a href="https://medium.com/@mvmurthy?source=post_header_lockup">Mahesh Murthy</a>!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de5434b3363a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kyuzan/%E6%97%A5%E6%9C%AC%E8%AA%9E%E7%BF%BB%E8%A8%B3-life-cycle-of-an-ethereum-transaction-de5434b3363a">[日本語翻訳]Life Cycle of an Ethereum Transaction</a> was originally published in <a href="https://medium.com/kyuzan">KYUZAN</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Service Worker for Caching]]></title>
            <link>https://medium.com/@tomonari_t/service-worker-for-caching-e05bb740a5c2?source=rss-359880b52845------2</link>
            <guid isPermaLink="false">https://medium.com/p/e05bb740a5c2</guid>
            <category><![CDATA[service-worker]]></category>
            <category><![CDATA[app-shell-model]]></category>
            <dc:creator><![CDATA[tomonari takahashi]]></dc:creator>
            <pubDate>Wed, 18 Apr 2018 12:44:05 GMT</pubDate>
            <atom:updated>2018-04-18T12:44:05.108Z</atom:updated>
            <content:encoded><![CDATA[<p>Caching by Service Worker is good for Web App because we don’t have user to wait for page showing. It make user feel using native apps.</p><p>So at this post I’ll introduce to how to cache data by using Service Worker.</p><h4>What is “App Shell”</h4><figure><img alt="App Shell Image" src="https://cdn-images-1.medium.com/max/743/0*DmOyV8Yky2d2Ip6O." /></figure><p>“App Shell” is design of Web Application.</p><p>“App Shell” means that minimum HTML, CSS, JavaScript to construct Web App. If you make your Web-App cache “App Shell’s resources” at user’s local, user can only load other contents when visiting again without loading “App Shell”.</p><p>“App Shell” architecture is good for Single-Page-Applications.</p><p>So caching minimum HTML, CSS, JavaScript by Service Worker is the important key to realize it.</p><h4>How to use Service Worker for Caching</h4><p>You need only to do two things.</p><ol><li>Register SW</li><li>Add Event listner func</li></ol><p>※ All code is in this <a href="https://github.com/tomonari-t/app-shell-demo">repository | GitHub</a>.</p><h4>1. Register Service Worker</h4><p>To install a service worker, in your JavaScript you have to register it.</p><pre>&lt;html&gt;<br>...<br>&lt;script&gt;<br>if (&#39;serviceWorker&#39; in navigator) {<br>  navigator.serviceWorker.register(&#39;./sw.js&#39;).then((registration) =&gt; {<br>    console.log(&#39;ServiceWorker registration successful with scope: &#39;, registration.scope);<br>  }).catch((err) =&gt; {<br>    console.log(&#39;ServiceWorker registration failed: &#39;, err);<br>  });<br>}<br>&lt;/script&gt;<br>...<br>&lt;/html&gt;</pre><h4>2. Add Event listners func</h4><p>After registering service worker, you can add envent listners to cache files.</p><p>At install event, you can tell browser what files should be cached. After installed, install event is not called until new cache files appear.</p><pre>const cacheName = &#39;app-shell-demo.v1.0.0&#39;;<br>const fileToCacheList = [<br>  &#39;/mdl.css&#39;,<br>  &#39;/style.css&#39;,<br>  &#39;index.html&#39;,<br>  &#39;/&#39;<br>];<br><br>const addCache = (event) =&gt; {<br>  event.waitUntil((async () =&gt; {<br>    const cache = await caches.open(cacheName);<br>    return cache.addAll(fileToCacheList);<br>  })());<br>};<br>self.addEventListener(&#39;install&#39;, addCache);</pre><p>At activate event, you had better remove old cached files.</p><pre>// sw.js<br>const removeOldCache =  (event) =&gt; {<br>  const cacheWhiteList = [cacheName];<br>  event.waitUntil((async () =&gt; {<br>    const keys = await caches.keys();<br>    Promise.all(<br>      keys.map((key) =&gt; {<br>        if (cacheWhiteList.indexOf(key) === -1) {<br>          return caches.delete(key);<br>        }<br>      })<br>    );<br>  })());<br>};<br>self.addEventListener(&#39;activate&#39;,removeOldCache);</pre><p>At fetch event is called at every requests. So you can return chached file at this event. If there is no data at cache, you have to fetch the data.</p><pre>self.addEventListener(&#39;fetch&#39;, returnCacheIfExist);<br>const returnCacheIfExist = (event) =&gt; {<br>  event.respondWith((async () =&gt; {<br>    const matched = await caches.match(event.request, { ignoreSearch: true });<br>    return matched || fetch(event.request); // if nothing, fetch<br>  })());  <br>};</pre><h4>More detail</h4><p>See <a href="https://github.com/GoogleChromeLabs/sw-precache/tree/master/app-shell-demo">this demo app. | iFixit</a></p><p>It is good example by React.</p><h4>Wrapping up</h4><p>“App Shell” provides good experience for users.</p><h4>Reference</h4><ul><li><a href="https://developers.google.com/web/fundamentals/architecture/app-shell">App Shell Model</a></li></ul><p>Portions of this page are reproduced from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e05bb740a5c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Medium Post Manager]]></title>
            <link>https://medium.com/@tomonari_t/medium-post-manager-999ea087fbe4?source=rss-359880b52845------2</link>
            <guid isPermaLink="false">https://medium.com/p/999ea087fbe4</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[google-cloud-functions]]></category>
            <dc:creator><![CDATA[tomonari takahashi]]></dc:creator>
            <pubDate>Sun, 15 Apr 2018 07:09:26 GMT</pubDate>
            <atom:updated>2018-04-15T14:16:52.452Z</atom:updated>
            <content:encoded><![CDATA[<p>I wanted to manage my medium posts by git. For examaple, creating post modifying post and trace it.</p><p>So I created “<a href="https://github.com/tomonari-t/medium-post-manager">Medium Post Manager | GitHub</a>”. So this is my first post via this manager.</p><p><strong>Because of Medium’s API, now only support to create post… ;(</strong></p><h4>What you can</h4><p>You can write and manage posts by git. If you are interested in it, look at below!!</p><p>Thank you!</p><p><a href="https://github.com/tomonari-t/medium-post-manager">Medium Post Manager | GitHub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=999ea087fbe4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>