普通青年、二逼青年与文艺青年的Java代码缩进

普通青年

while(true) {
    if (something) {
        System.out.println(something);
        break;
    }
}

特点: tab与空格混用,无其他特点。
常见于:各类代码仓库。

二逼青年

while(true)
{


    if (something)
    {
        System.out.println(something);
        break;
    }

}

特点:总担心代码不够长
见于:各类劣质技术书籍

文艺青年

while(true)
  {
  if (something)
    {
      System.out.println(something);
      break;
    }
  }

特点:普通Java青年永远不会理解的缩进,lisp程序员会心一笑
见于:Clojure源码

8 thoughts on “普通青年、二逼青年与文艺青年的Java代码缩进

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>