Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
ä¾ãã°ãããªããé©ãã»ã©è¡æãªéçºãã¼ã ã®ã¡ã³ãã¼ã§ãã³ã¼ãã¬ãã¥ã¼ã®ã¿ã«ä¸æ¥ã®æéã確ä¿ãã¦ããã¨ãã¾ãããããä½æ¥ãéå§ãã¦2æéå¾ãç¼é¡ãå¿ãã¦ãã¦ãã¾ããååä¸ã¯ã¼ãããã¨ããã«ã©ãã«ãªè¡¨ç¤ºãè¦ã¤ãã¦ããã ãã ã£ãã¨ãããã¨ã«æ°ã¥ããã¨ãã¾ãããã¦ãããªãã¯ã©ããã¾ãã? 家ã¾ã§æ©ãã¦10åãããããªããã天æ°ãè¯ããã°ãç¼é¡ãåãã«å¸°ãã®ãä¸çªã§ããã§ãæ家ãåºãã¨ããæ»æçãªã¹ãºã¡ããã®ç¾¤ããç¼é¡ã®ç½®ãã¦ããé¨å±ã«å·£ãä½ã£ã¦ãéªéãããããªãæ§åã ã£ããã©ããã¾ããï¼ ããããæã¯ãã¡ãããã³ã³ã¿ã¯ãã¬ã³ãºãä»ãã¦ãããµãããã¦ãæ¥ããããæããããªãããã«ããã®ãããã§ããããå®éã«èªããã¨ãªãè¨å¤§ãªéã®ãã¡ã¤ã«ãè¦åãããã¨ãã§ããã¨ãããã¨ãè¦ãã¦ããã¦ä¸ããã åèã³ã¼ã 1 ä¸å®ã®ç¨®ã¯éé¢ããã¹ãã ã¨ãããã¨ã«èª°ãç°è«ã¯ãªãã§ããããããã¦ãã¡ãããããããã¯ã©ã¹ã¯ä¸
DRYååã«å¾ããã¨ããã»ã©ããã¹ãã³ã¼ããã©ãã©ãèªã¿ã¥ãããªãã The RSpec Bookã«çãããããã¨æã£ã¦èªãã§ã¿ããã®ã®ãããããããã¨ä¸è¨è¿°ã¹ã¦ããã ãã ã£ããè¾ãã ãã¹ãã³ã¼ããèªã¿ã¥ãããªãä¾ã示ãããã«ã1ã¤Rubyã®ã©ã¤ãã©ãªãã¤ãã£ãã å¤ã¨ãã¿ã¼ã³ãä¸ãã¦Validationãè¡ãæ©è½ãæä¾ããã©ã¤ãã©ãªã å®è£ 60è¡ããã¹ã120è¡ãªã®ã§ã詳ããè¦ãããã°ããèªããã¨æãã æè¿ä¸æ¬æãªãããã©ãã©ãã¼ã ã®å½ååãä¸ãã£ã¦ããã¨æãã avalon - A validator implementation for Ruby https://github.com/r7kamura/avalon åé·ã ãèªã¿ãããä¾ letãsubjectããã¼ã«ã«å¤æ°ãä½ãç¨ããã«çç´ã«æ¸ãããã¹ãã³ã¼ãä¾ããã¡ãã åé·ã ãèªã¿ãããããã¹ãã³ã¼ããè¦ãã°ã©ã¤ãã©ãªã®ä½¿ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}