Here is some trick to let the code run faster, I face this long time ago, finally I am able to write it down.
For CodeA & CodeB:
The different will be very big when the String Array gone larger. If let say the size of the String Array is 100, CodeA will create 100 Integer object to store it's size, the program will end up like this CodeC.
Obviously, every loop set the String Array size is unnecessary. So, it is alway better to keep CodeB practice.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." - Martin Fowler
Thursday, October 18, 2007
Wednesday, October 17, 2007
"code" Support
Yo, I add in something that will be useful on my own posting since I am a programmer.
Here is the CSS I used to create this "code" tag:
I am still thinking how to implement this into RSS feed which is a XML, not support CSS. If you didn't understand what I mean, open this post in a browser, then you will see the different.
Here is the CSS I used to create this "code" tag:
I am still thinking how to implement this into RSS feed which is a XML, not support CSS. If you didn't understand what I mean, open this post in a browser, then you will see the different.
How to use Netbeans to generate Javadoc
I guess somebody already know this, but I think there are somebody who didn't know it as well, so, I just put it up here.
Next time when you having development in Netbeans, try to write comments using its Auto Comments feature.
So, after all the comments had been write, you just need to right click on the project and click on "Generate Javadoc", then this will come out.
Next time when you having development in Netbeans, try to write comments using its Auto Comments feature.
So, after all the comments had been write, you just need to right click on the project and click on "Generate Javadoc", then this will come out.
Subscribe to:
Posts (Atom)