Entries Tagged 'java' ↓
May 12th, 2008 — blogs, java, me, personal, programming, tech, work
Wow. It’s been so long since I posted that there is a drastic change in Wordpress versions. Let’s hope I can even figure out how to publish this. I’ve been keep busy over the last 6 months or so that I haven’t posted. However, I’m finally done school for the year with the exception of taking 1 course in the summer. Here is just a quick overview of the past 6 months, and what I’m currently working on.
- As mentioned above, I’m taking one (1) course, CP317: Software Engineering. I think I’m making a fairly good move by taking it in the summer. There are only 12 people in my class, including me, and the main focus of the course is to use the knowledge taught to complete one large group project. We decided to develop a multi-player networked tank game in Java.
- I’ve been working on a side project through my business EdgeLink Consulting dealing with VoIP and Asterisk. This is a very neat technology with a very wide range of capabilities that I’m very excited to be working with. Expect a post in the next couple of days about Asterisk.
- I was very busy throughout the fall and early winter with the musical that I’m in every year with Laurier Musical Theatre. This year it was How to Succeed in Business Without Really Trying. It went very well and I’m looking forward to the musical next year.
- I’m also working on some other side projects that you may or may not hear about in the future.
That’s about it for now. You should see something in the next few days on Asterisk and VoIP.
October 15th, 2007 — java, programming, school, tech
This past week marked the start of my re-entry into the world of Java programming. My first assignment in CP213: Introduction to Object-Oriented Programming was due today. I learned a few neat things while doing this assignment so I’m going to try to outline some of them in this post.
- Java has a very useful feature called Generics, and Eclipse will yell at you if you don’t use it.
Generics allows you to define classes without a specified type. Instead, you can specify the type of an object by parameterizing it when it is initialized. This ensures that only objects of the specified type are inserted or removed from the initialized object. For this example I’ll use a stack:
Stack<String> = new Stack<String>();
As I’ve mentioned before, Eclipse is a very useful IDE, and thus is very strongly suggests parameterizing your stacks.

Using code such as the above will yield the following:
“Stack is a raw type. References to generic type Stack<E> should be parameterized”
This can be easily fixed by parameterizing the code, as mentioned above.

Not only will Eclipse not yell at you for using the latter code versus the former, but the latter will help ensure that only the appropriate data is inserted and removed from the stack.
- When using Javadoc, don’t use the @version tag.
After struggling with Javadoc for a while trying to figure out why it wouldn’t properly display the version tag, just as a displays the author tag, I decided to do a little bit of googling on the subject. Eclipsepedia gave me a simple answer.

Using the @version tag sort of works, but it doesn’t look as nice as the @author, or any of the other tags.

Does anyone know of any way to get this to work properly? It does make sense to have a version tag for classes, so I’m not sure why it doesn’t work properly.
That about wraps it up for the tips I learned from this assignment. As I hack around with Java more, I’m going to try to post various tips that I come across.
If anyone has any tips to add to the above, or information pertaining to the @version tag, please let me know.