http://codemonkeyism.com/generation-java-programming-style/ 次ä¸ä»£Javaããã°ã©ãã³ã°ã¹ã¿ã¤ã«ã ã£ã¦ãã¡ãã£ã¨é¢ç½ãã£ããããããã¹ã¿ã¤ã«ã身ã«ä»ãããããã°ã©ãã®ã¹ãã¼ã¸ãã²ã¨ã¤ä¸ããããã ãã©ï¼ä¸éä¸è¬ã«æ®åãããã®ã¯é£ãããã ãããªã¨ãªã¢ã¿ã 1.Final is your new love. ï¼å¤æ°ã®ï¼final宣è¨ã好ãã£ã¦è¯ãèãããæ°æã¡ãã¯ããããã©ï¼å¾¹åºããã®ã¯å¤§å¤ã 2.No setters. ãã¥ã¼ãã¼ã¿(setter)ä½ããªãã§ã³ãã¼ã³ã³ã¹ãã©ã¯ã¿ä½¿ãã¨ããªãã¸ã§ã¯ãã®æ®éæ§ä¸å¤æ§ã«ãã ããã¾ããªã ã¢ã¯ã»ãµ(getter)ãä½ããªï¼ã£ã¦è¨ã£ã¦ããã©ï¼ã¡ãã£ã¨åãããªãã£ããâ Tell, Don't Ask | The Pragmatic Bookshelf 3.Do not use loops for
{{#tags}}- {{label}}
{{/tags}}