What's the point of the deviation of java code style in Cassandra?

2012-01-27 Thread bxqdev

Hello, Cassandra Developers!

What's the point of the deviation ("important exception") from the Sun's 
Java coding convention in Cassandra's java code Style:


"{ and } are always placed on a new line"

Why is that??

thanks.


Re: What's the point of the deviation of java code style in Cassandra?

2012-01-27 Thread bxqdev

i guess you mean it's not a constructive question.
it would be, it there wasn't a standard: Sun's Java coding convention, 
which already says how to place curly braces correctly.


why deviate from the de facto standard for no reason?

thanks.

On 1/27/2012 3:48 PM, Stephen Connolly wrote:

http://programmers.stackexchange.com/questions/2715/should-curly-braces-appear-on-their-own-line

On 27 January 2012 11:36, bxqdev  wrote:


Hello, Cassandra Developers!

What's the point of the deviation ("important exception") from the Sun's
Java coding convention in Cassandra's java code Style:

"{ and } are always placed on a new line"

Why is that??

thanks.





Thift vs. CQL

2012-01-27 Thread bxqdev

Hello!

  Datastax's Cassandra documentation says that CQL API is the future of 
Cassandra API. It's also says that eventually Thift API will be removed 
completely. Is it true? Do you have any plans of removing Thift API, 
leaving CQL API only??


thanks.


Re: What's the point of the deviation of java code style in Cassandra?

2012-01-27 Thread bxqdev
yeah, i guess that's the main reason. another one is that root developers probably have c++ background. curly braces on the new 
line, short and ugly classnames - are the signs of c++ developer in java universe. and since cassandra uses thrift, which is c++ 
related, it's not a surprise. but i guess it's not that important, though i would explore cassandra's code with more joy, if it 
was written in a proper code style :)


On 1/28/2012 12:11 AM, Eric Evans wrote:

On Fri, Jan 27, 2012 at 5:36 AM, bxqdev  wrote:

Hello, Cassandra Developers!

What's the point of the deviation ("important exception") from the Sun's
Java coding convention in Cassandra's java code Style:

"{ and } are always placed on a new line"

Why is that??


That is how it came from Facebook.  Doing it differently afterward
would just make things inconsistent (which is worse), and reformatting
the entire codebase is disruptive on a number of fronts.



Re: What's the point of the deviation of java code style in Cassandra?

2012-01-27 Thread bxqdev



On 1/27/2012 10:49 PM, Tatu Saloranta wrote:

On Fri, Jan 27, 2012 at 4:05 AM, Stephen Connolly
  wrote:

You perhaps are not a veteran of the braces wars of 1973-2011...

Please don't try to start them up again!

Every project has its own style. Stick to that style.


+1

known as the "When in Rome..." convention.


what's that?



-+ Tatu +-


Re: What's the point of the deviation of java code style in Cassandra?

2012-01-27 Thread bxqdev

that's a disambiguation wiki page. what exactly are you talking about?

On 1/28/2012 2:02 AM, Dave Brosius wrote:

  Might want to reviewhttps://issues.apache.org/jira/browse/CASSANDRA-3649when in rome... 
is http://en.wikipedia.org/wiki/When_in_Rome  - Original Message 
-From:"bxqdev">;bxq...@themailbay.com


Re: What's the point of the deviation of java code style in Cassandra?

2012-01-27 Thread bxqdev

i guess that's what nazis cited to jews in 30's ;)

On 1/28/2012 2:38 AM, Peter Schuller wrote:

that's a disambiguation wiki page. what exactly are you talking about?


http://en.wiktionary.org/wiki/when_in_Rome,_do_as_the_Romans_do

Can we *please* stop this thread?



Re: What's the point of the deviation of java code style in Cassandra?

2012-01-28 Thread bxqdev



On 1/28/2012 11:11 AM, Tatu Saloranta wrote:

On Fri, Jan 27, 2012 at 3:18 PM, bxqdev  wrote:

i guess that's what nazis cited to jews in 30's ;)



Ok everyone -- it's now ok to stop the discussion, as per Godwin's
law! [http://en.wikipedia.org/wiki/Godwin%27s_law]


i was just kidding. it's also ok to stop the thread. i got the answers. thanks 
:)



-+ Tatu +-