Bad start with Spring

Recently, one of my good friends asked me to make a simple web application for them. Since I’ve been wanting to learn Spring for quite some time now, I decided to take on his request because I’m such a good person. Just kidding, I really just wanted to have an excuse to learn Spring. After a few minutes of Google searching, I came across the official tutorial for Spring MVC. I noticed that the tutorial was a bit outdated and had a few errors, but I still managed to finish the tutorial in spite of that....

March 1, 2011 · 10 min · 1962 words

Inheritance in Java

DISCLAIMER: This article is a bit hard to swallow so I’ll try to explain it to you as simple as I can. I also need to mention that there are other concepts that will also be introduced in this chapter aside from Inheritance. This is my first post for 2011, so happy new year! Anyway, as a preparation for my upcoming preliminary exam in Java, I decided to write about Inheritance in this article....

January 29, 2011 · 8 min · 1582 words

Access Modifiers in Java

As I’ve said in my previous entry, classes should never be invoked like this: 1 2 3 4 5 6 7 8 myCar.brand = "Porsche"; myCar.color = "Black"; myCar.name = "911 GT3"; myCar.speed = 120; myCar.gear = 2; System.out.println("myCar is a " + myCar.color + " " + myCar.brand + " " + myCar.name + "."); System.out.println("myCar is running on " + myCar.speed " miles per hour on just gear " + myCar....

December 12, 2010 · 6 min · 1184 words

Code Refactoring

In the real world, you’re not a one-man team like you once were during college (because apparently, it’s cheating in your professor’s eyes). You will work with other people when developing software. If that’s the case, it’s inevitable that those other people you’re working with will also be looking at your code. Not only that, they’ll also be working with the code that you will write. One of the things a developer must strive for is better code....

December 12, 2010 · 8 min · 1540 words

Classes and Objects in Java

DISCLAIMER: Do not use any of the code found in this entry for real life exercises. They do not adhere to the standards of OOP. I intentionally wrote wrong code in this entry for the sake of discussion. I will smack you in the face if you used the following code in real life exercises. I’ve been trying to teach some of my classmates about the concepts of OOP, so I thought I’d turn them into a series blog posts for future reference....

December 4, 2010 · 6 min · 1241 words