I would like to review the style guide of other projects, like HBase, and so.
Btw, IMHO, I don't like using underscore as prefix for fields. We're using Java and the expression "class member variable" is from C++, and also underscore style came from C++. We need to avoid mixing other languages' style as well. Thanks, Jungtaek Lim (HeartSaVioR) 2017년 4월 26일 (수) 오전 7:10, Kyle Nusbaum <[email protected]>님이 작성: > Now that most of our code is in Java, I think it might be time to revisit > the issue of having some official and enforced code style. > I don't have very strong feelings about most of it, but here is what I was > thinking as a start, since I've seen this style quite a bit, and I've found > it makes code pretty easy to read: > 1. Indentation is 4 spaces per level (no tabs) > 2. All class member variables begin with underscore3. No wildcard > imports4. if / else / for / etc. always get curly braces. > There are obviously tons of other things, and we can get as picky as we > want, but I think enforcing at least these rules would go a long way to > making the code more consistent. > > Thoughts? > > Thanks, > -- Kyle
