RSS

Tag Archive | "Java"

Top 10 Reasons to Upgrade to Java 6

Wednesday, December 13, 2006

0 Comments

Awesome matrix of new features and compelling reasons to start using Java 6: Countdown Summary Who’s blogging about it ? Web Services Easy to use APIs for developing web service clients. Rajiv and Bob’s write first an introduction to web services with NetBeans 5.5 and then building a Java SE 6 client to eBay, included as one of the new samples [...]

Continue reading...

Replacing JDK Logging / Log4J / NLOG4J With LogBack

Saturday, September 23, 2006

1 Comment

If you are like me, you can’t decide on a logging framework for your Java applications. JDK Logging is so easy, Log4J logging is lauded as a “must-used replacement for JDK “crap” logging” and in one new project I downloaded I noticed the use of SLF4J (Simple Logging Framework for Java) for the first time. [...]

Continue reading...

Generic Comparators in Java

Thursday, September 21, 2006

4 Comments

Are you using generics in Java? Are you trying to execute a Collections.sort method call and getting an “unchecked” warning from the compiler? This is something I just had to battle with, and here’s how you do it correctly. First your Comparator needs to specify that it is of the type you will be comparing [...]

Continue reading...

Java Boolean Getters Should Use “get” Prefix, not “is”

Sunday, September 17, 2006

0 Comments

Interesting, I always wondered about this. According to this blog entry, all getters and setters that are generated should use the “get” prefix for getters, the only time “is” is allowed according to the spec is when generating a getter for a primitive type. Well, looks like I’ll be cracking open the Refactor > Rename wizards [...]

Continue reading...

JavaCC Grammar for EcmaScript

Saturday, September 2, 2006

0 Comments

It looks like the Dojo developers have released a JavaCC Grammar for EcmaScript, more specifically ECMA-262 Standard 3rd edition. Junior developer does a fairly good writeup about it as he’s in the middle of writing a new JavaCC book (not a feat for the weak hearted). For the folks wondering what this is, JavaCC is a compiler [...]

Continue reading...

Eclipse 3.2 Running ontop of Swing

Wednesday, August 23, 2006

0 Comments

Well the “Eclipse on Swing” discussion is heating up again. I have to admit that I do not see the allure to this. Assuming of course there is some benefit to doing this port, by the time it reaches parity with native SWT/JFace I imagine both Swing and SWT will be fast/flexible enough that no [...]

Continue reading...

What are closures in Java?

Tuesday, August 22, 2006

3 Comments

I first ran across an explanation of this new buzzword for Java 7 in the JavaLobby front page. I saw Rick’s comments about Neal’s ability to describe complex topics easily so I went ahead and clicked over to his explanation of what colsures are and why I should care. 10 minutes later I was completely [...]

Continue reading...

Worst toString method ever

Saturday, August 19, 2006

0 Comments

Erik threw up a post with the worst toString() method he’s ever run into… I have to admit, this is pretty incredible: public String toString() { if (this != null) return “**** implement me”; return “i am null”; } That is like set-yourself-on-fire-and-do-society-a-favor terrible. If this != null on a non-static method? Nice. Maybe the original developer should throw in some [...]

Continue reading...

New Rails-like Java web development stack: Project Able

Wednesday, August 16, 2006

0 Comments

For those of you out there that hate needing to dig through all 6 million Java web frameworks to pick all the pieces together to assemble a web application, but also hate AppFuse, there is a new development stack available to you: Project Able. Able uses the following components/tools: WebWork web MVC framework SiteMesh for web page decoration Spring [...]

Continue reading...