ãã®ã¨ã³ããªã§ã¯ãYegor Bugayenkoã«ããè¨äºãGetters/Setters. Evil. Period.ãç´¹ä»ããã (Yegorããå訳ã¨è»¢è¼ã®è¨±å¯ã¯å¾ãã) 以ä¸ã¯ãã®å ¨æã®å訳ã ããæè¨³è¶ è¨³ãæ··ãã£ã¦ããã®ã§ããã¨ã®ãã¥ã¢ã³ã¹ãç¥ããããã°å è¨äºãèªãã§ãããããèªã¾ãªãã¦ãããã 2003å¹´ã«Allen Holubãæ¸ããWhy getter and setter methods are evilã¨ããæåãªè¨äºã«ç«¯ãçºããå¤ãè°è«ããããããã¯ãgetter/setterã¯ã¢ã³ããã¿ã¼ã³ã§é¿ããã¹ããã®ãªã®ãã ãããã¯ãªãã¸ã§ã¯ãæåããã°ã©ãã³ã°ã«å¿ é ãªãã®ãªã®ãã¨ãããã®ã ãã®è°è«ã«å°ãã ãç§ã®æè¦ãå ãããã¨æãã ä¸è¨è¨äºã®è¦æ¨ã¯ããã ã getterãsetterã¯ã²ã©ãæ £ç¿ã§ããããã使ããã¤ãã¯ããããã誤解ã®ç¡ãããããä¸åº¦è¨ããã ç§ã¯get
{{#tags}}- {{label}}
{{/tags}}