Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
ã¢ã¡ãªã«äººã§ãã Hello ð ãã®è¨äºã®ç®ç å¤ãã®æ¥æ¬äººã¯èªåã®è±èªåã«ã¯èªä¿¡ããªãã§ã¯ãªãã§ãããããæ®å¿µãªãããè±èªããããããããè±èªãå ¨ç¶ã§ããªããã¨ãã声ãããã£ã¡ã ãèãã¦ãã¾ããã§ããä»ã¾ã§è±èªãã§ãã¦æå³ãã¡ããã¨ä¼ããä½äººãã®æ¥æ¬äººã«ä¼ã£ããããã¾ããå®ç§ãªè±èªã§ã¯ãªããã©(å¤å½äººãè±èªã§ãã¹ãæããã...)ãããã°ã£ã¦è©±ããã¨ããã®ã§å åä»äºãã§ãã人ãã¡ãããããããã°ã姿å¢ã¯ãªã¼ãã³ã½ã¼ã¹ã®ããã°ã©ã ãè±èªåã®ããã°ã©ã ã«æãåºãããã«ã¯ä¸çªå¤§äºãªãã¨ã ã¨æãã¾ãï¼å¤å½äººå´ããããå©ããã¾ãï¼ãæ¥æ¬ã®æåã§ã¯ãç§ã¯ã§ããï¼ãã¨èªæ ¢ãããã¨ã¯å°ãªãä¸ããã®è¨äºãéãã¦ãæµæ¢ã«è©±ããªãã¦ãèªåã®ããã°ã©ãã³ã°ã®å½åã®ä»æ¹ã«ã¯ã¡ãã£ã¨ã ãã§ãèªä¿¡ãæãããããªã¨æãã¾ããå®ç§ãããªãã¦ããã§ããLet's go! åããã¦èªãã§ããã ããã ãæ¥æ¬äººã¨ã³ã¸ãã¢å¿
ãã§ãã¯ãã¼ã¯ãã¤ããæå³ã§ check ã使ãå ´åã¯ä¾å¤ã check èªä½ãé¿ãããå ´å㯠putCheckmark ã¨ããã change ä½ãã©ãå¤æ´ãã¦ããã®ãããããªãã check ã¨åæ§ã«å ·ä½çãªååã«ã§ããªããèãã¦ã¿ãã¨ããã ä¾å¤ã¨ã㦠isChanged ã®ãã©ã°ãå¤æ´ããããã® Change ã¡ã½ããã«ä½¿ãå ´åãããã xxxManager / xxxController ããããååãã¤ããã¨ã¯ã©ã¹ãè¥å¤§ããããã åä¸è²¬ä»»ã®ååã«ã®ã£ã¨ã£ã¦ã¯ã©ã¹ãè¨è¨ããã¹ãã UNIX å²å¦ã«ããSmall is beautiful.ãã¨ããèãæ¹ãããã xxxType, xxxData, xxxItem, xxxInfo åé·ã«ãªããããã Type, Data, Item, Info ãåã£ã¦ãæå³ãéããªããæ¤è¨ãã¦ã¿ãã 使ããªãã»ããããè¨è compare æ¯
ãã®è¨äºã¯::..: glen.nu :.: ramblings :.: on code review :.::ã®æ訳è¨äºã§ãã@9lenæ°ã®è¨±å¯ãåãã¦æ稿ãã¦ãã¾ãã誤ãã»ä¿®æ£ãªã©ãããã¾ãããã@iwashi86ã¾ã§ãé£çµ¡ããã ãã¾ãã¨å¹¸ãã§ãã This article originally appeared in English at :..:: GLEN D SANFORD :.: RAMBLINGS :.: ON CODE REVIEW ::..: and has been translated with @9lenâs permission for posting to this blog in Japanese. ãã®è¨äºã¯2014å¹´3æã«æ¸ãã¦ãããTwitterã§ã¦ã¼ã¶æ¤ç´¢ãã¼ã ãç§ãçãã¦ããããã®è©±ã ããã®è¨äºã¯ãã³ã¼ãã¬ãã¥ã¼ã«é¢ããã»ãªãªã¼ã»ã¢ããã¼ããä½ç³»å
ãã¼ã¿æ§é ãªã©æè¡çãªèæ¯ãã¡ããã¨ç¥ã£ã¦ããã°ããã¼ã¿æä½ã«é¢ããæ£ããè±èªã使ãããã¼ã¦è©±ã§ããç¨èªã®ã¤ã¡ã¼ã¸ãã¤ãããããã«ãã¦ãã¾ãã®ã§ãshift / unshift ã¨ãã¤ã¡ã¼ã¸ã§ããªãæ¹ãã©ããã 1. push / pop = ã¹ã¿ã㯠push pop ã¯ãã¹ã¿ãã¯ã®ç¨èªã§ããããã pop ã¯ã¹ã¿ãã¯ããåãåºããpush ã¯æ¿å ¥ããäºãæå³ãã¾ããJavaScript ã Ruby ã® Array ã«ã¯ãã¹ã¿ãã¯ã¨ãã¦ã®ã³ã³ã»ãããããã®ã§ãpush / popã¨ããç¨èªã使ããã¾ãã 対ãã¦ãJavaã® ArrayList (ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯ Collectionï¼ ã¯ãåãªãéåã表ãã¤ã³ã¿ã¼ãã§ã¼ã¹ãªã®ã§ãæ½è±¡åã®ããã« add / remove ã¨ãããã¼ãã³ã°ã使ããã¾ããããããã°ãJavaã«ã¯ãStackã¨ããã¯ã©ã¹ãå¥éç¨æããã¦ãã¾ãããStack
ããããã°ã©ãã¼ï¼ã¨ã³ã¸ãã¢ï¼ã¯ã æ°å¦ãå¾æãªäººãããªãã¨åºæ¥ãªãã¨ãè¨ãããããã¾ããã å人çã«ã¯æ°å¦ã¨ããããã è±èªãåºæ¥ãï¼å¥½ããªï¼äººã®æ¹ãæå©ã ã¨æã£ã¦ãã¾ãã ã ã£ã¦ããã°ã©ãã³ã°ã£ã¦ã³ã¡ã³ã以å¤è±èªã§ããã ããªã§ãããã¨ãã¯ããã¾ããã©ï½ åã¯å¦çæ代ãã©ã¡ããã¨è¨ãã¨æ°å¦ãè¦æãªã¿ã¤ãã§ãããã è±èªã¯ããã¨åºæ¥ãæ¹ã§ããï¼ã¨ããã好ãã ã£ãï¼ã ãã¡ãããæ°å¦ãåºæ¥ãæ¹ãæå©ã«æ±ºã¾ã£ã¦ãã¾ããã æ®éã«ã飯ãé£ã¹ã¦ããåã«ã¯ãããªã«å¿ è¦ç¡ãã¨æãã¾ãã ã¨ãããã¨ã§ã è±èªã®æå³ãç解ããã¨ãä»äºãæ´ã«æãããããªããã¨æãã¾ãã¦ã ããã°ã©ãã³ã°ã¨ãã¦ã§ãã§åºã¦ãããã©ã ã¡ãã£ã¨æå³ãåããã¥ããè±åèª30åãã¾ã¨ãã¦ã¿ã¾ããï¼ ããã°ã©ãã³ã°ã§åºã¦ããè±åèª30é¸ è±åèªèªã¿æ¹æå³ allocate ã¢ãã±ã¼ã å²ãå½ã¦ã attrï¼attributeï¼ ã¢ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}