Back in January, Sandi Metz introduced her rules for developers in a Ruby Rogues podcast episode episode. Around the time Sandiâs rules were published, the team I am on was starting a new project. This post details the experience of that team applying Sandiâs rules to the new application. The rules _There are four rules._ Here are the rules: Classes can be no longer than one hundred lines of code.
â â 第ï¼ç« ï¼ï¼ç¨®é¡ã®ã¦ãã¤äºº â ã¢ã·ã¥ã±ãã¸ã ã¨ã¹ãã¡ã©ãã£ã âãªããä¸æè°ãªãã¨ã«ãã¦ãã¤äººãã¨ããèªã®å®ç¾©ã¯ãå¦åçã«ãæ¿æ²»çã«ãé常ã«ããã¾ããªç¶æ ã«ç½®ããã¦ããã ãã®ãã¼ããåãä¸ããã¨å¿ ãããã¦ãã¤äººã¨ããæ°æã¯ããããåå¨ããªãã®ã ãã¨ããã¦ãã¤äººã¯äººç¨®ã§ã¯ãªããã¦ãã¤æã«æ¹å®ããè ãã¦ãã¤äººã«ãªãã®ã§ãããã¨ãã主張ãä¸è¬ã®ç 究è ã®éããåºã¦æ¥ããå½¼ãã¯ããã主張ãã¦ãã¾ãªãã âã¦ãã¤äººå½å®¶ã¤ã¹ã©ã¨ã«å ±åå½ã«ããã¦ã¯ã©ããã¨ããã¨ã移æ°ã«é¢ããæ³å¾ã帰éæ³ãã«ããã¦ãã¦ãã¤æå¾ï¼ã¦ãã¤äººãã¨ããå®ç¾©ãæ£å¼ã«æ¡ç¨ãã¦ãããããããæ¬äººãã¦ãã¤æå¾ã§ãªãã¦ããæ¯è¦ªãã¦ãã¤äººãªãã°ã¦ãã¤äººã§ããããæ¯è¦ªãéã¦ãã¤äººã§ããå ´åãç¶è¦ªãã©ãã§ãããã¨æ¬äººã¯ã¦ãã¤äººã§ã¯ãªãã¨ããããã³ãã³ã«ã³ãã³ã§ãããããå®ç¾©ã«ãªã£ã¦ããã ã¡ãªã¿ã«ã¦ãã¤äººãä»ã®å®æã¸æ¹å®ããå ´åãã¦ãã¤æã§
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}