Sunday, March 8, 2009
Posted by
jet MUSIC
//
at
5:57 AM
//
bugs,
debugging,
java,
jcreator,
jet,
netbeans,
program,
programming,
tips
This is based on my personal experience, of course.. I program in Netbeans with Java as my language hakhak :)
TIPS when debugging:
1. Check the spellings! from the code to the content of the database to anywhere the classes are concern!
2. Check the logic.
There are two kinds of errors: syntax and logic. Netbeans automatically detects syntax error and other programming tools also do so. But logic errors are the weakness of any computer system. As programmer, you are held responsible of the flow of logic. So when things are not as what they supposed to be in your program/modules, check the logic. Trace the flow from the first call of the classes,methods, variables to the the end use.
3. Put debugging statements!
Like:
System.out.println(of course put something here);
JOptionPane.showmessagedialog(null,"It passed here!");
System.out.println("The variable is: "+ var);
JOptionPane.showmessagedialog(null, "Count is: "+count);
I put statements like "wtf, it passed here!, that was the result" to help me trace the bugs. I don't have to use insecticides for this!hahahaha
4. Ask a Friend!
Programmer1: Hi! Hello friend! I cannot f**king find the bug of my program. When i enter this, the other one won't show up like what it should! Could you please find the bug for me???
Friend: WTF, i dont program,all I know is to play DOTA
Programmer1: WTF! Get lost Major Loser!!!!
Moral: Ask a friend that is knowledgable in the field of programming.
PS: TEACHERS are FRIENDS.
Still cannot find the bugs? Take a break! Your brain might just be breaking. Rest for a while, don't worry! The more you worry, the more you won't be able to find those f**kin bugs.
Enjoy debugging!! :)
Subscribe to:
Post Comments (Atom)
About Me
- jet MUSIC
- I am jet (not my real name) from the Philippine archipelago, currently no permanent address. I write, i draw, i color, i love art&music, i paint in mspaint, i love ideas, please feel free to share yours with mine \m/ i love my fiance, Tiani, so much.
Counter
Official Dilbert Widget
Popular Posts
-
-- Begin -- *Prerequisite: knowledge in MYSQL and MYSQL GUI tools especially MYSQL Query Browser (just so you could relate ^^,) So, have ...
-
If you aint nuthin to do, want somethin to read or just passed by here, you might want to read the story HOPE FOR THE FLOWERS by Trina Pau...
-
Using JFreeChart? It is very helpful to use JFreeChart for reporting purposes of your system/ programs. However, you may notice that once yo...
-
I mean, it's you that i think about from the sweetest dream of teenage love to the most intense love affair, I mean, I want to be ...
-
This sonnet is written in "Bisaya", as we call it. It's a dialect in the Philippines. Actually Bisaya could mean other Visayan...
2 Reactions to this post
Add CommentWow you are a programmer chick, Nice header by the way. You are a smart lady ha! Take care always I'm happy I got to know some bloggers here in zamboanga. - John Lazy
Maybe you can add also name/url in your comment form. So its easier to comment for those non blogger user.
Well friend you can set up the comment form in your bloggers settings. Take care! It takes you few seconds to do it.
Post a Comment