<?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 Chen Yu on Medium]]></title>
        <description><![CDATA[Stories by Chen Yu on Medium]]></description>
        <link>https://medium.com/@ione0213?source=rss-1602fb834cb7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xPq47vs-Oqa1oMvh0i6Yhg@2x.jpeg</url>
            <title>Stories by Chen Yu on Medium</title>
            <link>https://medium.com/@ione0213?source=rss-1602fb834cb7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 16:43:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ione0213/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[Stetho - Android開發工具]]></title>
            <link>https://medium.com/working-skill/stetho-android%E9%96%8B%E7%99%BC%E5%B7%A5%E5%85%B7-4a9a940ca4c1?source=rss-1602fb834cb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a9a940ca4c1</guid>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Chen Yu]]></dc:creator>
            <pubDate>Thu, 12 Aug 2021 08:48:39 GMT</pubDate>
            <atom:updated>2021-08-12T08:48:39.036Z</atom:updated>
            <content:encoded><![CDATA[<p>Developing tool created by Facebook</p><h3>Setting and Usage</h3><ul><li>build.gradle(app) -&gt; dependencies</li></ul><pre>implementation ‘com.facebook.stetho:stetho:1.6.0’</pre><ul><li>MainActivity</li></ul><pre>Stetho.initializeWithDefaults(this)</pre><ul><li>After running app, access <strong>chrome://inspect/#devices </strong>with chrome and click inspect</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PTLGvmISMz4nSfOMo_912g.png" /></figure><ul><li>Resources -&gt; Web SQL -&gt; check database</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ezIhF94gYlAdGRiWt2zvTA.png" /></figure><h3>Current issue</h3><blockquote><em>DevTools inspect window doesn’t render properly</em></blockquote><p><a href="https://github.com/facebook/stetho/issues/696">DevTools inspect window doesn&#39;t render properly · Issue #696 · facebook/stetho</a></p><h3>Solution</h3><blockquote><em>Get old versions of Chromium temporary</em></blockquote><ul><li>Linux x64: <a href="https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Linux_x64/827102/">https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Linux_x64/827102/</a></li><li>Mac OS: <a href="https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Mac/827102/">https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Mac/827102/</a></li><li>Windows: <a href="https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win/827102/">https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win/827102/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a9a940ca4c1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/working-skill/stetho-android%E9%96%8B%E7%99%BC%E5%B7%A5%E5%85%B7-4a9a940ca4c1">Stetho - Android開發工具</a> was originally published in <a href="https://medium.com/working-skill">Working Skill</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kotlin 讀書會 0408 筆記]]></title>
            <link>https://medium.com/working-skill/kotlin-%E8%AE%80%E6%9B%B8%E6%9C%83-0408-%E7%AD%86%E8%A8%98-9fc2d3a31da3?source=rss-1602fb834cb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fc2d3a31da3</guid>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Chen Yu]]></dc:creator>
            <pubDate>Thu, 08 Apr 2021 13:44:18 GMT</pubDate>
            <atom:updated>2021-04-08T13:45:04.186Z</atom:updated>
            <content:encoded><![CDATA[<h3>Chapter 05 Inheritance</h3><h3>When</h3><blockquote>1.avoid duplicate code</blockquote><blockquote>2.is a relationship</blockquote><h3>Super class / base class</h3><h3>Kotlin class</h3><blockquote>預設為final，加上open使其可被繼承</blockquote><pre>open class People( ) {</pre><pre>}</pre><h3>Sub Class / Derived class</h3><blockquote>can create its own function</blockquote><h3>advantage of inheritance</h3><blockquote>1.Can access all open functions and properties from superclass</blockquote><blockquote>2.Can override all open functions or properties</blockquote><blockquote>3.Can create own functions or properties</blockquote><h3>存取</h3><blockquote>private可避免function or properties被存取或覆寫</blockquote><h3>Override</h3><blockquote>1.open fun greeting</blockquote><blockquote>2.override fun greeting</blockquote><h3>Think</h3><pre>val people: People = Student(&quot;Jack&quot;, 30)</pre><pre>people.doHomeWork()</pre><blockquote>people為superclass，無法使用subclass方法</blockquote><h3>Any class</h3><blockquote>1.all class inherit Any class</blockquote><blockquote>2.equals( ): Boolean</blockquote><blockquote>3.hashCode( ): Int</blockquote><blockquote>4.toString( ): String</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fc2d3a31da3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/working-skill/kotlin-%E8%AE%80%E6%9B%B8%E6%9C%83-0408-%E7%AD%86%E8%A8%98-9fc2d3a31da3">Kotlin 讀書會 0408 筆記</a> was originally published in <a href="https://medium.com/working-skill">Working Skill</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kotlin 讀書會 0325 筆記]]></title>
            <link>https://medium.com/working-skill/kotlin-%E8%AE%80%E6%9B%B8%E6%9C%83-0325-%E7%AD%86%E8%A8%98-254db6235188?source=rss-1602fb834cb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/254db6235188</guid>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Chen Yu]]></dc:creator>
            <pubDate>Thu, 25 Mar 2021 14:02:06 GMT</pubDate>
            <atom:updated>2021-03-25T14:09:11.265Z</atom:updated>
            <content:encoded><![CDATA[<h3>Class</h3><pre>物件處理及創立物件</pre><pre>定義properties 及 function</pre><h3><strong>Properties</strong></h3><blockquote>class所知道的</blockquote><pre>+name : String</pre><pre>+age : Int</pre><h3><strong>function</strong></h3><blockquote>class可做的</blockquote><pre>doHomeWork( )</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*AXZzPANGeNPww-tbUkstOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PdU9dPu7xlsh3-vNpoR2EQ.png" /></figure><pre>class也可以沒有properties，只要有class + class name即可宣告完成</pre><h3><strong>constructor 宣告</strong></h3><pre>val : auto generated getter</pre><pre>var : auto generated getter and setter</pre><blockquote>&gt;&gt; to ByteCode會發現有getter and setter</blockquote><blockquote>&gt;&gt; 若沒有放val and var則只會是個參數，需自建getter/setter</blockquote><blockquote>&gt;&gt; 可有多個建構子</blockquote><blockquote>&gt;&gt; 可自行客製getter and setter</blockquote><pre>               //constructor可省略<br>Class student constructor ( val name: string, val age: Int ) {</pre><pre>}</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f20a27a53c2876163826dc24802f6e15/href">https://medium.com/media/f20a27a53c2876163826dc24802f6e15/href</a></iframe><h3>How to use a class?</h3><pre>(1) create</pre><pre>(2) use (.) operator</pre><blockquote>&gt;&gt; val student = student(“John”, 20)</blockquote><blockquote>student.name</blockquote><blockquote>student.age</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DHf0LzVjmtCZKHzhUURzaA.png" /></figure><h3>Q &amp; A</h3><pre>&lt;init&gt;</pre><pre>lateinit : 如果在使用時，還未被設定值，則會有exception</pre><pre>使用情境：使用fragment時可能會用到。</pre><pre>&lt;by Lazy&gt;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=254db6235188" width="1" height="1" alt=""><hr><p><a href="https://medium.com/working-skill/kotlin-%E8%AE%80%E6%9B%B8%E6%9C%83-0325-%E7%AD%86%E8%A8%98-254db6235188">Kotlin 讀書會 0325 筆記</a> was originally published in <a href="https://medium.com/working-skill">Working Skill</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kotlin 讀書會 0318 筆記]]></title>
            <link>https://medium.com/working-skill/kotlin-%E8%AE%80%E6%9B%B8%E6%9C%83-0318-%E7%AD%86%E8%A8%98-2898905476d0?source=rss-1602fb834cb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/2898905476d0</guid>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Chen Yu]]></dc:creator>
            <pubDate>Fri, 19 Mar 2021 17:14:37 GMT</pubDate>
            <atom:updated>2021-03-19T17:14:37.346Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Function</strong></blockquote><p>return 結果</p><pre> fun example( ) : String {</pre><pre>     return &quot;Hi&quot;</pre><pre>}</pre><pre>println(example( ) )    -&gt; Hi</pre><p>上述可用更簡短寫法如下</p><pre>fun example ( a: String) : String = a</pre><blockquote><strong>Send parameter to fun</strong></blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d897b898f37c0c6556dad822e1073a01/href">https://medium.com/media/d897b898f37c0c6556dad822e1073a01/href</a></iframe><blockquote><strong>for loop</strong></blockquote><pre>for( x in 1 .. 100 )</pre><pre>           until</pre><pre>             to</pre><pre>            downTo</pre><blockquote><strong>array應用方式：withIndex</strong></blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c204a694e38768fa42e7cbfbc3b57b45/href">https://medium.com/media/c204a694e38768fa42e7cbfbc3b57b45/href</a></iframe><blockquote><strong>Default parameter</strong></blockquote><blockquote><strong>-&gt; only for kt to kt</strong></blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5967df68ccd629426ae682a2fe95a56c/href">https://medium.com/media/5967df68ccd629426ae682a2fe95a56c/href</a></iframe><blockquote><strong>Passing function</strong></blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/802a87e1b1ae9f0cb15ba2dbd451c4c2/href">https://medium.com/media/802a87e1b1ae9f0cb15ba2dbd451c4c2/href</a></iframe><blockquote><strong>Lambda</strong></blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2513459788bbf98b87179786f7ced408/href">https://medium.com/media/2513459788bbf98b87179786f7ced408/href</a></iframe><p><em>Lambda用於縮短Funciton，適合只會做一件事的函式</em></p><p><em>it會指向第一個參數，如果有兩個以上參數，就不可用it呼叫</em></p><blockquote><strong>vararg</strong></blockquote><blockquote><strong>可計算總和.sum()</strong></blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a9ef5c7832bd9c025d609e4e4f6644ce/href">https://medium.com/media/a9ef5c7832bd9c025d609e4e4f6644ce/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2898905476d0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/working-skill/kotlin-%E8%AE%80%E6%9B%B8%E6%9C%83-0318-%E7%AD%86%E8%A8%98-2898905476d0">Kotlin 讀書會 0318 筆記</a> was originally published in <a href="https://medium.com/working-skill">Working Skill</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kotlin 讀書會 0311 筆記]]></title>
            <link>https://medium.com/working-skill/kotlin-%E8%AE%80%E6%9B%B8%E6%9C%83-0311-%E7%AD%86%E8%A8%98-17591231301b?source=rss-1602fb834cb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/17591231301b</guid>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Chen Yu]]></dc:creator>
            <pubDate>Fri, 19 Mar 2021 16:59:16 GMT</pubDate>
            <atom:updated>2021-03-19T16:59:16.854Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>宣告變數</strong></blockquote><pre>var level : Int = 3</pre><p>靜態類型變數</p><pre>var a : List&lt;Int&gt; = arrayListOf( 1, 2, 5)</pre><pre>var : variable</pre><pre>val value -&gt; read only</pre><blockquote><strong>類型推薦</strong></blockquote><blockquote>Kotlin預設會推斷變數類型</blockquote><p>Tool -&gt; Kotlin -&gt; Show Kotlin ByteCode -&gt; Decompile</p><p>顯示compile成 Bytecode後的語法</p><blockquote><strong>Const</strong></blockquote><p>呼叫其他class的靜態變數時使用</p><blockquote><strong><em>其它用法</em></strong></blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/95435458f8c0f903a3c658040ea68293/href">https://medium.com/media/95435458f8c0f903a3c658040ea68293/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17591231301b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/working-skill/kotlin-%E8%AE%80%E6%9B%B8%E6%9C%83-0311-%E7%AD%86%E8%A8%98-17591231301b">Kotlin 讀書會 0311 筆記</a> was originally published in <a href="https://medium.com/working-skill">Working Skill</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kotlin 讀書會筆記 0304]]></title>
            <link>https://medium.com/working-skill/kotlin-%E8%AE%80%E6%9B%B8%E6%9C%83%E7%AD%86%E8%A8%98-0304-6cec6958acac?source=rss-1602fb834cb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cec6958acac</guid>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Chen Yu]]></dc:creator>
            <pubDate>Fri, 19 Mar 2021 16:24:25 GMT</pubDate>
            <atom:updated>2021-03-19T16:54:47.341Z</atom:updated>
            <content:encoded><![CDATA[<p>近期參加了線上Kotlin讀書會，轉眼間也到了第三週，稍微彙整一下這幾次所記錄下來的筆記。</p><blockquote><strong>Kotlin特性</strong></blockquote><pre>(1)100%相容Java</pre><pre>(2)General — purpose</pre><pre>(3)static typing</pre><pre>(4)OOP + FP(Functional Programing</pre><blockquote><strong>Kotlin可撰寫的面相</strong></blockquote><pre>(1)Server : kotlin/JVM</pre><pre>(2)Android</pre><pre>(3)iOS App: Kotlin / Native</pre><pre>   KMM : Kotlin Multiplatform Mobile</pre><pre>   跨平台UI目前仍得依照各平台實作</pre><pre>(4Browser : Kotlin / JS</pre><blockquote><strong>開發環境</strong></blockquote><p><strong>IDE : IntelliJ IDEA</strong></p><pre>(1)Community Edition : Free</pre><pre>(2)Ultimate : 訂閱制(月/年)，如以年訂閱，隔年取消則可永久使用該年版本；<br>              年訂閱費用會逐年打折(lower to 60%)</pre><pre>(3)EAP版 : BETA版本，可提供使用回饋。</pre><pre>建議安裝方式：JetBrains -&gt; Toolbox App -&gt; IDE install</pre><blockquote><strong>使用SDK管理工具安裝不同版本SDK</strong></blockquote><pre>(1)Unix OS : SDK MAN，官網指令參考即可安裝</pre><pre><a href="https://sdkman.io/">https://sdkman.io</a></pre><pre>(2)Windows OS : Scoop</pre><pre><a href="https://scoop.sh/">https://scoop.sh/</a></pre><blockquote><strong>Chrome擴充元件</strong></blockquote><pre>JetBrains Toolbox Extension </pre><pre>檢視github上的專案時會自動顯示支援該語言的IDE，點選後可啟動對應IDE</pre><blockquote><strong>Create Project</strong></blockquote><pre>AM -&gt; Application (for practice)</pre><pre>JDK 11</pre><pre>Src/main/kotlin -&gt; 右鍵新增 or Command + N</pre><pre>Kotlin與Java一樣都需要有main function</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/650f968ed7eed183ebc16fa869497132/href">https://medium.com/media/650f968ed7eed183ebc16fa869497132/href</a></iframe><blockquote><strong>Hint :</strong></blockquote><pre>(1)key in main and click tab, IntelliJ will fulfill fun main     <br>   automatically.</pre><pre>(2)sout -&gt; println</pre><blockquote><strong>Run Kotlin code with other methods</strong></blockquote><pre>(1)Kotlin Playground : JetBrains -&gt; Playground</pre><pre><a href="https://play.kotlinlang.org/">https://play.kotlinlang.org/</a></pre><pre>(2)REPL : IntelliJ -&gt; Tool -&gt; REPL</pre><pre>(3)Kotlin Script -&gt; Project command + n -&gt; Kotlin Script</pre><pre>(4)Scratch File</pre><pre>(5)Work sheet</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kUQxSwEIo4Cpo8MkxDzYlg.png" /></figure><blockquote><strong>Push to GitHub</strong></blockquote><pre>(1)IntelliJ -&gt; VCD -&gt; Enable Version Control integration -&gt; Git</pre><pre>(2)Insert commend and commit</pre><pre>(3)Shift * 2 -&gt; GitHub</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*be3yjuwlFvPhCYWe_Wk0Sg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*I0suvNQIMSPjYJ1BsDef9w.png" /></figure><blockquote><strong>Learning Source</strong></blockquote><ol><li>參考書</li></ol><ul><li><a href="https://www.tenlong.com.tw/products/9789865021870">深入淺出 Kotlin</a></li><li><a href="https://www.tenlong.com.tw/products/9789864344796">Kotlin 權威 2.0：Android 專家養成術</a></li><li><a href="https://www.raywenderlich.com/books/kotlin-apprentice/v2.0">Kotlin Apprentice</a></li><li><a href="https://www.tenlong.com.tw/products/9781492046677">Kotlin Cookbook: A Problem-Focused Approach</a> &gt;&gt; 工具書</li><li><a href="https://kotlinlang.org/docs/home.html">官網文件</a></li></ul><p>2. YT : Kotlin by JetBrain</p><p>3. JetBrain 官網 -&gt; Learning tool -&gt;<a href="https://www.jetbrains.com/academy/">JetBrains Academy 線上教學平台</a></p><p>線上學習，區分熟悉與不熟悉項目提供題目</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*VRalgruBI0K54VsHo5THeQ.png" /></figure><p>4. Edu Tools : 可在IntelliJ下載題目、解題</p><p>5. <a href="https://tw.kotlin.tips/">https://tw.kotlin.tips</a></p><p>6. <a href="https://tw.intellij.tips/">https://tw.intellij.tips</a></p><p>7. Kraftsman職人塾</p><p>8. 其他平台</p><ul><li>Taiwan Kotlin User Group + Kotlin Taipei</li><li>TWJUG</li><li>各地GDG</li><li>Android讀書會</li><li>Taiwan Backend Group</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cec6958acac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/working-skill/kotlin-%E8%AE%80%E6%9B%B8%E6%9C%83%E7%AD%86%E8%A8%98-0304-6cec6958acac">Kotlin 讀書會筆記 0304</a> was originally published in <a href="https://medium.com/working-skill">Working Skill</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design Pattern筆記]]></title>
            <link>https://medium.com/working-skill/design-pattern%E7%AD%86%E8%A8%98-dfaac15c5691?source=rss-1602fb834cb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfaac15c5691</guid>
            <category><![CDATA[design-patterns]]></category>
            <dc:creator><![CDATA[Chen Yu]]></dc:creator>
            <pubDate>Tue, 02 Feb 2021 13:48:23 GMT</pubDate>
            <atom:updated>2021-02-02T13:50:39.420Z</atom:updated>
            <content:encoded><![CDATA[<h3>Design Pattern閱讀筆記</h3><blockquote><strong>What is Design Pattern</strong></blockquote><blockquote><strong>解決重複出現的問題，例如單例模式(Singleton)即為確保一個類別只會被實體化一次。</strong></blockquote><figure><img alt="設計模式的類別圖" src="https://cdn-images-1.medium.com/max/850/1*sjOFB-NPhlAo2GHL-RXjkA.png" /><figcaption>設計模式的類別圖</figcaption></figure><p>=================================</p><blockquote><strong>S：Single Responsibility Principle (SRP)</strong></blockquote><blockquote><strong>單一職責</strong></blockquote><p>汽車不建議擁有太多功能，如飛天、潛水、路上行駛等，</p><p>僅需負責路上行行駛即可，但不代表只會有行駛功能，</p><p>而是由前進、後退、左右轉等功能組成。</p><p>=================================</p><blockquote><strong>O：Open / Close Principle (OCP)</strong></blockquote><blockquote><strong>開放/封閉原則</strong></blockquote><p>指物件導向程式設計需開放擴充並封閉修改，</p><p>保留彈性，降低耦合，意即開放新增功能，封閉修改不相關功能</p><p>如想要改大燈，只需要更換燈泡即可，不需要也不能夠動到引擎功能</p><p>=================================</p><blockquote><strong>L：Liskov Substitution Principle(LSP)</strong></blockquote><blockquote><strong>Liskov替換原則</strong></blockquote><p>子類別應當可替換父類別而不影響程式架構，子類別要可以執行父類別想做的事。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*VmqTY-WP-Kf-2Ng7U_vUYQ.png" /></figure><p>=================================</p><blockquote><strong>I：Interface Segregation Principle(ISP)</strong></blockquote><blockquote><strong>介面隔離原則</strong></blockquote><p>把不同的功能隔離出來</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*odJ-J5Akwe6ZGkBtf67vTw.png" /></figure><blockquote><strong>D：Dependency Inversion Principle(DIP)</strong></blockquote><blockquote><strong>依賴反轉原則</strong></blockquote><p>話不要說得太死，如參加欣賞黑武士玩具派對，</p><p>可改成欣賞星戰玩具派對。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfaac15c5691" width="1" height="1" alt=""><hr><p><a href="https://medium.com/working-skill/design-pattern%E7%AD%86%E8%A8%98-dfaac15c5691">Design Pattern筆記</a> was originally published in <a href="https://medium.com/working-skill">Working Skill</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java : interface]]></title>
            <link>https://medium.com/working-skill/java-interface-b47c45a2aa5e?source=rss-1602fb834cb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b47c45a2aa5e</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Chen Yu]]></dc:creator>
            <pubDate>Sat, 30 Jan 2021 13:36:41 GMT</pubDate>
            <atom:updated>2021-01-30T13:38:17.541Z</atom:updated>
            <content:encoded><![CDATA[<h3>Java : interface</h3><p>複習一下interface(介面)</p><p>程式設計中，可將多種重複的功能做成interface</p><p>而interface中，只需要將函數只要宣告為抽象即可</p><p>=============================</p><p>重點</p><ul><li>介面中的資料成員必須設定初值(never changed)</li><li>介面沒有一般函數，只有抽象函數(only public for implement)</li></ul><p>dota遊戲中，防禦塔、野怪、英雄皆含有攻擊、防禦、回血等功能，此時就可將這些功能做成interface，有該功能時再去inplement即可，一個類別可實作多個interface。</p><p>範例：</p><p>=============interface================</p><p>Attack.java</p><pre>public interface Attack(){</pre><pre>   <strong>final</strong> int defaultAttack = 1;</pre><pre>   <strong>public</strong> <strong>abstract</strong> defaultName();</pre><pre>   <strong>public</strong> <strong>abstract</strong> attack();</pre><pre>   <strong>public</strong> <strong>abstract</strong> attackInstance();</pre><pre>   <strong>public</strong> abstract showAnimation();</pre><pre>}</pre><p>=============父類別================</p><p>Hero.java</p><pre>Public class Here {</pre><pre>   <strong>protected</strong> name;</pre><pre>   <strong>protected</strong> hp;</pre><pre>   <strong>public</strong> hero(){</pre><pre>   }</pre><pre>   public void <strong>setName</strong>(String newName){</pre><pre>      This name = newName;</pre><pre>   }</pre><pre>   public <strong>getName</strong>(){</pre><pre>      Return name;</pre><pre>   }</pre><pre>}</pre><p>=============子類別================</p><p>IronMan.java</p><pre>//可實作多個interface</pre><pre>public class IronMan <strong>extends</strong> <strong>Hero</strong> <strong>implement</strong> <strong>Attack</strong>, <strong>Defense</strong>{</pre><pre>   Public void attackEnemy(){</pre><pre>   }</pre><pre>   <strong>//一定要實作interface內的抽象函數</strong></pre><pre>   public void attack(){</pre><pre>      hp = hp * 1.1;</pre><pre>   }</pre><pre>   public void attackInstance(){</pre><pre>      //do something</pre><pre>   }</pre><pre>   public void showAnimation(){</pre><pre>      //do something</pre><pre>   }</pre><pre>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b47c45a2aa5e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/working-skill/java-interface-b47c45a2aa5e">Java : interface</a> was originally published in <a href="https://medium.com/working-skill">Working Skill</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Renew Cert of Win Server from KMS server]]></title>
            <link>https://medium.com/working-skill/renew-cert-of-win-server-from-kms-server-2c1aaff2a381?source=rss-1602fb834cb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c1aaff2a381</guid>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[kms-server]]></category>
            <category><![CDATA[km]]></category>
            <category><![CDATA[windows-server]]></category>
            <dc:creator><![CDATA[Chen Yu]]></dc:creator>
            <pubDate>Wed, 27 Jan 2021 04:33:03 GMT</pubDate>
            <atom:updated>2021-01-27T04:33:03.544Z</atom:updated>
            <content:encoded><![CDATA[<p>今日發現DMZ區域的主機，無法更新Windows Server序號，</p><p>記錄一下處理方法及更新步驟</p><ol><li>確認Port是否開啟(EX:1688)</li></ol><p>若無可至 防火牆 -&gt; 進階設定 -&gt; 輸入規則 -&gt; 新增規則</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*-lzxlqL__9jQvKMVO2vSdw.png" /></figure><p>2.Command</p><p>#清除之前的授權 (Option) <br>slmgr -upk (做完需reboot)<br>#指定kms主機<br>slmgr -skms kmsServer.domaion.com:1688<br>#設定金鑰對應版本 <br>slmgr -ipk CERT KEY(1234–5678–9999–7899)<br>#向KMS Server報到<br>slmgr -ato<br>#檢查授權狀態<br>slmgr -dlv</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c1aaff2a381" width="1" height="1" alt=""><hr><p><a href="https://medium.com/working-skill/renew-cert-of-win-server-from-kms-server-2c1aaff2a381">Renew Cert of Win Server from KMS server</a> was originally published in <a href="https://medium.com/working-skill">Working Skill</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VMware host主機更新Patch方法]]></title>
            <link>https://medium.com/working-skill/vmware-host%E4%B8%BB%E6%A9%9F%E6%9B%B4%E6%96%B0patch%E6%96%B9%E6%B3%95-3806ca8a4995?source=rss-1602fb834cb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/3806ca8a4995</guid>
            <category><![CDATA[vmware]]></category>
            <category><![CDATA[vcenter]]></category>
            <dc:creator><![CDATA[Chen Yu]]></dc:creator>
            <pubDate>Mon, 25 Jan 2021 03:39:28 GMT</pubDate>
            <atom:updated>2021-01-31T02:33:17.241Z</atom:updated>
            <content:encoded><![CDATA[<p>先前都是將個人筆記紀錄在私人OneNote帳號中，基於異地備份考量，</p><p>從今天開始將個人筆記移動到medium。</p><p>As title, 相關步驟如下</p><h3>1.至VMware官方網站下載最新ESXi</h3><p><a href="https://my.vmware.com/group/vmware/patch">https://my.vmware.com/group/vmware/patch</a></p><p>選擇ESXi類別及對應版本 -&gt; DOWNLOAD</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WuP4p0wQT5JXl0023_vEOQ.png" /><figcaption>VMware Patch Download Center</figcaption></figure><h3>2.上傳至檔案至Host儲存空間</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AwPfeZ9WgQVI9zOHC4cRrw.png" /></figure><h3>3.SSH連線至VMware host主機</h3><p>可用Putty或MobaXTerm</p><h3>4.輸入Command</h3><p>esxcli software vib update -d “/vmfs/volumes/datastore1/ESXi Update/ESXi670–201811001.zip”</p><p><strong>/vmfs/volumes</strong>為系統預設資料夾</p><p>後面要再加上datastore的名稱以及patch檔案的路徑</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jeFV4LGW2IiuWTwnE67VGQ.png" /><figcaption>成功畫面</figcaption></figure><p>5.關閉host上面所有主機</p><ul><li>VM shutdown</li><li>vCenter -&gt; host開啟 -&gt; shutdown</li></ul><p>6.reboot host</p><p>Command: reboot</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3806ca8a4995" width="1" height="1" alt=""><hr><p><a href="https://medium.com/working-skill/vmware-host%E4%B8%BB%E6%A9%9F%E6%9B%B4%E6%96%B0patch%E6%96%B9%E6%B3%95-3806ca8a4995">VMware host主機更新Patch方法</a> was originally published in <a href="https://medium.com/working-skill">Working Skill</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>