Page 1 of 1
Source code documentation
Posted: Wed Jun 08, 2011 7:20 pm
by TomDavidson
I have generated the L2JServer class documentation from the source code so I thought I'd share it all with you. I have it automatically updating when I do a rebuild form the source so it should stay relatively up to date.
API docs
If we were to follow some coding standards and include mandatory doc-block style comments at the top of each class and method it would make this much more useful. They don't take much time to write when you create or change a method so it's well worth it for the time you save trying to figure out how a functions works.
Re: Source code documentation
Posted: Thu Jun 09, 2011 7:35 am
by Flashy
great Job!
tihis helps many new "coder", to learn something about the l2j sturcture..
Re: Source code documentation
Posted: Thu Jun 09, 2011 12:20 pm
by JIV
amazing work, THX!

Re: Source code documentation
Posted: Thu Jun 09, 2011 2:35 pm
by shinomidefuego
thnk!!! great job
Re: Source code documentation
Posted: Fri Jun 10, 2011 3:06 am
by ThePhoenixBird
Excellent work!
This thread deserve a sticky!
Re: Source code documentation
Posted: Fri Jun 10, 2011 5:05 pm
by jurchiks
Generating with javadoc doesn't really require much of anything...
It is nice of course, but the problem is that l2j code documentation is terrible. There are only few classes that have complete and proper javadoc-style comments, most either have no documentation at all, except @author and, possibly, @version, or have very poor documentation.
Also it would be very hard to write the proper docs for all of them as reading through all those classes/methods just makes you see how badly written l2j actually is. I tried once, and I couldn't stop myself from rewriting most of what I read (I didn't read much though, it's just that much of a thorn in the eye).
Re: Source code documentation
Posted: Sun Jun 12, 2011 9:07 pm
by TomDavidson
No, it wasn't that tricky to get javadoc working on th source, it's now part of my build script. In fact I posted it here because I was so surprised that nobody had done it before. It's quite sparse in some places about what a function actually does though it's much easier to skim to find the function you want than the source.
My suggestion of adopting some commenting standards was to help improve this automatically generated docs to the point where it can be really useful to newcomers as well as people more familiar with the source.
I'll try and keep it up to date by rebuilding fairly frequently.
Re: Source code documentation
Posted: Fri Jul 15, 2011 8:45 pm
by Forsaiken
i could never really do smth with this docs in l2j since eclipse is showing the comments atomatically.
Also i belive that code that was hard to write should be hard to read

Re: Source code documentation
Posted: Fri Jul 15, 2011 8:53 pm
by jurchiks
Surely it wasn't THAT hard to write...
Re: Source code documentation
Posted: Mon Jul 18, 2011 2:45 pm
by siulx
any advice from where should I start to understand how the server works ?
My goal its to make a console application, and put it to talk with the server.
Re: Source code documentation
Posted: Sat Jul 30, 2011 8:11 pm
by delix
TomDavidson wrote:I have generated the L2JServer class documentation from the source code so I thought I'd share it all with you. I have it automatically updating when I do a rebuild form the source so it should stay relatively up to date.
API docs
If we were to follow some coding standards and include mandatory doc-block style comments at the top of each class and method it would make this much more useful. They don't take much time to write when you create or change a method so it's well worth it for the time you save trying to figure out how a functions works.
This is really Great job
TomDavidson !!!
Especially for novices like me
Just keep doing in this way!
siulx wrote:
any advice from where should I start to understand how the server works ?
My goal its to make a console application, and put it to talk with the server.
I'm interesting in this too. Let us know where and what we need to start with?
Thx.
Re: Source code documentation
Posted: Thu Sep 29, 2011 10:04 pm
by Aardvaark
Link Broken
Re: Source code documentation
Posted: Sat Oct 01, 2011 5:59 am
by Sirpaypi
Please re-upload.

Re: Source code documentation
Posted: Sun Oct 02, 2011 12:54 pm
by TomDavidson
Apologies for the broken link, my L2 server died and it was hosted there.
I've rebuild them to pre-Hi5 and talking to people to get them up on here with the rest of the documentation. In the mean time I've uploaded them here:
http://www.davidson.me.uk/dev/l2jserver/ and changed the link in my sig.