Author Topic: Really Long Source Code  (Read 16435 times)

0 Members and 1 Guest are viewing this topic.

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Really Long Source Code
« on: March 17, 2011, 07:30:18 pm »
Edit 3:
    Topic move weirdness. My original first post is the sixth post. So that is where the question is at.



______________________________________________________________________________________________

would you imagine the source is 100K, and over 2500 lines of pure code? (for starfox) O.O

You think 2500 is big?

zStart: 8223 (All files tallied)
Geowars: 6815
Starfox: 6783 (I have no idea what you're looking at :D)
Chess: 4821
Imposble: > 4000
TetrisM: 4005
Tower: 3995 (Never mentioned, never finished)
BluTooth:3307
LandRovr: 2205 (Never mentioned, never finished)
Missile: 2124
Bubble:2056


That was after he emailed it to me ;) and with the email came the permission to use what I wanted ^-^ you guys don't have that.  HAH.  SUCKERS.  :P jk

Also, anyone can use it as long as they give me credit ;)


Edit:
   If you meant starfox is only 2500 of code, the code ends around 5188. And I definitely did not skip every other line.

Edit2:
   Those all add up to 48,000. I'm prolific, lol.
« Last Edit: March 17, 2011, 10:46:18 pm by thepenguin77 »
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Really Long Source Code
« Reply #1 on: March 17, 2011, 08:12:19 pm »
That made me curious about my projects. I was surprised to find that TI-Boy has

Spoiler For Spoiler:
*drumroll please*
Spoiler For Spoiler:
OVER 9000!
Spoiler For Spoiler:
11661 to be exact. Quite a few lines in the opcodes asm file are macros though.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Really Long Source Code
« Reply #2 on: March 17, 2011, 08:51:52 pm »
Hehe... Axe's source code is 9200 lines of code but then the commands add another 3700 lines.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Really Long Source Code
« Reply #3 on: March 17, 2011, 08:53:33 pm »
* apcalc thinks calc84maniac and Quigibo are in a competition to make the largest program!
« Last Edit: March 17, 2011, 08:53:43 pm by apcalc »


Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Really Long Source Code
« Reply #4 on: March 17, 2011, 09:31:32 pm »
Hehe... Axe's source code is 9200 lines of code but then the commands add another 3700 lines.

IT'S ... er, wow. These are huge programs, even for ASM :o
« Last Edit: March 17, 2011, 09:31:39 pm by Deep Thought »




Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Really Long Source Code
« Reply #5 on: March 17, 2011, 10:35:24 pm »
============ Original first post ===========

I am going to split from here because I feel like this might go on for a while.

How do you people deal with source code when it starts getting over 4000 lines long? I feel like once it starts reaching this length, I start losing time by searching through the code for routines. At these sizes, the scroll bar is almost useless.

I only have two ways that I've adapted to this kind of thing:
-Ctrl-F, then search for a routine name
-Split file up into multiple files in a folder, this is good, but it takes time to do and maintain, especially because it requires a new batch file


Does anyone have a better system? I use notepad currently, so I'm as basic as it gets.
« Last Edit: March 17, 2011, 11:05:37 pm by thepenguin77 »
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Snake X

  • Ancient Veteran
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 810
  • Rating: +33/-8
    • View Profile
Re: Really Long Source Code
« Reply #6 on: March 17, 2011, 10:39:51 pm »
Shouldn't spencer putt have some system for this situation? I'm sure that his zelda project is very large just like yours
« Last Edit: March 17, 2011, 10:40:00 pm by Snake X »
Loved this place, still the best producers of power metal, and sparked my dreams of coding.

Offline phenomist

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 132
  • Rating: +46/-3
    • View Profile
Re: Really Long Source Code
« Reply #7 on: March 17, 2011, 10:40:14 pm »
Hmm... If you don't have Word Wrap turned on, you could use the statusbar at the bottom, and create something of a "Table of Contents" including the line numbers for your routines.

You could create an ASCII-art type comment in order to be able to identify routines when scrolling.

Yeah, I suppose that non-interpreted comments would be a good way to mark your routines.
Level Designer for Graviter

[Disclaimer: I can't program for my life.]

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Really Long Source Code
« Reply #8 on: March 17, 2011, 10:43:52 pm »
Wow, i think graviter is only somewhere around 600-700 lines.
In-progress: Graviter (...)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Really Long Source Code
« Reply #9 on: March 17, 2011, 10:45:32 pm »
Wow, i think graviter is only somewhere around 600-700 lines.
Please note that this is Asm and not Axe, so the line lengths will be extremely different. ;)

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Really Long Source Code
« Reply #10 on: March 17, 2011, 10:46:13 pm »
Yeah, Assembly programs have a frickin huge number of lines.
In-progress: Graviter (...)

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Really Long Source Code
« Reply #11 on: March 17, 2011, 11:02:49 pm »
Hmm... If you don't have Word Wrap turned on, you could use the statusbar at the bottom, and create something of a "Table of Contents" including the line numbers for your routines.

You could create an ASCII-art type comment in order to be able to identify routines when scrolling.

Yeah, I suppose that non-interpreted comments would be a good way to mark your routines.

I already do comment headers, and they work nicely because they stand out.

The table of contents is a cool idea, but the code moves, so it wouldn't be valid for very long.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Really Long Source Code
« Reply #12 on: March 17, 2011, 11:17:58 pm »
Hehe, here is the form I compile BatLib in:
http://pastebin.com/Ee0Hi7Bk
Then here is the code output from Assemblex (minus the image and fontset which uses >1000 bytes of code)
http://pastebin.com/jWvEMGPx
I don't know how accurate that is, but it is still a lot of code x.X 146 pages of it, actually, and that is without any of the notes I usually like to include

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Really Long Source Code
« Reply #13 on: March 18, 2011, 12:55:48 am »
Quote
;Working with mnemonics is just so tedious

Ya know, some people might disagree :P
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Really Long Source Code
« Reply #14 on: March 18, 2011, 12:58:22 am »
Psh, never :P
I just don't like typing out:
 ld a,32
 add a,l

when I could do 3E2085 or something. It is so much more compact and it is easier to see what is going on :D