æ¦è¦ åèè ã®è¨±è«¾ãå¾ã¦ç¿»è¨³ã»å ¬éãããã¾ãã è±èªè¨äº: Flag arguments are a code smell åæå ¬éæ¥: 2017/05/04 èè : Jeroen Weeink ãµã¤ã: Crafting Ruby ãã©ã°å¼æ°ã¯ãã¡ã½ããã®æ¯ãèããå¤æ´ããbooleanã§ãããã©ã°å¼æ°ãããã¨ãããã¨ã¯ããã®ã³ã¼ããå¤çè¦ç´ ã«å¿ãã¦ããã¤ãã®ã·ããªãªãæ¼ãã¦ãããã¨ã示ãã¦ãã¾ããé«åº¦ãªã¬ãã«ã®ã³ã¼ãçããä½ã¬ãã«ã¡ã½ããã²ã¨ã¤ã§å³å¾å·¦å¾ãã¦ããã®ã§ãã 次ã®ç°¡åãªã³ã¼ãä¾ã§èãã¦ã¿ã¾ãããã def create_task(description, priority, preview: true, email: true) task = Task.new task.status = "open" task.description = description task.
{{#tags}}- {{label}}
{{/tags}}