Skip to content

Conversation

@caofangkun
Copy link
Contributor

No description provided.

@longdafeng
Copy link
Contributor

why "indentation.size" and "tabulation.size" are 2, normally they are 4.

@caofangkun
Copy link
Contributor Author

@longdafeng
Different tools may define different tab size,the tab size may equivalent to 2 or 4 or 8 spaces/characters.
Defined tab size to 2 spaces, will be much easier to convert Tab(4) to 4 spaces and Tab(8) to 8 spaces.

@ptgoetz
Copy link
Member

ptgoetz commented Jan 5, 2016

I'm all for adopting a code style guide for all languages (Java, Clojure, Python, etc.), but I'd rather see a style specification documented first, then follow up with templates that implement it.

I do feel that we have a lot of code style technical debt in both Java/Clojure. If we're moving away from clojure, we don't need to worry about style too much there, but we should establish a style guide for Java source, and start cleaning up compiler warnings, PMD/Checkstyle/Findbugs issues, etc.

I would suggest a discussion on the dev@ list, and hope it doesn't become too religious. ;)

@revans2
Copy link
Contributor

revans2 commented Jan 5, 2016

+1 for what @ptgoetz said.

@d2r
Copy link

d2r commented Jan 5, 2016

+1 @ptgoetz , and I thought there was already a style for Clojure that we were supposed to use. I think even after moving mostly to Java, we will still have Clojure left. May as well include it.

@ptgoetz
Copy link
Member

ptgoetz commented Jan 5, 2016

@d2r Good point. I know there was some work done around moving to idiomatic clojure and making style consistent, but I don't think we ever put together a style guide. So our clojure code is relatively consistent in terms of style, but our java code is kind of all over the map.

I'd be in favor for establishing style guides for any languages we use.

@knusbaum
Copy link
Contributor

I'm going to close this. Please feel free to reopen or create a new PR once we have a style guide in place.

@asfgit asfgit closed this in 1e72a5b Aug 23, 2016
leedohyun added a commit to leedohyun/storm that referenced this pull request Aug 24, 2016
* upstream/master: (26 commits)
  closes apache#494
  closes apache#534
  closes apache#478
  closes apache#510
  closes apache#471
  closes apache#346
  add STORM-2016 to CHANGELOG
  STORM-2016 Topology submission improvement: support adding local jars and maven artifacts on submission
  add STORM-2047 to CHANGELOG
  add dummy whitespace to retrigger github mirror sync processor
  add Juan Paulo Gutierrez to contributor list
  add Arthur Maciejewicz to contributors
  add Dohyun Lee to contributor
  fix code in KafkaSpoutRetryExponentialBackoff in storm-kafka-client
  add STORM-2045 to CHANGELOG
  add STORM-1994 to CHANGELOG
  [STORM-2047] Add note to add logviewer hosts to browser whitelist
  Fixed log message for credential renewal.
  add STORM-2042 to CHANGELOG
  add STORM-2041 to CHANGELOG
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants