Upgrade to Pro — share decks privately, control downloads, hide ads and more …

最近の学びを簡単にご紹介2

 最近の学びを簡単にご紹介2

A brief introduction to recent learning2

よしたろう

December 03, 2022
Tweet

More Decks by よしたろう

Other Decks in Programming

Transcript

  1. ܧঝʹ͓͚ΔεʔύʔɾαϒؒͰͷܕͷޓ׵ੑύλʔϯ 3. 不変・共変・反変 B extends Aͷ࣌ B と A ͷαϒλΠϓؔ܎͸ɺҎԼͷΑ͏ʹͳΔ

    
 ෆมɿ਌ࢠؔ܎͕ͳ͘ͳΔ A a = B b;͕ෆڐՄ ڞมɿA a = B b;͕ڐՄ͞ΕΔɻී௨ ൓มɿB b = A a;͕ڐՄ͞ΕΔɻ൓ରɻ͍ͭ࢖͏Μͩʁ
  2. 3. 不変・共変・反変 public class Main { public static void main(String[]

    args) { List list = new ArrayList(); . list.add(“A”); list.add(“B”); list.add(123); list.add(“C”); . System.out.println(list); } } 4USJOHͱJOU͕ೖΓࠞ͡Δͱ$MBTT$BTU&YDFQUJPO
  3. 3. 不変・共変・反変 public class Main { public static void main(String[]

    args) { List<String> list = new ArrayList<>(); . list.add(“A”); list.add(“B”); list.add(123); // ͜ͷ࣌఺ͰΤϥʔग़Δɹ ɹ list.add(“C”); . System.out.println(list); } } -JTUܕม਺ͷMJTUʹ4USJOH͔͠ೖΕΕͳ͘ͳΔ +BWBͷҾ਺͸ෆมੑͷͨΊ0CKFDUܕ΋ೖΕΕͳ͍
  4. 3&45͸ ΞʔΩςΫνϟͰͳ͘Ұ࿈ͷઃܭ৚݅Ͱ͔͠ͳ͍ 3&45GVM "1*͸ 30" ͷ࣮૷ɺ30" ʹଇΓ3&45GVM "1* ͸࣮૷͞ΕΔ Ϧιʔεࢦ޲ΞʔΩςΫνϟ

    30"ɿ3FTPVSDF0SJFOUFE"SDIJUFDUVSF  30"͸ϦιʔεΛத৺ʹߟ͑ΔΞʔΩςΫνϟ Ϧιʔεͱ͸8FC্ʹଘࡏ͢Δ͋ΒΏΔ৘ใͷ͜ͱ Ϧιʔε͸গͳ͘ͱ΋63* Λඞͣͭ࣋ͭ 30" ʹ͓͚Δͭͷಛੑ ΞυϨεՄೳੑɾ઀ଓੑɾ౷ҰΠϯλʔϑΣʔεɾεςʔτϨεੑ 4. ROAとREST
  5. ҆શੑΛຬͨ͞ͳ͍(&5 
 [GET] /notifications/1/open
 ௨஌Λطಡʹߋ৽͢Δ"1*ɿϦιʔεͷঢ়ଶΛมߋ͢ΔͨΊ҆શੑҧ൓ɻ 
 ҆શͱ͸Ϧιʔεͷঢ়ଶΛมߋ͠ͳ͍ͱ͍͏ࣄɻ 
 ႈ౳ੑΛຬͨ͞ͳ͍%&-&5& 


    [DELETE] /notifications/latest
 ࠷৽ͷ௨஌Λ࡟আɿ࠷৽ͱ͍͏ఆ͔ٛΒ͢Δͱɺ࠷৽Λ࡟আͨ͠৔߹ɺ࡟আ͢Δલͷ Ұͭલ͕࣍ͷ࠷৽ʹͳΓɺಉ͡ϦΫΤετΛߦͳͬͨ৔߹ɺ࣍ʑͱʮ࠷৽ʯͷϦιʔ ε͕࡟আɻႈ౳ͱ͸ಉ͡ϦΫΤετΛߦͬͯ΋݁Ռ͕มΘΒͳ͍ࣄɻႈ౳ੑҧ൓ɻ 7. 安全性と冪等性