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.
4 replies to this topic
#1
Posted 17 October 2010 - 03:57 PM
|
|
|
#2
Posted 17 October 2010 - 04:08 PM
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
Posted 17 October 2010 - 04:15 PM
How are you defining "lines of code"? Without a precise definition, you can compress it one line fairly easily.
#4
Posted 17 October 2010 - 04:22 PM
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
Posted 17 October 2010 - 04:23 PM
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


Sign In
Create Account


Back to top









