How large is the code base?

General discussion and socializing.

Re: How large is the code base?

Postby MagicManICT » Mon Mar 30, 2020 10:41 pm

Hypnos91 wrote:I can't define myself a programmer, I love programming but I do only small projects for myself in the spare time.

Just because you only launch paper and gunpowder rockets doesn't make you a "not a rocketeer." Same with computer software and programming it. That's why there's a difference between hobbyists and full time engineers. (FYI, some of the most elegant code and best algorithms have been created by hobbyists.)

If you want to get a scope the size of MMO code gets to, look at some of the open-source emulators around, such as for Star Wars Galaxies. Some are always larger than others. Age can really bloat the code, too.

The client code is open source. Details are here. (FYI, the page needs updated. The current client requires Java 1.8.xxx.)
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18435
Joined: Tue Aug 17, 2010 1:47 am

Re: How large is the code base?

Postby VDZ » Tue Mar 31, 2020 12:12 am

Hypnos91 wrote:And I'm obsessed with lines of code, every week I measure my progress. I know it's a dumb indicator for a software, it can't measure the complexity and other stuffs, but I'm bewitched by quantitive measurements


Line count is more of an indicator of verbosity than anything else.
Code: Select all
if (flag)
{
    return CONSTANT1;
}
else
{
    return CONSTANT2;
}

is 8 times as many lines of code as
Code: Select all
return flag ? CONSTANT1 : CONSTANT2;

but they're functionally the exact same.
User avatar
VDZ
 
Posts: 2681
Joined: Sun Jul 17, 2011 2:27 am

Re: How large is the code base?

Postby Glorthan » Tue Mar 31, 2020 1:27 am

Bill Gates wrote:Measuring programming progress by lines of code is like measuring aircraft building progress by weight.
Glorthan
 
Posts: 1099
Joined: Tue Jun 11, 2013 4:33 pm

Re: How large is the code base?

Postby VDZ » Tue Mar 31, 2020 8:31 am

Glorthan wrote:
Bill Gates wrote:Measuring programming progress by lines of code is like measuring aircraft building progress by weight.


It's dumber than that, as proper aircraft construction does not involve occasionally throwing parts away and remaking them, while rewriting code to improve it is very common.
User avatar
VDZ
 
Posts: 2681
Joined: Sun Jul 17, 2011 2:27 am

Re: How large is the code base?

Postby Hypnos91 » Tue Mar 31, 2020 10:48 am

If you want to get a scope the size of MMO code gets to, look at some of the open-source emulators around, such as for Star Wars Galaxies. Some are always larger than others. Age can really bloat the code, too.

Thank you for the suggestion, I'll do that to satisfy my curiosity. :D

Line count is more of an indicator of verbosity than anything else.

I know that verbosity impacts somehow, but I think that, given a specific language, line count still says something about a project magnitude, at least the order of magnitude. In your extreme example verbosity impacts also on the order of magnitude, but I feel that usually every programmer chases the optimal readability. Too much verbosity impacts readability, and too much code golf impacts readability too. I know that the concept of readibility is unique for everyone, but I also think that the effort to reach a good compromise often coagulates in a commonly widespread style. It's just a personal opinion though. I'm sure there are a lot of better metrics out there, but I haven't look for them yet
Hypnos91
 
Posts: 5
Joined: Thu Jul 07, 2016 10:00 am

Previous

Return to The Inn of Brodgar

Who is online

Users browsing this forum: Amazon [Bot], Claude [Bot] and 55 guests