Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Thursday, September 24, 2009

The Long Awaited Finish is Here!

*Warning: Some words used may need experience in Java Programming!*

Good day guys! Have you experienced pressure? Pressure that consume you from the inside and out? Not just physically, but also mentally and emotionally? Have you experienced wanting to explode and give up but yet you continue to do it because either you have no choice or you feel that you can do it? And then, at long last, the pressure and pain that enveloped you is quickly replaced by enjoyment and happiness? Well, that is what I am feeling right now! Whew!

Just recently, our instructor gave us a laboratory exercise in which we are asked to construct and implement a Binary Search Tree and an AVL Tree. Actually, the algorithm is not that hard to understand so I just took my time in coding the program. All went according to plan until I encountered an unexpected error, java.lang.NullPointerException. At first, I was thinking that it's just a minor problem. So I went on debugging and putting some conditions to satisfy and prevent the exception. My line count doubled as time passes by and by the end of the day the code was like messed up. Thinking that I can do it without any help, I continued coding the day after. The same error keeps showing up! I was in panic mode because the deadline was fast approaching. It took me almost 3 days to call it quits and ask help from my classmates. One of my classmates helped me and after about 5 hours of debugging with her, we realized that the constructors were poorly constructed and we had to revise the constructor and recode the whole program. And now, thanks to my classmate, I finally finished the codes but is 2 days behind schedule. This piece of code is the reason for everything. LOL!
AVLTree() {
        root = new AVLNode();
    }

One thing I learned from this ordeal is that if all else fails and you have done everything that you can, you don't need to act tough. You can always lower your pride and ask for help! Always remember that no man is an island!

God bless and keep the faith intact!



Tuesday, August 25, 2009

AJAX - An Achievement For Our Thesis!

Good day guys! After weeks of tedious work, I have finally ajaxified our thesis. I know it is not that "cool" but for me it is a great achievement because I learned how AJAX works and believe me, if you know javascript, you only need to do about 5 steps more to master AJAX. AJAX is short for Asynchronous Javascript and XML, where XML just consists of about 10% of AJAX and the rest is Javascript. Maybe an exaggeration but it is quite true for me. Well, I need to sleep! I still have a report later.

God bless guys and keep the faith intact!

Sunday, August 16, 2009

First Time I Am Pissed - Off!

Good day guys! The rest of my day is ruined! Hmppff! I was rewarded with a failed grade by helping my classmates. I helped my classmates by giving them my code for our lab exercise and told them to make it as a reference for the algorithm but instead they just made minor edits and passed it to our professor. Our professor noticed it and divided the total score to us. The total score is 40 and it was divided to 4 of us.

I was pissed-of because all my hard work was just graded with a failed grade. I can't stop myself from cursing and being angry. How can I? I know I made a mistake of giving my code and I have learned not to give your answers to your classmates. If I want to help my classmates, I should have just answered their questions and not give them the final answer or code in this case. I am just pissed-of!

God bless and keep the faith intact!

Friday, August 7, 2009

Programming Problem: 3n + 1!

Good day guys! I just encountered something that made my brain bleed badly. This came from my professor. Actually, the algorithm is not that complicated to understand and constructing the code is equally not that hard. What is hard is the part where we would be required to submit a copy of our code to an online Robot Judge.

I don't know why it is hard to get an acceptance. I am still working on it at the mean time. Well, maybe I just need a rest for now. By the way, the problem is 3n + 1 and believe me, it is not that hard.

I am going to sleep now. God bless us all and keep the faith intact!

 
ss_blog_claim=bf1f482299b6f727847050cc2fc37fdc