<?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 Jiang Tingyu on Medium]]></title>
        <description><![CDATA[Stories by Jiang Tingyu on Medium]]></description>
        <link>https://medium.com/@jiang.tingyu?source=rss-49e68c7312f6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tHd728HsxVLjHK-38L622g@2x.jpeg</url>
            <title>Stories by Jiang Tingyu on Medium</title>
            <link>https://medium.com/@jiang.tingyu?source=rss-49e68c7312f6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 01:27:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jiang.tingyu/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[寫技術文章的包袱]]></title>
            <link>https://medium.com/@jiang.tingyu/%E5%AF%AB%E6%8A%80%E8%A1%93%E6%96%87%E7%AB%A0%E7%9A%84%E5%8C%85%E8%A2%B1-7ba263200799?source=rss-49e68c7312f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ba263200799</guid>
            <dc:creator><![CDATA[Jiang Tingyu]]></dc:creator>
            <pubDate>Wed, 06 Nov 2024 16:44:55 GMT</pubDate>
            <atom:updated>2024-11-06T16:44:55.696Z</atom:updated>
            <content:encoded><![CDATA[<p>前幾天看到黑大的臉書，討論分享技術與承認自己不會的東西相關的議題：</p><p><a href="https://www.facebook.com/share/p/1ArExAgUzn/">黑暗執行緒</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e2HVB9NwyYt9QNtRCa18Zg.png" /></figure><p>前一篇文：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z3IAgJymBTG2zP9GoL4jWg.png" /></figure><p>有感而發，其實我當初停更除了大部分原因是因為懶之外，另一個原因是我自己有包袱，很怕別人覺得我都工作一年多了怎麼連這個都還不會，怕別人發現我有多菜，尤其是寫了兩篇自認有點深度的文章之後，自己限制自己如果沒有達到那種程度不如不寫。而且我直到換到現在這個工作之前一直處於一個到處換工作的狀態，這個Medium在面試常常被我拿來說嘴lol，所以更怕寫出很low的文章會影響面試結果。</p><p>跟黑大不同，黑大大神的等級無庸置疑，他已經達到那個位置，就算他今天說出什麼很瞎的話或犯了什麼很低級的錯誤都不會有人懷疑他的能力；但我這種菜雞，老實說寫文章也不是為了幫助大眾這種偉大的博愛精神，就是為了promote自己，如果不小心弄巧成拙不就拿石頭砸自己的腳🥲</p><p>不過話雖如此，但在這停更的一年多裡，我的input跟之前比真的少很多，處於一個躺平式放棄狀態。但不管怎麼說也不管別人怎麼想的話，有總比沒有好，寫文章真的是對釐清自己思緒很有幫助，就算是寫現在這種抒情文也很舒壓(*´▽`*)</p><p>上一篇回歸文只有一個人看我要笑死，但我覺得這樣很好哈哈哈，沒有人看沒有壓力可以隨便亂寫ㄏㄏ，目前回歸兩篇都在寫雜記，這裡會不會從此從技術分享變碎唸部落格🤣</p><p>不過在停更的這一年多裡我的人生也發生了很多重大生活改變，要分享的話也是很多可以寫，其中一個改變是我又轉換領域，跑去做Data Engineer了🤣🤣🤣，所以說回歸jonior狀態的我要寫技術的話也可以擺脫包袱想寫什麼就寫什麼了哈哈哈哈哈哈哈</p><p>所以！如果我又停更了的話 就是我敗給了怠惰！！！沒有藉口！！！</p><p>就這樣，沒有重點的廢文又＋1，如果你看完的話，很抱歉浪費了你一分鐘的生命，謝謝(⁰▿⁰)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zUslMH8QseM6_HsfDY6YGw.jpeg" /></figure><p>因為Medium真的很難用，貼了圖片就一定要選一張當preview，但我不想選那兩張一堆字的截圖，所以分享給大家看我八月去爬富士山的御來光🗻🌅</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ba263200799" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[英文的力量]]></title>
            <link>https://medium.com/@jiang.tingyu/%E8%8B%B1%E6%96%87%E7%9A%84%E5%8A%9B%E9%87%8F-c9b3c09284ec?source=rss-49e68c7312f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9b3c09284ec</guid>
            <category><![CDATA[英文]]></category>
            <category><![CDATA[英文學習]]></category>
            <dc:creator><![CDATA[Jiang Tingyu]]></dc:creator>
            <pubDate>Fri, 25 Oct 2024 13:31:45 GMT</pubDate>
            <atom:updated>2024-10-25T13:53:52.610Z</atom:updated>
            <content:encoded><![CDATA[<p>睽違一年五個月終於又提起筆來了</p><p>其實這篇我很久以前就想要寫，但一直戰敗拖延症直到現在終於戰勝了ㄏㄏ</p><p>如題，這篇沒有要分享任何程式相關技術，但如果只是要說學好英文很重要，單純就只是已知用火，這誰不知道，所以希望你能在看完我小小的故事後也能思考一下英文好的力量到底是甚麼</p><p>首先，會促使我想要特別寫一篇跟英文有關的文章的原因是因為數據實在太驚人，我到現在每個禮拜收到Medium的通知還是很驚嘆。</p><p>在我的Medium上被我釘選的兩篇文章都是用英文寫的，這兩篇在誕生之前也都有中文的版本，中文寫完才被我翻譯成英文，廢話不多說直接上圖</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yq0HDZRRNEU85SxKxSxRcQ.png" /></figure><p>看看這個狠甩車尾燈的點擊與閱讀數，這兩篇文章的中文版甚至還排到第八跟第十名</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sGEcy5NtqIxIu7WBpZKItw.png" /></figure><p>我都沒在經營這個Medium一年多了，還每個禮拜都有一百多的點閱率，雖然我知道這個點閱率還是很寒酸，但跟中文版比已經天差地別，真的是差了一百倍沒有誇飾，而且隨著時間累積差距會更大</p><p>又雖然這兩篇有被刊登到其他的publication增加曝光率，但要不是因為我用英文寫，也不可能會被邀請去刊登</p><p>這是故事一：數據會說話</p><p>但一個禮拜有一百點閱率又怎樣呢？對我生活上毫無實質幫助，而事實上英文好在台灣確實就是一個很廢的技能。</p><p>在轉職軟體工程師之前，曾經我也是個對職涯迷茫的少女，做甚麼工作都不喜歡卻又不知道喜歡甚麼，很多身邊的朋友都給我建議，「你英文那麼好可以去教英文阿｣、「你英文那麼好感覺很適合做國際業務」，然後我真的跑去做了補習班英文老師跟國際貿易出口的國際業務，結果都做得超痛苦。</p><p>我雖然喜歡英文，英文能力也對於這些工作來說非常重要，但以前的我沒搞懂的是，雖然英文對這些工作來說是必要技能，但並不是這些工作的核心技能阿！！！教英文的核心技能是「教」，用英文當業務的核心技能還是「業務能力」，這些工作的本質並不會因為加上了英文就被改變。</p><p>以前的我總是想著要運用自己的強項而被蒙蔽，經歷幾次失敗後覺得英文是一個超無用的技能，所以後來我放棄了想要發揮這個長處的想法，思考我其他的核心能力到底真正適合的工作是甚麼，才踏上了寫程式的正途。</p><p>而就在我放棄了英文這個技能並擁有一個其他的核心技能後發現一件有趣的事：英文是一個超有用的<strong>輔助技能</strong>！</p><p>如果能夠運用英文，真的就等於拿到了打開世界大門的鑰匙，除了能夠接觸到的資訊多超多，自己能接觸到的機會也會多很多，就像上面的數據一樣。</p><p>今年五月我在東京換了新工作，新工作真的是天堂，可以全遠端，工作環境健康又優質，同事還一個比一個神，我無時無刻都可以感覺到非常嚴重的冒牌者症候群，而這個工作除了基本的程式要求之外最重要的技能就是 — — 英文</p><p>這也不是甚麼秘密，如果想往大外商前進，英文本來就會有一定的要求，但沒想到我這個程式菜比八竟然也能在還這麼菜的階段就進了偽外商的公司。雖然英文不是最關鍵，但我覺得功不可沒TAT，和我同時期在東京找工作的華語工程師圈相比，英文這個條件不但讓我找到工作，還讓我找到「好」工作，雖然我還是抱著僥倖的心態覺得自己真的運氣很好，但還是心存感激థ౪థ 感激自己抽到的組合是軟體+英文</p><p>其他我故事例如我在美國跟人吵架這種事就不在這邊廢話了，出國在外英文好肯定是幫助很大的這也沒甚麼好多說，總之我想講的重點就是</p><p>英文的力量 你感受到了嗎？😉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9b3c09284ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[證照+3: Jenkins, Linux, 12 Factor App]]></title>
            <link>https://medium.com/@jiang.tingyu/%E8%AD%89%E7%85%A7-3-jenkins-linux-12-factor-app-cf7d7410bc15?source=rss-49e68c7312f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf7d7410bc15</guid>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[kodekloud]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[certification]]></category>
            <dc:creator><![CDATA[Jiang Tingyu]]></dc:creator>
            <pubDate>Sat, 06 May 2023 00:51:54 GMT</pubDate>
            <atom:updated>2023-05-06T00:51:54.148Z</atom:updated>
            <content:encoded><![CDATA[<p>Yooooooo~~~~ 沉寂了三個月個Medium我回歸啦!!!🥳帶著三張又很雞肋的證照一起ㄏㄏ</p><p>之前在學Docker的時候接觸到的DevOps教學平台KodeKloud上個禮拜四月底又有免費一周的活動ヽ(●´∀`●)ﾉ，所以我就回去把<a href="https://medium.com/@jiang.tingyu/linux-cmd-my-github-gist-48a1f3c5653a">之前沒上完的Linux</a>，還有<a href="https://medium.com/@jiang.tingyu/docker%E5%BF%83%E5%BE%97-8bf079d8e1f4">之前說想上的Jenkis</a>給上完了(⁰▿⁰)，喜歡收集證照如我，獲得新證照就想要曬嘿嘿😎，也順便分享一下我的學習心得~</p><h3>Linux</h3><p>這個是之前就上了大概三分之一的課<a href="https://kodekloud.com/courses/the-linux-basics-course/">Learning Linux Basics Course &amp; Labs</a>，內容包括了很多面向的Linux基礎指令。</p><p>雖然說是Linux的基礎，但都已經交到很多我覺得我都不知道有甚麼機會會用到的指令...，像是kernal方面或是記憶體管理方面的東西😥，可能因為我OS也沒怎麼學過，平常也不會碰到需要處裡OS相關問題的情境，所以我覺得學那些指令沒甚麼用(?!)，就沒有收錄進我的<a href="https://gist.github.com/tingyuJ/cc62a7cea43cedf3682022f014313128">gist筆記</a>裡面，不過它課程裏面有交一些OS相關的介紹我覺得還是教得很不錯的👍，OS是我排在資料結構與演算法後要補上的資工基礎，不過現在資料結構與演算法的課已經被我凍結許久…一直跑去上別的東西(例如現在這些...)</p><p>扯遠了，回歸正題，其實這堂課很多指令之前在另一堂課<a href="https://kodekloud.com/courses/devops-pre-requisite-course/">DevOps Pre-Requisite Course</a>就有教過，不過在這裡就講得比較詳細和完整，加上它的lab可以做很多練習，也讓我順便複習一下之前學的，還有考驗我看不看得懂自己寫的筆記😂</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bRinzqvyU4lo7tUafU3HHQ.jpeg" /></figure><h3>Jenkins</h3><p><a href="https://kodekloud.com/courses/jenkins/">Jenkins</a>是之前就有興趣想學的，因為覺得很常聽到這個東西，但都不知道它確切到底怎麼用，所以就一直很想學。這堂課跟我之前在平台上上的課的講師不一樣，老實說我比較喜歡平台創辦人教的風格，但那不是重點，重點是我終於了解Jenkins在幹嘛&amp;怎麼用了✧◝(⁰▿⁰)◜✧</p><p>這堂課主要介紹很多Jenkins常用&amp;好用的plugins，然後各種config設定還有最重要的pipeline script，雖然我覺得學到了蠻多東西也都有透過lab練習到，但畢竟還是只有碰到基礎而已，pipeline script都只寫了非常簡單的少少幾個stages &amp; steps，看得出還有很多plugin跟其他應用是需要再學習&amp;練習的，不過至少現在我已經打下基礎，如果未來真的有需要用到Jenkins的時候也能比較容易上手😮‍💨</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ErtXALi4UjFqXJBQIdYqDg.jpeg" /></figure><h3>12 Factor App</h3><p>這張證照真的是雞肋到不能再更雞肋XD，這是KodeKloud的一個小課程，介紹<a href="https://kodekloud.com/courses/12-factor-app/">12 Factor App</a>是甚麼，有興趣的人可以自己google看一下就好，基本上就是在講12項原則如何讓你的應用程式在結構設計上的best practice principles這類的東西，網路上文章一大堆，但我閱讀很慢所以就懶著讀，喜歡看影片有人唸給我聽哈哈，對，所以我只想表達我現在知道12 Factor App是甚麼了這樣而已ㄏㄏ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GoaCf-06w2POI-BubLAnoA.jpeg" /></figure><p>But again，這些課都是基礎的課程，而且雖然在它的lab有很多練習，但我目前的工作上基本上還是沒甚麼機會應用到這些東西，感覺沒有自己在工作上的real life scenario應用到這些技術並解決問題都不能算是真的掌握了這些技術🥲，但至少這些是我現在能做的，若未來工作上有機會碰到才能自告奮勇😤，或是能跟其他人討論相關的話題👀</p><p>我猜應該半年後KodeKloud又會有free week的活動，先幫自己設立目標，下次free week的時候要把Shell Scripts和Ansible還有Kubernetes給學一學💪</p><p>#Linux #Jenkins #12FactorApp #KodeKloud #Certificate</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf7d7410bc15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[我辦了一個讀書會]]></title>
            <link>https://medium.com/@jiang.tingyu/%E6%88%91%E8%88%89%E8%BE%A6%E4%BA%86%E4%B8%80%E5%80%8B%E8%AE%80%E6%9B%B8%E6%9C%83-9ee7d44e884f?source=rss-49e68c7312f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ee7d44e884f</guid>
            <category><![CDATA[讀書會]]></category>
            <category><![CDATA[group-study]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[軟體工程師]]></category>
            <dc:creator><![CDATA[Jiang Tingyu]]></dc:creator>
            <pubDate>Sun, 22 Jan 2023 15:47:57 GMT</pubDate>
            <atom:updated>2023-01-22T15:50:13.045Z</atom:updated>
            <content:encoded><![CDATA[<p>去年2022年10月的時候，也就是差不多三個月前，在跟主管1 on 1的時候我提了我想要辦讀書會，主管也欣然同意，於是就開始了讀書會這個美妙的活動(*´▽`*)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sGRBwrdeLHy7mgbm_TPlhw.jpeg" /></figure><h3>起</h3><p>我會想要辦讀書會有幾個原因：</p><ol><li><strong>節省資深工程師的時間：<br></strong>有時候資深工程師在講解某些技術上的東西的時候，常常其他人如果聽到就會湊過去聽，代表其實大家也都很想知道，而且甚至有時候我遇到了問題去請教資深工程師，他花了半天教我，過了一陣子另外一位同事又遇到類似的問題，又去請教資深工程師，他又要再花半天重教一次，雖然資深工程師人很好，但我覺得這樣很浪費時間，而且對工作和學習的效率都不高。</li><li><strong>訓練解釋技術的能力：<br></strong>之前工作上有遇到過幾次我需要解釋一些技術上的東西給同事聽的時候，我講得非常不順，自己也覺得講得不好、詞不達意，同事感覺也聽不是很懂，另外之前在面試找工作被問到技術問題的時候也有被指出類似的情況，雖然面試官可以聽得出我想表達的東西，但那是因為他懂，如果是講給不懂的人聽可能就聽不懂了。況且有條理地解釋技術是senior的必備技能，所以更是需要盡早開始練習的妙。</li><li><strong>少走一些冤枉路：</strong><br>工程師在上班寫扣的時候一定會遇到各種問題，有時候遇到一個問題糾結半天想撞牆，其實有人之前遇過一樣的問題，也糾結老半天後找到答案了。尤其是如果是一群菜鳥在寫同一個專案，有很高機率會遇到類似的問題，我只是希望大家能互相分享平常上班遇到的問題跟解決的方法，讓未來如果有人有遇到類似的問題就可以少走一些冤枉路。</li></ol><h3>承</h3><p>不過我沒有參加過任何技術讀書會，更沒有舉辦過讀書會，所以一開始經歷了一段摸索的過程。</p><p>為了不增加大家的負擔，同時希望增加同事參與的意願，一開始把讀書會的內容設定為大家這周在工作上遇到的問題與解決方法的分享，不過這個主題在經過兩周後發現好像不是每個人每個禮拜都能在工作上遇到可以拿出來分享的議題… (｡ŏ_ŏ)</p><p>結果就變成大家分享自己之前研究過的技術，不過這麼一來就變得很吃大家平常的技術輸入跟筆記輸出，像是第一周就是Senior A打頭陣分享之前做的筆記，原本第二周排定Senior B分享之前公司教育訓練他上的東西，結果他連續難產兩周後就從此從讀書會消失…，而那兩周就變成有在做筆記的人來分享~ 基本上沒有任何主題上的限制，大家可以想分享甚麼就分享甚麼，主要我也是不想要讓大家負擔太大或是感到有壓力。</p><h3>轉</h3><h4>有點花時間呀…😥</h4><p>雖然說是不想讓大家覺得有負擔，但每次輪到我分享的時候我也是至少花了八小時在準備…，從開始研究、整理、寫筆記、最後準備如何分享，其實也跟我在寫Miduem文章一樣，因為需要有條理的輸出，在準備的過程有可能會發現自己遺漏的地方，而我這三個月Medium這裡文章輸出比較少一部分原因也是因為時間被拿去準備讀書會的內容了😅，然後我12月就分享了三次...🤧，所以說我也能理解不是所有人都想或是願意花這些時間來整理和準備讀書會的分享🥲</p><h4>很多有趣的東西😀</h4><p>我們的讀書會基本上固定五個人在輪流分享，有時候會有其他同事加入一起聽但不會加入分享，我覺得蠻有趣的，從每個人的分享內容可以看出大家有興趣的領域在哪，我都是分享後端C#方面的內容，另外一位則都分享前端的東西，而資深工程師主要都分享大方向觀念類的，還有兩位則都分享AI方面的內容。<br>而我覺得這是我從讀書會收穫最大的東西，因為平常自己在研究都是看自己有興趣的東西，老實說根本不會特別去認真看其他領域的東西，而在讀書會能有機會接觸並學到這些平常不會碰的東西，有點像是.NET conf的概念，但是更general而且是on a weekly basis，就能每個禮拜都有個固定的時間能接觸到一點新東西，我覺得很棒😌🤩🥳</p><h4>領導&amp;管理🤔</h4><p>因為這個讀書會是由我組織發起的，所以基本上是我在領導和管理這個組織，而這當中當然會遇到許多問題像是：厲害的資深工程師怎麼邀請都不加入我們的讀書會🥲、有人臨時開天窗的代打準備、各種原因讓大家想暫停讀書會一週的時候…等，常常需要做抉擇也常常需要督促大家😅，不過幸好同事人都很好，基本上都很願意配合😂</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*WhzC1B-pLIqXRozEPQpxxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*OppBHs3e7dG2TbN8o6jNtw.png" /><figcaption>11 &amp; 12月的分享(不同顏色代表不同人)</figcaption></figure><h3>合</h3><p>據我所知，不少優質的軟體公司工作內容都包含讀書會或是技術分享的環節(我也認為優質的工作應該要有這個環節)👀，經過這三個月大家共同的努力，我覺得讀書會雖然會花一點時間跟精力，但整體長遠而言絕對是利大於弊，而且除了對於讀書會成員技術和能力上的成長之外，還可以促進同事之間的感情🤪，雖然有在分享的同事好幾個都覺得讀書會讓他們壓力很大🤣，但參與的大家整體的評價還是都很正面，連主管也認同且給予正面回饋。ヽ(●´∀`●)ﾉ</p><h3>番外：讀書會結束後…</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_m3mcNud9h7n51sRd-WQng.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rGpi4TqqbPmdCE58PwDrgQ.jpeg" /><figcaption>過年前來玩桌遊 XD</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hUTlb8L0jVs8U6FhGXP_oQ.jpeg" /><figcaption>聖誕節交換爛禮物🫣</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BmOS9uvksF24LQaL1iegow.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nG8bHqAgHqFe4n5kQGE94Q.jpeg" /><figcaption>肚子餓了😋</figcaption></figure><p>#讀書會 #studygroup</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ee7d44e884f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is AddEndpointsApiExplorer in ASP.NET Core 6]]></title>
            <link>https://blog.devgenius.io/what-is-addendpointsapiexplorer-in-asp-net-core-6-64ba52d15979?source=rss-49e68c7312f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/64ba52d15979</guid>
            <category><![CDATA[dotnet]]></category>
            <category><![CDATA[dotnet6]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[webapi]]></category>
            <category><![CDATA[csharp]]></category>
            <dc:creator><![CDATA[Jiang Tingyu]]></dc:creator>
            <pubDate>Tue, 06 Dec 2022 15:27:42 GMT</pubDate>
            <atom:updated>2022-12-08T10:02:22.031Z</atom:updated>
            <content:encoded><![CDATA[<p>I was having my <a href="https://medium.com/@jiang.tingyu/side-project-todo-list-fc72892ba392?source=user_profile---------1----------------------------">Side Project — Todo List</a> reviewed when my colleague asked me why did you add this service and what is it for?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/0*PUqgkgPfNG4Eteku.png" /></figure><p>I didn’t have the answer then. All I knew was it came with the default template when you create a web API project.</p><p>Maybe because it’s a new service in ASP.NET Core 6, which is still pretty new, there isn’t much information about it online. After tracing a bit of source code, here’s what I found.</p><h3>Answer:</h3><blockquote>AddEndpointsApiExplorer <em>is required for the generation of </em><strong>Swagger </strong><em>for </em><strong>Minimal APIs</strong></blockquote><h4>What are Minimal APIs?</h4><p><strong>Minimal APIs</strong> are a way of mapping endpoints in Program.cs without controller/action</p><pre>app.MapGet(“/”, () =&gt; “Hello World!”);</pre><p>You can choose whether to use minimal APIs when creating a new web API project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*bb781n9emANo1pVP" /></figure><p>You can also set the option if creating with dotnet CLI dotnet new webapi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/0*aez3GuHxiV4WV7EJ.png" /><figcaption>default: false</figcaption></figure><p><strong>Use Minimal API </strong>v.s. <strong>Use Controller</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*tYcfBW99UsrkSgXB" /></figure><p>Projects created with Use Controller would come with AddControllers service by default. What matters is that AddControllers calls AddApiExplorer which adds the IApiDescriptionGroupCollectionProvider service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/0*sr3Jo9hPucdYlbh8.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/0*bdNMDQf14h7yuiCX.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*y6N5oYHr9rCbCif3.png" /></figure><p>You can tell by its name, IApiDescriptionGroupCollectionProvider is the service being used to get <em>ApiDescriptionGroupCollection </em>which you can also tell by its name it is a collection that contains information about APIs.</p><p>Here is a glimpse of what’s in <strong>ApiDescription</strong>:</p><pre>public class ApiDescription<br>{<br>    /// &lt;summary&gt;<br>    /// Gets or sets &lt;see cref=&quot;ActionDescriptor&quot;/&gt; for this api.<br>    /// &lt;/summary&gt;<br>    public ActionDescriptor ActionDescriptor { get; set; } = default!;<br><br>    /// &lt;summary&gt;<br>    /// Gets or sets group name for this api.<br>    /// &lt;/summary&gt;<br>    public string? GroupName { get; set; }<br><br>    /// &lt;summary&gt;<br>    /// Gets or sets the supported HTTP method for this api, or null if all HTTP methods are supported.<br>    /// &lt;/summary&gt;<br>    public string? HttpMethod { get; set; }<br><br>    /// &lt;summary&gt;<br>    /// Gets a list of &lt;see cref=&quot;ApiParameterDescription&quot;/&gt; for this api.<br>    /// &lt;/summary&gt;<br>    public IList&lt;ApiParameterDescription&gt; ParameterDescriptions { get; } = new List&lt;ApiParameterDescription&gt;();<br><br>    /// &lt;summary&gt;<br>    /// Gets arbitrary metadata properties associated with the &lt;see cref=&quot;ApiDescription&quot;/&gt;.<br>    /// &lt;/summary&gt;<br>    public IDictionary&lt;object, object&gt; Properties { get; } = new Dictionary&lt;object, object&gt;();<br><br>    /// &lt;summary&gt;<br>    /// Gets or sets relative url path template (relative to application root) for this api.<br>    /// &lt;/summary&gt;<br>    public string? RelativePath { get; set; }<br><br>    /// &lt;summary&gt;<br>    /// Gets the list of possible formats for a request.<br>    /// &lt;/summary&gt;<br>    /// &lt;remarks&gt;<br>    /// Will be empty if the action does not accept a parameter decorated with the &lt;c&gt;[FromBody]&lt;/c&gt; attribute.<br>    /// &lt;/remarks&gt;<br>    public IList&lt;ApiRequestFormat&gt; SupportedRequestFormats { get; } = new List&lt;ApiRequestFormat&gt;();<br><br>    /// &lt;summary&gt;<br>    /// Gets the list of possible formats for a response.<br>    /// &lt;/summary&gt;<br>    /// &lt;remarks&gt;<br>    /// Will be empty if the action returns no response, or if the response type is unclear. Use<br>    /// &lt;c&gt;ProducesAttribute&lt;/c&gt; on an action method to specify a response type.<br>    /// &lt;/remarks&gt;<br>    public IList&lt;ApiResponseType&gt; SupportedResponseTypes { get; } = new List&lt;ApiResponseType&gt;();<br>}</pre><p>We all know that Swagger is the tool that generates the API document for you. The information required to do that comes from the service IApiDescriptionGroupCollectionProvider.</p><p>Minimal APIs do not use controllers and do not add the AddControllers service. Therefore they do not have the information source for Swagger to do its magic.</p><p><strong>AddEndpointsApiExplorer is fixing this issue!!!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*pa6UFUW8m7yuGwhX.png" /></figure><h3>Demo</h3><p>When minimal APIs project is created, with AddEndpointsApiExplorer, we can see Swagger works as expected so does the API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*zd39DYZc2NRGAkyN" /></figure><p>If we commented out AddEndpointsApiExplorer, there’d be an error saying SwaggerGenerator is failing because of the missing IApiDescriptionGroupCollectionProvider service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*JjVkDc7JyFx6UAc8" /></figure><p>If we commented out Swagger altogether, it runs successfully. Of course, without Swagger UI. But the API still works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*l6XDFNZpatuDJLEY" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*KVBRrgBH0hSXe53Z" /></figure><p>Let’s take a look at this comparison again. Both the examples with and without controller have AddEndpointsApiExplorer. Which means minimal APIs are allowed and available in regular controller API projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*9wfbttcYy9ygvM7z.png" /></figure><p>If we commented AddEndpointsApiExplorer, the minimal API would disappear on Swagger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*abuOO2iTFT79_uJ3.png" /></figure><h3>Conclusion</h3><p>If you’re using minimal APIs and you also want to use the very handy Swagger, add the service:</p><pre>builder.Services.AddEndpointsApiExplorer();</pre><p>On the other hand, if you’re just building your Web API project with the regular controller way, it’s okay to delete AddEndpointsApiExplorer.</p><p>Chinese Version:</p><p><a href="https://medium.com/@jiang.tingyu/net-6-addendpointsapiexplorer-c4859dfddad6">.NET 6 — AddEndpointsApiExplorer</a></p><p>#dotnet6 #webapi #minimalapis #addendpointexplorer</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64ba52d15979" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/what-is-addendpointsapiexplorer-in-asp-net-core-6-64ba52d15979">What is AddEndpointsApiExplorer in ASP.NET Core 6</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[.NET 6 — AddEndpointsApiExplorer]]></title>
            <link>https://medium.com/@jiang.tingyu/net-6-addendpointsapiexplorer-c4859dfddad6?source=rss-49e68c7312f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4859dfddad6</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[dotnet6]]></category>
            <category><![CDATA[minimal-api]]></category>
            <category><![CDATA[webapi]]></category>
            <dc:creator><![CDATA[Jiang Tingyu]]></dc:creator>
            <pubDate>Thu, 01 Dec 2022 11:15:05 GMT</pubDate>
            <atom:updated>2022-12-06T15:45:50.698Z</atom:updated>
            <content:encoded><![CDATA[<h3>.NET 6 — AddEndpointsApiExplorer</h3><p>English Version:</p><p><a href="https://medium.com/@jiang.tingyu/what-is-addendpointsapiexplorer-in-asp-net-core-6-64ba52d15979">What is AddEndpointsApiExplorer in ASP.NET Core 6</a></p><p>上次請人幫我看我的<a href="https://medium.com/@jiang.tingyu/side-project-todo-list-fc72892ba392?source=user_profile---------1----------------------------">Side Project — Todo List</a>的時候被問到，Program.cs裡為什麼要加builder.Services.AddEndpointsApiExplorer(); 這行？這行是幹甚麼的？</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*9coCTofYk63ZGm8DL084WA.png" /></figure><p>我當時不知道，它建專案自己生出來的我也沒理他，昨天有空就把它給研究完了！然後想說既然寫了筆記就來寫一篇吧(*´▽`*)</p><p>其實網路上沒甚麼針對這個服務寫的文章，可能因為是.NET 6還比較新(?)，這個服務又是.NET 6的新東西，不過我還是有找到兩個答案：</p><p>第一篇其實就是答案了，不過人家寫得很完整的答案都被樓下嫌TL;DR😂</p><p><a href="https://stackoverflow.com/questions/71932980/what-is-addendpointsapiexplorer-in-asp-net-core-6">What is AddEndpointsApiExplorer in ASP.NET Core 6</a></p><p>第二篇的話是有個牛人在解析源碼🙇🏻‍♀️</p><p><a href="https://www.cnblogs.com/wucy/p/16337780.html">深入探究MinimalApi是如何在Swagger中展示的</a></p><p>如果你懶著看那篇英文的回答，又懶著去看source code的話，希望我這篇能讓你看懂AddEndpointsApiExplorer 是幹嘛的(⁰▿⁰)</p><p>OK 廢話結束，先說答案：</p><h4><strong><em>AddEndpointsApiExplorer是為了</em>Minimal APIs的Swagger<em>而存在的</em></strong></h4><h4>Minimal APIs是甚麼？</h4><p>就是直接用 app.Map() 來生出一個Endpoint的寫法，不需透過Controller和Action</p><pre>app.MapGet(“/”, () =&gt; “Hello World!”);</pre><p>在建新的WebAPI專案的時候可以選擇要不要使用Controller</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*wSrKYxHjmQYDZOQh" /></figure><p>用dotnet new webapi 的CLI也有這個option</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*4oG194ve2w_W7G4huIwCqw.png" /></figure><p><strong>Use Minimal API </strong>v.s. <strong>Use Controller</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*R8-jdeWSbUtq_JAI" /></figure><p>若使用Controller的話它自動會幫你加AddControllers的服務，而我們要看的重點是AddControllers 會再透過AddApiExplorer加入一個IApiDescriptionGroupCollectionProvider的服務</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*B3bTRNUIAyW5x_VIup2WiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*X-UOO5T4wl0AM5CYnZobOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*vWndrb6Ask8Xy_in1YY4XQ.png" /></figure><p>IApiDescriptionGroupCollectionProvider這個服務顧名思義是用來取得ApiDescriptionGroupCollection，而這個Collection也顧名思義就是包含了跟API有關的所有資訊。</p><p>稍微看一下ApiDescription裡有甚麼內容：</p><pre>public class ApiDescription<br>{<br>    /// &lt;summary&gt;<br>    /// Gets or sets &lt;see cref=&quot;ActionDescriptor&quot;/&gt; for this api.<br>    /// &lt;/summary&gt;<br>    public ActionDescriptor ActionDescriptor { get; set; } = default!;<br><br>    /// &lt;summary&gt;<br>    /// Gets or sets group name for this api.<br>    /// &lt;/summary&gt;<br>    public string? GroupName { get; set; }<br><br>    /// &lt;summary&gt;<br>    /// Gets or sets the supported HTTP method for this api, or null if all HTTP methods are supported.<br>    /// &lt;/summary&gt;<br>    public string? HttpMethod { get; set; }<br><br>    /// &lt;summary&gt;<br>    /// Gets a list of &lt;see cref=&quot;ApiParameterDescription&quot;/&gt; for this api.<br>    /// &lt;/summary&gt;<br>    public IList&lt;ApiParameterDescription&gt; ParameterDescriptions { get; } = new List&lt;ApiParameterDescription&gt;();<br><br>    /// &lt;summary&gt;<br>    /// Gets arbitrary metadata properties associated with the &lt;see cref=&quot;ApiDescription&quot;/&gt;.<br>    /// &lt;/summary&gt;<br>    public IDictionary&lt;object, object&gt; Properties { get; } = new Dictionary&lt;object, object&gt;();<br><br>    /// &lt;summary&gt;<br>    /// Gets or sets relative url path template (relative to application root) for this api.<br>    /// &lt;/summary&gt;<br>    public string? RelativePath { get; set; }<br><br>    /// &lt;summary&gt;<br>    /// Gets the list of possible formats for a request.<br>    /// &lt;/summary&gt;<br>    /// &lt;remarks&gt;<br>    /// Will be empty if the action does not accept a parameter decorated with the &lt;c&gt;[FromBody]&lt;/c&gt; attribute.<br>    /// &lt;/remarks&gt;<br>    public IList&lt;ApiRequestFormat&gt; SupportedRequestFormats { get; } = new List&lt;ApiRequestFormat&gt;();<br><br>    /// &lt;summary&gt;<br>    /// Gets the list of possible formats for a response.<br>    /// &lt;/summary&gt;<br>    /// &lt;remarks&gt;<br>    /// Will be empty if the action returns no response, or if the response type is unclear. Use<br>    /// &lt;c&gt;ProducesAttribute&lt;/c&gt; on an action method to specify a response type.<br>    /// &lt;/remarks&gt;<br>    public IList&lt;ApiResponseType&gt; SupportedResponseTypes { get; } = new List&lt;ApiResponseType&gt;();<br>}</pre><p>而Swagger是需要API的資訊來產出的，它的API資訊正是從IApiDescriptionGroupCollectionProvider這個服務而來</p><p>所以說，不使用Controller的Minimal APIs，不加入AddControllers 就沒有這個資訊來源來提供給Swagger</p><h3><strong>AddEndpointsApiExplorer就是在補做這件事！</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*xHLAJb6U4dpLDO8H7FjT8w.png" /></figure><h3>驗證</h3><p>專案建起來有加AddEndpointsApiExplorer 的時候，Swagger可以看到這個API，實際上打也有資料</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*eNL9rIcdLRPYFXsN" /></figure><p>如果把AddEndpointsApiExplorer 註解掉，在執行就會爆錯：SwaggerGenerator吃不到IApiDescriptionGroupCollectionProvider 的服務</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*oXwXYWM3WqAJPjn_" /></figure><p>若把Swagger也拿掉就可以正常運行，不過當然就沒有Swagger可以看，但API還是可以用的</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*mQSVl2TheoMoFSbs" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*z_vYR_c_bTbRde6x" /></figure><p>再看一次這張對比圖，可以看到兩邊都有加AddEndpointsApiExplorer ，所以在一般有使用Controller的專案裡也可以寫Minimal API的寫法</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*5Vx_xhts2XQHOIcZI952gQ.png" /></figure><p>若把AddEndpointsApiExplorer 註解，Minimal API就在Swagger上消失了</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*9RrHitiMn0rz740MS65kQA.png" /></figure><h3>結論</h3><p>若是你要寫Minimal API的寫法，又要用Swagger來看的話，就要加上</p><pre>builder.Services.AddEndpointsApiExplorer();</pre><p>反之，如果你在一般用Controller的Web API專案沒有用到Minimal API的寫法的話，把AddEndpointsApiExplorer 拿掉也沒關係(⁰▿⁰)</p><p><strong>題外話-1：</strong><br>看完上面那篇源碼解析後，昨天在讀書會分享，結果應該是因為我有稍微簡化，然後又講的不是很順，所以大家都好像源碼的部分都沒人聽懂...，所以原本也想寫我消化過的稍為簡化版API資訊來源的源碼解析，但還是等之後有空再想想看畫個圖之類的再另外寫一篇吧😅</p><p><strong>題外話-2：</strong><br>這次因為看源碼才知道原來Github在有登入的情況下，可以直接按 . 就可以把專案開在網頁版VS Code上看🤩，超好用密技！！！</p><p>#dotnet6 #webapi #minimalapis #addendpointexplorer</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4859dfddad6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Side Project — Todo List]]></title>
            <link>https://medium.com/@jiang.tingyu/side-project-todo-list-fc72892ba392?source=rss-49e68c7312f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc72892ba392</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[dotnet]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[side-project]]></category>
            <dc:creator><![CDATA[Jiang Tingyu]]></dc:creator>
            <pubDate>Sat, 26 Nov 2022 16:21:33 GMT</pubDate>
            <atom:updated>2022-11-26T16:30:50.836Z</atom:updated>
            <content:encoded><![CDATA[<h3>Side Project — Todo List</h3><p>前陣子聽了一個資深工程師的建議，而做了這個代辦事項的side project。<br>做這個side project主要是為了自學非關聯式資料庫<strong>MongoDB</strong>和單元測試<strong>NUnit</strong>，同時練習實作用<strong>JWT</strong>登入和複雜一點的<strong>Docker。</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fwg0vCVA63_k%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dwg0vCVA63_k&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fwg0vCVA63_k%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/888792ad864aae28c2c89715667bde57/href">https://medium.com/media/888792ad864aae28c2c89715667bde57/href</a></iframe><p>歡迎大家多多指教：</p><p><a href="https://github.com/tingyuJ/Todo-List">GitHub - tingyuJ/Todo-List: Angular + .Net Web API + MongoDB</a></p><h3>心得</h3><p>這次寫這個side project真的不寫不知道自己不會的東西還這麼多(╥﹏╥)，果然還是要自己實作一遍最實在…</p><h4>建專案</h4><p>一開始建專案就卡關，平常上班身為一個小PG，建專案這種事根本輪不到我，都是資深工程師建好的或既有的專案直接拿過來改，這次應該是我第一次從零開始建一個超過一個project的solution。平常在new專案的時候通常都只是為了POC，隨便選個地方建個獨立的新專案，而建一個solution則要考慮到專案的架構，像是 ng new … 和dotnet new angular ... new出來的東西差在哪，這種以前沒有認真看過的問題，還有專案的設定和設定檔裡面設定的內容這類平常都已經設定好好或是不用煩惱的問題，自己實作設定一遍才知道問題怎麼這麼多...</p><h4>Angular &amp; .NET WebAPI</h4><p>前端和後端的專案照公司現行大部分專案，分別用Angular和.NET WebAPI(.NET 6)，在寫程式的部分就跟上班一樣，基本上是輕輕鬆鬆，因為平常就都是在寫程式跟邏輯的部分，但整個side project就只有這個部分是輕鬆的..._(┐ ◟;ﾟдﾟ)ノ。不管是前端還是後端的專案，最後寫完後我都有再重構了一遍，把檔案重新分層歸類，也把程式切割的乾淨一點，不然因為專案其實很小，所以在寫的時候感覺寫在一起也沒甚麼，而且都是自己寫的，但事後寫完再看，確實會讓專案架構看起來不夠俐落/清楚。重構的部分在此特別感謝SA同事 <a href="https://medium.com/u/e43b37e616a9">Ho.Chun</a> 幫我看&amp;給我建議，請受小妹一拜(ノ‥)ノ。</p><h4><strong>MongoDB</strong></h4><p>這個部分也算是比較簡單的一part，看看網路上的教學，做出基本的CRUD不是太困難，我在這個side project裡基本上也只做了CRUD而已，不過我做這個side project目的也只是想了解MongoDB的基礎，所以目的也有達成(•̀ᴗ•́)و ̑̑</p><h4>NUnit</h4><p>單元測試的部分就比較頭痛了，現在工作上完全沒有寫任何的單元測試，我唯一接觸過的單元測試是CS61B教的JUnit，不過那些功課寫的測試也都很簡單，最重要的是沒有跨專案！OneTimeSetUp、SetUp、TearDown、TestCast、TestFixture……這些annotation基本上都是我這次才第一次學的新東西，從其他專案注入服務我也覺得我的寫法不太好，對於寫單元測試的結構我現在寫完還是覺得很抖，沒有實際的工作範本可以參考，光靠沒經驗的自己設計總覺得不是很牢靠，我覺得這部分是整個專案我覺得最需要別人給意見的部分，但工作上的同事也都不會...，所以在這裡跪求希望有善心人士幫我review這個部分இдஇ</p><h4>Json Web Token</h4><p>JWT的部份說來慚愧，雖然本來知道他會產出一個token，但對於他整個機制跟設定其實並不瞭解，這次藉這個專案的機會好好讀一下他的設計和原理，自己實做一遍，把這塊我覺得應該是蠻基本的missing piece補起來。</p><h4>Docker</h4><p>我之前的文章寫過我去學了Docker，當時有把自己之前做的迷你project(<a href="https://github.com/tingyuJ/Wordle-Helper-Docker">Wordle Helper</a>) docker化，不過那也只是一個只有一個專案的小project，不像這次至少有前後端分離再加資料庫，是真的需要讓容器之間能夠互相溝通的，所以這次把專案docker化就有用到比較多的networking，也有寫docker compose file。<br>這次也因為要docker networking的關係，.NET的部分把HttpsRedirection跟CORS研究得比較清楚了一點，angular的部分也學到了關於nginx的config設定。</p><p>關於docker networking還有個小插曲，我當時一直連不到mongo的container，還上<a href="https://stackoverflow.com/questions/74337646/fail-to-connect-to-mongodb-from-net-webapi-using-docker">stackoverflow第一次發問</a>，結果過了一天沒人要回我，我還是跑回去公司問高手，最後下面的答案是公司同事回的😂，不過這不是這個故事的重點，重點是問題解決了以後我又跑回去看一遍之前上的docker影片，發現我的問題他根本都有教...😅，所以說！沒有實際遇到問題練習過的東西，光用看的，即使只過了一個月還是都忘記了🤦🏻‍♀️🤦🏻‍♀️🤦🏻‍♀️。<br>以上故事是我想表達實作的重要&amp;我做這個side project對我來說的價值。</p><h3>結論</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RiPiuTtv0oiWyDeZAwFxuQ.png" /></figure><p>這個side project如果把它當一個正式的產品來看的話，要再加強和修改的地方當然還超多，不過雖然它是一個很小的project，但我覺得我當初一開始寫它想達成的目的都算是有達成，寫完這個side project後對於下一個side project就可以有更高的要求，也還有一些這次這個project裡沒有用到或做到的東西(例如：interceptor、更明確的專案內分層架構)，想在下個side project裡做。這次寫完這個side project我個人覺得學到也練習到蠻多東西，雖然都還是很淺，但只能感嘆自己要練的東西真的還太多…orz</p><p>最後再次跪求，如果有好心人願意幫我code review或給我一點建議的話，小人必感激您的大恩大德，祝願您好人有好報一生平安🥺🥺🥺🙇🏻‍♀️🙇🏻‍♀️🙇🏻‍♀️</p><p>#sideproject</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc72892ba392" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[.NET Conf Mini初體驗]]></title>
            <link>https://medium.com/@jiang.tingyu/net-conf-%E5%88%9D%E9%AB%94%E9%A9%97-b1588874c017?source=rss-49e68c7312f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1588874c017</guid>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[talks]]></category>
            <category><![CDATA[dotnet]]></category>
            <dc:creator><![CDATA[Jiang Tingyu]]></dc:creator>
            <pubDate>Sun, 20 Nov 2022 09:52:11 GMT</pubDate>
            <atom:updated>2022-11-26T16:35:42.412Z</atom:updated>
            <content:encoded><![CDATA[<p>Yo yo yo 睽違一個半月終於出新文章啦😂 今天來分享我昨天第一次去參加實體技術conference的心得╰(*°▽°*)╯</p><p>這個活動是一個團體(?)/社團(?)叫<a href="https://mvc.tw/">twMVC</a>舉辦的<a href="https://skilltree.my/Events/2022/11/19/twmvc46"> .NET Conf Mini 2022</a>，是跟風微軟的大型活動 .NET Conf 所舉辦的 Local Event，活動詳細內容請看：</p><p><a href="https://skilltree.my/Events/2022/11/19/twmvc46">twMVC#46_dot net Conf Mini 2022 - SkillTree 我的技能樹</a></p><p>我也是一個巧合之下才剛好在活動前兩天被推坑去參加，在此感謝推坑我的引路人們✧◝(⁰▿⁰)◜✧</p><figure><a href="https://www.facebook.com/twmvc/"><img alt="" src="https://cdn-images-1.medium.com/max/736/1*zfDszaTTsDgtDLeXaKbOrg.png" /></a><figcaption>媽媽我在這✧◝(⁰▿⁰)◜✧</figcaption></figure><h4>這次活動議程有四個主題：</h4><blockquote>1. Azure DevOps的高階工程技術實踐<br>2. .NET programmer 與區塊鏈的距離<br>3. SQL Server 資料分析大躍進 Machine Learning Services<br>4. 一探 C# 11 與 .NET 7 的神奇</blockquote><p>從早上十點到晚上六點，除了以上主題之外還有一個閃電秀，是有個人分享一個叫Microsoft Orleans的框架，然後打廣告他寫了非常多跟這個技術有關的技術文章😂</p><h3>心得</h3><p>可能也因為我對於DevOps比較有興趣，我個人覺得第一場收穫最多，感覺有學到東西又能引發反思。</p><p>講師提供的優質筆記：</p><p><a href="https://hackmd.io/@twdeveloper/ByFfreJZo">https://hackmd.io/@twdeveloper/ByFfreJZo</a></p><p>我在演講中問了講師一個問題：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*c7W2-cJSq2yepoBf91cebQ.png" /><figcaption>是code review他打錯字惹</figcaption></figure><p>因為我曾聽人家說過他們公司(優質外商)不喜歡做Pair Programming因為很花時間和人力成本，而且DevOps和CI/CD的其中一項特質不就是為了自動化部屬流程進而降低人力需求？為了達到持續快速交付而增加人力成本進行Pair Programming，怎麼感覺似乎有違CI/CD的目的？</p><p>不過講師給我的答案我覺得也很有道理，因為主題是在講持續快速交付，所以Pair Programming的反饋可以很即時，有問題的地方可以立刻改，反觀發PR的code review還需要來來回回的修改，會拉長交付所需的時間，進而自然會影響交付的速度。</p><p>但聽完人家的CI/CD再看看自己現在工作的整合交付流程，心得只有一個字：想哭 ಥ_ಥ ……，沒有PR、沒有code review更不用談Pair Programming，沒有敏捷但又有某些少部分的自動部屬，欲哭無淚……😭</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uQHCQS3S-XX_-OnptQuReQ.jpeg" /><figcaption>非常有活力的Bill叔</figcaption></figure><p>剩下的三場講座，我覺得以我目前可預期的未來，老實說實用性偏低😅，但就是一個good to know的概念，可以算是一些有趣的知識¯\_(ツ)_/¯</p><p>不過還有一點值得一提的是，在第三場講SQL Server的部分，講到其中一個轉型的設定，給了我一點靈感解決之前同事在工作上遇到有關ADO.NET的疑問，當時和同事沒討論出一個結果，我會後也有去跟講師討論，雖然講師說不清楚ADO.NET的部分，但也有提供一點方向，所以我覺得雖然議程本身的內容並不是說對我來說非常受用，但多多接觸各種不同面向的技術知識，對於提供靈感來解決問題還是很棒的🥳🤩</p><p>最後稱讚一下這次的活動，雖然要門票400塊，但我覺得是物超所值阿，其中一個原因是因為獲得很多贈品🤣🤣🤣</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q0Ckkc-_D_yMpDUXDk0_aw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9nBKcq3r7-jquHjzBVECTg.jpeg" /></figure><p>贈品之中還有不少MVP的周邊，但我自認不夠格所以沒拿(｡ŏ_ŏ)，不然擺個MVP的水壺在桌上看了都覺得壓力大(╥﹏╥)</p><p>不過平心而論還是一個值得參加的活動啦~🤗🤗🤗</p><p>#.NET #conference #twMVC</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1588874c017" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux cmd — My Github Gist]]></title>
            <link>https://medium.com/@jiang.tingyu/linux-cmd-my-github-gist-48a1f3c5653a?source=rss-49e68c7312f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/48a1f3c5653a</guid>
            <category><![CDATA[gist]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Jiang Tingyu]]></dc:creator>
            <pubDate>Sat, 01 Oct 2022 07:44:13 GMT</pubDate>
            <atom:updated>2022-10-01T07:51:48.904Z</atom:updated>
            <content:encoded><![CDATA[<h3>Linux cmd — My Github Gist</h3><p>上個禮拜<a href="https://medium.com/@jiang.tingyu/docker%E5%BF%83%E5%BE%97-8bf079d8e1f4">Udemy — Docker 心得 (KodeKloud)</a>那篇寫到linux指令很欠學，結果我上完Docker才發現他其實有個<a href="https://kodekloud.com/courses/devops-pre-requisite-course/">DevOps Pre-Requisite Course</a>，內容超級豐富，從linux basic、networking到security、部屬等等，完全就是個大補帖！！！上禮拜剛好KodeKloud free week最後兩天，就卯起來上課(不得不說我覺得KodeKloud真的教得很不錯，我完全被圈粉🤩)，<a href="https://kodekloud.com/courses/devops-pre-requisite-course/">DevOps Pre-Requisite Course</a>是給我上完了，但還有另一個<a href="https://kodekloud.com/courses/the-linux-basics-course/">Linux Basics Course</a>就來不及在免費的時間內上完了😢</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xohbKVGkEawL8C1bbYitVQ.png" /><figcaption>又一張雞肋無比的證書🤣</figcaption></figure><p>回歸正題，開始學Docker之後發現指令真的太多，加上Linux就已經多到記不得了，不寫筆記一定會忘，於是效仿強者我同事之指令魔人，把指令筆記寫在Github Gist上🧐，要用的時候就很容易找😙</p><blockquote>我的Linux cmd筆記：<a href="https://gist.github.com/tingyuJ/cc62a7cea43cedf3682022f014313128">https://gist.github.com/tingyuJ/cc62a7cea43cedf3682022f014313128</a></blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4c1f08f6a00d20b29c87114cac917a6d/href">https://medium.com/media/4c1f08f6a00d20b29c87114cac917a6d/href</a></iframe><p>這偏廢文就到此結束😂，我只是想分享我學了一點Linux，歡迎大家去看我ㄉ筆記~</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48a1f3c5653a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker心得]]></title>
            <link>https://medium.com/@jiang.tingyu/docker%E5%BF%83%E5%BE%97-8bf079d8e1f4?source=rss-49e68c7312f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bf079d8e1f4</guid>
            <category><![CDATA[udemy]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[kodekloud]]></category>
            <dc:creator><![CDATA[Jiang Tingyu]]></dc:creator>
            <pubDate>Sat, 24 Sep 2022 10:38:12 GMT</pubDate>
            <atom:updated>2022-09-24T14:30:52.869Z</atom:updated>
            <content:encoded><![CDATA[<h3>Udemy — Docker 心得 (KodeKloud)</h3><p>最近公司教育訓練有一系列Udemy課程可以選，原本主管指定我們上Angular，不過我真的對前端沒甚麼太大的熱忱，所以就跟主管討論可不可以選我有興趣的docker跟微服務，然後主管也同意🙌🏻🥳🙌🏻(聽說別的部門有人想選別的被主管打槍...)，原本想連k8s一起選但還是先一步一步慢慢來😅，本來還有備案如果被打槍想選Mongo db或Jenkins，結果老闆欣然同意了就以後再說吧(堆積如山的學習清單........😓)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tOAqMm5OegAvf6FRs4g9uA.jpeg" /></figure><figure><a href="https://kodekloud.com/certificate-verification/83A7C695ED-2D0645592C54-83A193859F/"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZjfF3q3pecYaMBijeqKIA.png" /></a></figure><p><a href="https://www.udemy.com/course/learn-docker/">這個docker的課</a>其實是另外一個教學機構叫<a href="https://kodekloud.com/">KodeKloud</a>的課，但他們也把課拿去Udemy上賣，我覺得很聰明因為我完全成功被導流了😂，他們的課主要偏雲端和DevOps居多，我覺得他們的優點是有提供lab的環境，每個段落都可以實際練習，對學習蠻有幫助，即使在Udemy上買的也會提供他們的lab環境。不過我上完之後發現他這整個課<a href="https://www.youtube.com/watch?v=zJ6WbK9zFpI">完整的lecture內容</a>完全免費放在youtube上，如果你不需要lab跟證書的話也可以直接省一點小錢😂</p><p>在寫程式的人沒有用過也一定有聽過docker、容器化這類的詞，尤其現在雲端、微服務、CICD、DevOps應該是未來主流趨勢，所以感覺就整個很欠學阿😂😂😂，況且我本身就對雲端和DevOps有興趣，這次學完了之後也覺得真的蠻有趣，同時也覺得發明這些的人都是天才吧…</p><p>Docker是甚麼應該也不用我在這邊介紹，我主要就寫些心得吧：</p><p>首先一開始上的時候其實有點傻眼，因為docker是用Linux系統，然後他也用linux系統教，然後docker基本上就是一堆指令，沒別的了，所以一開始很多linux指令都看不懂(現在還是很多...)，然後跟著他在我的windows上操作都出不來，不過lab環境是linux，所以基本上還是都有學到也有練習到，只不過在本機上操作就要常常去查windows的對應是甚麼是我唯一的小抱怨，雖然docker要繼續學下去的話是<strong>一定</strong>要去把linux指令補起來(堆積如山的學習清單again…🤦🏻‍♀️)。然後Windows Docker Desktop除了刪東西的時候用按的很快之外我目前是覺得沒啥卵用，希望他之後可以發揮一點功能🧐</p><p>課程其中有一個練習要部屬一個需要五個服務的專案(python front-end 、redis、.net back-end、mysql、node.js return front-end)，我覺得真的很酷🤓，不過我目前的工作基本上都用不到這麼多種服務，三個就極限(前端、後端、DB)，而且我也碰不到部屬…，所以我期待我之後上完另一個Udemy微服務的課之後可以做出一些side projects應用一下這些東西🤔</p><p>話雖說如此我還是有做了一些應用練習😌，把我之前CS50 final project用python寫的網站Wordle Helper容器化推到docker hub上🤩🤩🤩</p><p>So here’s my first docker image ✌🏻<br>On dockerhub: <a href="https://hub.docker.com/r/tingyu946/wordle-helper">https://hub.docker.com/r/tingyu946/wordle-helper</a><br>On github: <a href="https://github.com/tingyuJ/Wordle-Helper-Docker">https://github.com/tingyuJ/Wordle-Helper-Docker</a></p><p>額外一個小插曲，在講docker compose的時候講到YAML，他就提供了另外一個免費的課程：<a href="https://kodekloud.com/courses/json-path-quiz/">JSON Path Test — Free Course</a>，但這個課大概只有十分之一的內容提到YAML是甚麼LOL，不過因為他很短而且很簡單所以我就順便把他給上完了，說來慚愧，寫網頁這麼久竟然現在才知道json可以query!! 這個課同樣每個段落也都有提供quiz練習，蠻有趣的，推薦閒來無聊的人如果不知道json可以query的可以去玩一下。(然後獲得一張很雞肋的證書🤣🤣🤣)</p><figure><a href="https://kodekloud.com/certificate-verification/83A7C695ED-83A1D10309-83A193859F/"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V0K3NxVd6XL242bAkKkOtw.png" /></a></figure><p>寫完一大篇流水帳，老實說我也不知道我在寫甚麼🙃，反正這篇應該也沒什麼人會看哈哈，不過怎麼寫了這麼多篇文筆感覺好像都沒有進步餒...囧</p><p>#docker #udemy #kodekloud</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bf079d8e1f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>