Jump to content

Need Challenge and Ideas

- - - - -

  • Please log in to reply
4 replies to this topic

#1
ki4jgt

ki4jgt

    Learning Programmer

  • Members
  • PipPipPip
  • 84 posts
This program (SmashIndex.com provided by Bravenet.com) is running on 1082 lines of code. I have gotten it down to 1053. I want to get it even lower. I would like someone to set a (reasonable) challenge for me to get it to a certain number. Keep in mind that I've placed the entire GPL inside the source code so that counts as 674 lines of code. The program is written in BASIC and if anyone has a comment about how old and out dated BASIC is, well, you do your thing and I'll do mine. The source code is included in the download as either SIL.bas or SI.bas. If you can help me optamize it's speed, I would be so grateful. It is completely open sourced and FREE under the GNU GPL.

#2
ki4jgt

ki4jgt

    Learning Programmer

  • Members
  • PipPipPip
  • 84 posts
O and I'm thinking about removing the Easter Egg, would you guys advise that? I want less code to be faster, but I don't know if I want to keep the Easter Egg or not.

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
How are you defining "lines of code"? Without a precise definition, you can compress it one line fairly easily.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
ki4jgt

ki4jgt

    Learning Programmer

  • Members
  • PipPipPip
  • 84 posts
I guess one line of code would be considered one command/mathmatical operation/print statement/input statement per line. It also has to remain readable to everyone. So someone can come in and edit it, if they feel they need to. It is open sourced.

#5
ki4jgt

ki4jgt

    Learning Programmer

  • Members
  • PipPipPip
  • 84 posts
I did not count the blank lines as lines just making it easier to understand the code.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users