Page 2 of 3
Re: suggestion: coding style
Posted: Mon Jan 02, 2012 5:36 pm
by theone
Zoey76 wrote:This topic could get sticked, but you need to keep first post for code suggestion only and clean and the other posts for opinion/talk about this topic.
That's a great idea

Subject should be changed to "Coding style" instead of "Suggestion: coding style" however. And it should be put in:
Server Development / User Contributions
Server Development / Custom server mods
Just a suggestion

You guys do what you want, I'm only trying to help
Re: suggestion: coding style
Posted: Thu Jan 05, 2012 12:38 am
by UnAfraid
I like the topic stinky on
It must be read by everyone i think i was complaining about coding style in almost every contribution untill the author started contributing with clean and understandable code
Re: Coding style
Posted: Tue Jan 17, 2012 10:44 pm
by Bloodshed
Enforcing a hierarchy for contributions should be present to enforce this.
While developers down the ladder test (and learn from) the code. A developer up the ladder should glance over the code before it gets committed to enforce the requirements.
If it doesn't meet the criteria, it should get refactored (optional: with help from the checking dev).
Re: Coding style
Posted: Tue Jan 17, 2012 11:10 pm
by Zoey76
Bloodshed wrote:Enforcing a hierarchy for contributions should be present to enforce this.
While developers down the ladder test (and learn from) the code. A developer up the ladder should glance over the code before it gets committed to enforce the requirements.
If it doesn't meet the criteria, it should get refactored (optional: with help from the checking dev).
We do this with Adv. Users, and Initiates.

Re: Coding style
Posted: Fri Jul 20, 2012 10:16 am
by powerful0guardian
I have a question about code style formatter... I see on changelog L2J Devs formatting source files 10 by 10 or one by one.. My question is: would not be easier to format the whole sources and add a settings in eclipse (save actions) auto format file when you save it? I am speaking about Java sources now, ofc.
PS: I would disable formatter on javadocs and comments. (just my opinion)
PS2: + could be setted up save action as organize import and cleanup too.
Re: Coding style
Posted: Fri Jul 20, 2012 1:08 pm
by jurchiks
Already suggested both full format and "format on save", they don't like the idea. Apparently some of the devs are against a single formatting style and that's why they don't do it.
Total BS if you ask me, considering that those who are against don't even work on the public SVN (or at least rarely do).
Re: Coding style
Posted: Fri Jul 20, 2012 1:14 pm
by powerful0guardian
jurchiks wrote:Already suggested both full format and "format on save", they don't like the idea. Apparently some of the devs are against a single formatting style and that's why they don't do it.
Total BS if you ask me, considering that those who are against don't even work on the public SVN (or at least rarely do).
make poll for that too in that case... and who don't work on public SVN, his opinion is not important.
Re: Coding style
Posted: Sat Jul 21, 2012 2:21 am
by Zoey76
I'm against full format in one change-set, do you think I rarely work on SVN?
Anyway, it's being done for each file every time a major rework is done, or when a developer feels like it.
Re: Coding style
Posted: Sat Jul 21, 2012 10:06 am
by powerful0guardian
well, than if you are against formatting in one big changeset, than I can prefer to spend an afternoon for it and format the whole source file by file and changeset by changeset

(anyway jurisicks said only the inactive members are against formatting, so I was speaking about them)
Re: Coding style
Posted: Sat Jul 21, 2012 10:15 am
by Aikimaniac
powerful0guardian wrote:well, than if you are against formatting in one big changeset, than I can prefer to spend an afternoon for it and format the whole source file by file and changeset by changeset

(
anyway jurisicks said only the inactive members are against formatting, so I was speaking about them)
not sure where from you have the bold marked crap that somebody inactive is against formating..all that involves SVN and code formating is up to active core devs in lead by Zoey...
Re: Coding style
Posted: Sat Jul 21, 2012 10:20 am
by jurchiks
Not always the files touched by a commit are formatted. If that were the case, most of them would be formatted by now, but it's not.
As you said, "every time a major rework is done, or when a developer feels like it" - so not enforcing style at all. You could at least do that, after all, you ask that of all user contributions, but devs are cool?
At the very least, you could format/cleanup the files/packages that haven't been touched for a longer period of time.
P.S. I didn't say "only the inactive devs", I said "some of the devs" and "those who don't work on the public SVN or rarely do", like Nik, for example.
And again, Aikimaniac, you only show up to argue.
Re: Coding style
Posted: Sat Jul 21, 2012 10:44 am
by Aikimaniac
Argue? Maybe you like to argue..i dont.. When there is reason to step up to correct those who write bullshit i step up...spreading lies about devs is for me relevant matter to step up and comment it.. As you may figured i ignore flames and do not argue on forums as well for very long time (cant say the same about you)...
Re: Coding style
Posted: Sat Jul 21, 2012 11:27 am
by powerful0guardian
ah, than okey, sorry I missunderstand something while reading
All in one, I wanted to say: would be far easier to do all in one, at one time instead of file by file..

(my joke also wanted to proved how it looks like)
PS: No offense, ofc I love Zoey and I don't have problems with her

Re: Coding style
Posted: Thu Aug 09, 2012 11:26 pm
by UnAfraid
powerful0guardian wrote:PS: No offense, ofc I love Zoey and I don't have problems with her

her - him
Re: Coding style
Posted: Fri Aug 10, 2012 8:10 am
by jurchiks

but srsly, old post?