A Noted Path

Personal blog of Theodore Nguyen-Cao

Options:

I like Shiny New Things. So when I heard Eclipse Ganymede SR1 was available, I proceeded to replace the Stream Stable Build I was currently running.
This, of course, ended up causing me problems. After installing Subclipse and attempting to pull up any SVN history, I get an error dialog box that states:
“Unable to load [...]

Breaking Java Habits: Ruby increment/decrement operators

My background in C++ and Java has instilled in me some programming habits that don’t play nice in Ruby. When I want to increment or decrement a number, my fingers instinctively go to ‘++’ and ‘−−’.
Unfortunately, this syntax is not supported by Ruby. As a language design choice, Ruby opted to not support [...]

Java WTF: Reflection API and Annotations

I got some exposure to custom Java 5 Annotations today and came across a noobie mistake.
Here’s my annotation:

public @interface Annotated {
}
Pretty simple, right?
Here’s a test class that uses the annotation:

import java.lang.annotation.Annotation;

@Annotated
public class Main {
public static void main(String[] args) throws Exception {
for(Annotation ann: Main.class.getAnnotations()) [...]

 

January 2009
M T W T F S S
« Dec    
 1234
567891011
12131415161718
19202122232425
262728293031