Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / How long is your project (lines of code)?

Author
Message
Drew Cameron
20
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Scotland
Posted: 11th Mar 2005 00:00
Mine's just passed 4000 , and I'm wondering if that's abnormal -

I've noticed a bit of slowdown recently, and I'm wondering if the length of code could have something to do with it ...

Also, not all of it's being run at the same time, obviously, but can length of code slow a game down?

Drew Camerons free games - http://www.drewsgames.com/
Hawkeye
21
Years of Service
User Offline
Joined: 19th Sep 2003
Location: SC, USA
Posted: 11th Mar 2005 00:17 Edited at: 11th Mar 2005 00:17
Well, the most I ever had was 1700+ lines or so... But then again I can't keep my projects going for much more than a week (that one lasted a month)

Quote: "length of code slow a game down"

Hmmm, interesting question. No idea

MicroMan
21
Years of Service
User Offline
Joined: 19th Aug 2003
Location: Stockholm, Sweden
Posted: 11th Mar 2005 00:24
I guess you mean DBP projects now. *looks at IDE and the 10+ units with their many hundreds of lines of code, in each unit*

-----
They SAID that given enough time a million monkeys with typewriters could recreate the collected works of William Shakespeare... Internet sure proved them wrong.
-----
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 11th Mar 2005 00:31
@Drew: 4000 lines is nothing abnormal. A lot of major projects will end up in well in the tens of thousand, if not hundreds of thousands lines of code. Obviously this is less so in DBP as it cuts out a lot of coding, but I wouldnt be too worried.

Huge amounts of code will only slow down your code if it is processed continually. If this is the case, you'd want to start putting in conditionals to skip parts of the code which you dont constantly need to process.

Desktop: AMD Athlon XP2800+,Radeon 9800 128MB, 1GB DDR RAM
Laptop: AMD Athlon 64M 3000+,Mobility Radeon 9700 128MB, 512MB DDR RAM
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 11th Mar 2005 00:54
huge amounts of code will slow down development... it take a while to compile large projects. My current project Aphotic VM has 6,000 lines of code, 99% of which are actually 3/4 commands on one line (to save space) and there are no blank lines or comments anywhere in there.

AphoticVM status: 30% (Yes, that number just went down.) AphoticBasic status: 10%
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 11th Mar 2005 01:08
My project is about 5500 lines now, and it does affect frame rate depending on the size of program, but not by a huge amount - arrays etc will probably have an effect, but I did a little test just on a bloated .exe (like a little test loop at the start but all the code for my project too).

With project code: 408fps
Without project code: 396fps


Van-B


It's c**p being the only coder in the village.
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 11th Mar 2005 06:06
Just remember, "Less is best!"


"Computers are useless, they can only give you answers."
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 11th Mar 2005 06:47
The expression is "less is more".


"Lets migrate like bricks" - Me
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 11th Mar 2005 07:55
DT crept up to 15000 and the editor was 17000, its on hold while im doing other things tho and not dead.

If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 11th Mar 2005 08:02
Oh, well, my project is a billion lines of code. I had to buy a 10000000000000000000GB HD for it. I'm soo noooot joking.

Much.


"Lets migrate like bricks" - Me
Osiris
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 11th Mar 2005 08:05
Make that a 9765625000000000 TB HD...what goes above terabyte?

Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 11th Mar 2005 08:19
nothing made it there yet i mean there are only like up to 1tb hdds

hmmm my (secret) project so far is 682 lines with spaces and empty lines and a 20kb .c file but htis is just the gui i have not even began on the core(i think the gui is harder than the core though)

quit hiting the computer; computers can only do what they are told so we must be telling them to do wrong things
Avan Madisen
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: The Castle Anthrax
Posted: 11th Mar 2005 08:23
My old Lemmings code (I will be bringing that back at some point) was less then 3000 lines, but if I shrunk it down so there were no white lines and no rem comments it'd be less then 1000.

I don't suffer from insanity:

I enjoy every minute of it!
Jimmy
21
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 11th Mar 2005 08:42
I believe I speak for half the community when I say "... project?"


Well we all shine on, like the moon, and the stars, and the sun.
Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 11th Mar 2005 11:33
Firewall: 11,906 lines

Xander Moser - Bolt Software - Firewall
UnderLord
21
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 11th Mar 2005 12:51
How about this my current project is 124 lines including rems and spacing! hahahahahaha of course i only have movement down....no shooting or anything like that...yet....

When we talk to god, we're praying. When god talks to us, we're schizophrenic.
Schizophrenic beats eating alone.
Zokomoko
22
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 11th Mar 2005 13:05
Game client: 5656 lines of code
Server: 173 lines of code
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 11th Mar 2005 21:27
Quote: "The expression is "less is more"."


You're trying to tell me what my own motto is? Ha!


"Computers are useless, they can only give you answers."
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 11th Mar 2005 22:14
Well..yes.


"Lets migrate like bricks" - Me
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 11th Mar 2005 23:46
Quote: "3/4 commands on one line (to save space) and there are no blank lines or comments anywhere in there"


bet that's easy to maintain...not! Blank lines and comments don't get compiled, so use them liberally.

I would expect a completed project to be upwards of 10,000 lines, and wouldn't consider anything abnormal. I have a 6,000 line program, but the main body is only 20 lines long. There are any number of conditions and multiplexing going on, so any one cycle will be less than 500 lines of code.

BatVink
Flindiana Jones
20
Years of Service
User Offline
Joined: 3rd Nov 2004
Location: Bosnian Power
Posted: 12th Mar 2005 00:31
mine is under 1,000...but is no where near done...

ermes: "I'e no way to be understanded."

Me: No kidding.

Login to post a reply

Server time is: 2024-11-27 02:29:42
Your offset time is: 2024-11-27 02:29:42