[爆卦]clump關是什麼?優點缺點精華區懶人包

雖然這篇clump關鄉民發文沒有被收入到精華區:在clump關這個話題中,我們另外找到其它相關的精選爆讚文章

在 clump關產品中有3篇Facebook貼文,粉絲數超過1萬的網紅91 敏捷開發之路,也在其Facebook貼文中提到, 最近看 legacy code 比較進階版且很多人不覺得/不知道有問題的問題: 1. 無謂切分出很多 projects/packages; 2. 多了很多不必要的繼承關係; 3. 某些 class 不該有方法; 常見的進階 code smell: 1. Primitive Obses...

 同時也有8部Youtube影片,追蹤數超過93萬的網紅Ytower Cooking channel,也在其Youtube影片中提到,豆酥鱈魚 Flaky Bean Codfish 關鍵秘訣:豆酥和油的比例2:1最好,油量夠豆酥才炒的香酥。 Key Tip: A 2:1 proportion of dried bean bits to oil is best, only use enough oil to fry the bean...

  • clump關 在 91 敏捷開發之路 Facebook 的最讚貼文

    2019-11-07 22:15:34
    有 106 人按讚


    最近看 legacy code 比較進階版且很多人不覺得/不知道有問題的問題:

    1. 無謂切分出很多 projects/packages;
    2. 多了很多不必要的繼承關係;
    3. 某些 class 不該有方法;

    常見的進階 code smell:
    1. Primitive Obsession
    2. Data Clump
    3. Feature Envy

    上列這些問題的重點在於,大部分的工程師都是不覺得有問題。

    要設計出「簡單」、「好用」的軟體架構跟 API, 這些都是核心基本功啊...

    另一個比較特別的問題是「不必要的中間層」,通常都會得到:因為以前的 code 都這樣寫,所以要一致性。

    但為什麼這樣寫,有什麼好處,不這樣寫有什麼問題,還可以怎麼寫更簡單?通常都得不到答案。

  • clump關 在 91 敏捷開發之路 Facebook 的精選貼文

    2019-11-07 22:15:34
    有 106 人按讚

    最近看 legacy code 比較進階版且很多人不覺得/不知道有問題的問題:

    1. 無謂切分出很多 projects/packages;
    2. 多了很多不必要的繼承關係;
    3. 某些 class 不該有方法;

    常見的進階 code smell:
    1. Primitive Obsession
    2. Data Clump
    3. Feature Envy

    上列這些問題的重點在於,大部分的工程師都是不覺得有問題。

    要設計出「簡單」、「好用」的軟體架構跟 API, 這些都是核心基本功啊...

    另一個比較特別的問題是「不必要的中間層」,通常都會得到:因為以前的 code 都這樣寫,所以要一致性。

    但為什麼這樣寫,有什麼好處,不這樣寫有什麼問題,還可以怎麼寫更簡單?通常都得不到答案。

  • clump關 在 91 敏捷開發之路 Facebook 的最佳貼文

    2018-06-20 09:34:53
    有 43 人按讚


    JetBrains blog 針對常見的 method level, class level 與 general code smells 的整理。

    傳送門:https://blog.jetbrains.com/…/06/18/sharpen-sense-code-smell/

    個人經驗,最難發現的是 feature envy, 原因是通常 code 前期的 smell 在還沒消除之前,可能連職責跟類都還分不出來,就是一大坨或是散一堆的 legacy code.

    最難改變也最常見的第一道關卡是 primitive obsession, 難在大家壓根不覺得這樣寫有什麼問題,但本質上卻是超有問題的寫法,難改是因為這是大部分工程師的開發慣性。

    而 primitive obsession 不調整,一堆 code smell 就很容易卡彈,data clump, long parameters list 等等...再出現個 middle man 這問題就出現倍數的沈重。

    即便理解也發現了 code smell, 也要自己具備修改的能力與生產力,就更別說沒有測試保護,這些重構鐵定都帶著風險的。

    所以,可以說是如果程式沒有對應的測試程式,品質是很難有一定的水準的。品質不一定bug的發生與否,而是不重構的 code 是沒有品質可言的,而沒有測試程式保護,重構沒改壞只能說你好運。但能好運到什麼時候呢?通常就在不該改壞的時候爆掉。

    就像簡單設計原則第一點就是 pass the test. 不要說程式設計地多簡單優雅,沒有正確地滿足需求的期望,一切都是屁。沒有測試做保護,怎麼進行重構來消除重複、呈現意圖,怎麼盡可能用剛好、不多不少的類或介面來滿足需求。


    重構與TDD 201811梯次:https://yihuode.io/activities/662


    By the way, 我沒提到的 Long method, god class, middle man, lazy Object 這些都應該在 code review 第一層就打掉,是明顯不該那樣寫的。也是一般人還算有能力重構的 smell.

  • clump關 在 Ytower Cooking channel Youtube 的最讚貼文

    2016-10-17 18:55:46

    豆酥鱈魚 Flaky Bean Codfish
    關鍵秘訣:豆酥和油的比例2:1最好,油量夠豆酥才炒的香酥。
    Key Tip: A 2:1 proportion of dried bean bits to oil is best, only use enough oil to fry the beans to crispiness.

    材料:
    鱈魚1塊、蔥段20公克、薑片5公克、豆酥1杯、蒜末10公克、蔥花20公克
    Ingredients:
    1 codfish, green onion sgements 20 grams, ginger slices 5 grams, crisp bean bits 1 cup, minced garlic 10 grams, chopped green onions 20 grams

    醃料:
    鹽適量、米酒1大匙
    Marinade:
    Salt to taste, 1 tablespoon rice wine

    調味料:
    沙拉油1/2杯、細砂糖1茶匙、辣椒醬1大匙
    Seasoning:
    Salad oil 1/2 cup, sugar 1 teaspoon, spicy chili pepper sauce 1 tablespoon

    作法:
    1. 取一蒸盤,擺上一根筷子,再將鱈魚洗淨置於蒸盤。
    (重點提醒:魚下墊筷子可防止魚肉沾黏盤上,也更有利熱氣穿透,讓魚均勻熟透)
    2. 在鱈魚上撒上鹽及米酒,再將蔥段、薑片鋪至鱈魚上。
    3. 將作法2的鱈魚放入水已滾的蒸鍋或蒸籠中,以大火蒸約8分鐘後取出。
    4. 將筷子抽出,挑去蔥、薑後將水分倒除。
    5. 熱鍋,倒入約1/2杯沙拉油,放入蒜末以小火略炒。
    6. 接著放入豆酥炒勻,再加入糖,開小火不停翻炒。
    (重點提醒:炒豆酥時一定要以小火不停翻炒,才不容易焦。)
    7. 炒至豆酥顏色變金黃,再加入辣椒醬快炒。
    (重點提醒:加入辣椒醬風味和顏色都更好。)
    8. 最後加入蔥花炒勻,鋪至作法3的鱈魚身上即可。
    practice:
    1. Take a steaming dish, place 1 chopstick in it, then place the washed cod on the dish for steaming.
    (Key point: The underlying chopstick prevents the fish from sticking to the plate and allows for more favorable heat penetration and uniform cooking of the fish.)
    2. Sprinkle salt and rice wine onto the cod, then the spread the onion and ginger spread onto the cod.
    3. Place the codfish from step 2 down onto the steamer rack in the steamer and steam on high heat for about 8 minutes then remove it.
    4. Take out the chopstick, pick off the onions and ginger and pour off accumulated water.
    5. Pour about 1/2 cup salad oil into the wok, add in the garlic and saute over low heat.
    6. Put in the bean bits, stir well, then add the sugar stirring constantly on low heat.
    (Key Point: The beans must be stirred continually over low heat so that they don't clump together.)
    7. Saute the crisp beans until they take on a golden color, then add the chili sauce and saute.
    (Key Point: adding chili sauce adds a better flavor and color.)
    8. Finally, add in the chopped green onions and stir well. Spread onto the codfish from step 3 and that's it.

    -

    楊桃美食網
    http://www.ytower.com.tw

    天天買菜 天菜網
    http://www.skycook.com.tw

    Youtube
    https://www.youtube.com/user/ytower01

    Facebook
    https://www.facebook.com/ytower01

  • clump關 在 Pumpkin Jenn Youtube 的最佳解答

    2015-10-19 07:01:28

    ?Please like this video if you enjoyed it :)
    ?Facebook Page: https://www.facebook.com/PumpkinJenn
    ?Instagram: http://instagram.com/pumpkinjenn

    Products Mentioned:
    shu uemura brow powder*
    maybelline great lash clear mascara
    tarte tartelette clay paint liner
    makeup forever dark brown eyeshadow
    Ysl rouge pur couture glossy lip stain in no. 9
    shu uemura lip essence
    bobbi brown cream shadow stick sand dune
    skinfood shortcake eyeshadow 01
    mac tempting eyeshadow
    loveliner dark brown
    max factor clump defy mascara
    nars blush deep throat
    dior addict lipstick 451
    urban decay naked palette (sin, buck, dark horse)
    Loveliner black
    loreal nude balm lipstick 218
    l'oreal infallible lipgloss 125


    想購買美容產品又唔知邊到有得買?利用全港最具規模的美容產品搜尋器 http://www.hkbeautybible.com , 無論你想尋找那個國家或種類的美容產品,只要輸入品牌名稱、產品類型、地區等關鍵字,­­立即為你找出全港售賣該產品的店舖。大家亦可以下載 BeautyBible 手機程式 :)

    The Attic
    My hair stylist : Alex So 2117 0303
    RM1001, 10F, PACIFIC HOUSE, 20 QUEEN'S ROAD CENTRAL,HK

    ATTENTION COMPANIES:
    If you are a company interested in working with me or wanting me to review a product
    feel free to email, thank you :)

    [email protected]


    ***

    Disclaimer: This video is not sponsored by any of the companies mentioned.

  • clump關 在 Elizabeth Yeung Youtube 的最佳解答

    2015-10-01 21:25:09

    ***PLEASE EXPAND FOR MORE****

    Product Used in the video:
    Clinique anti-blemish solutions liquid makeup 65 neutral (M)
    Maybelline Pure Concealer Mineral healthy natural concealer 01 & 01
    Shu Uemura eyebrow pencil*
    Stila smudge stick waterproof eye liner
    Leanani waterproof liquid eyeliner
    Shu Uemura Cream eye shadow in G gold*
    Chanel Ombres Matelassees eyeshadow palette - Pearl River - Hong Kong Limited Edition
    Max Factor Clump Defy mascara
    Eye love magic brown mix eyelashes
    Daniel Sandler sculpt and slim-effect contour face powder
    Chanel Notorious
    Clinique cheek pop/blush pop in 15 pansy pop
    Rimmel Stay matte powder
    Shu Uemura rouge unlimited in city neon*

    What I am wearing:
    Top: Cold shoulder top from ZARA
    http://www.zara.com/hk/en/woman/tops/view-all/off-shoulder-top-c733890p2874483.html
    Bottom: Mid wash distressed Ruby denim shorts from River Island
    http://www.riverisland.com/women/shorts/denim-shorts/mid-wash-distressed-ruby-denim-shorts-665685

    Background Music:
    Ed Sheeran - Photograph (Felix Jaehn Remix)
    https://www.youtube.com/watch?v=63KRkw8f1rM

    Facebook: http://www.facebook.com/eli.yty
    Instagram: http://instagram.com/elizabethyeung
    Email me at elizabethyeung1@gmail.com

    想購買美容產品又唔知邊到有得買?利用全港最具規模的美容產品搜尋器 http://www.hkbeautybible.com , 無論你想尋找那個國家或種類的美容產品,只要輸入品牌名稱、產品類型、地區等關鍵字,­立即為你找出全港售賣該產品的店舖。大家亦可以下載 BeautyBible 手機程式 :)


    DISCLAIMER: This is not a sponsored video. All products were purchased by me except those marked with an * which was sent to me by PR. All opinions are 100% honest and my own!

你可能也想看看

搜尋相關網站