Archive for the ‘java’ Category

Rich Web Experience… Starts

Thursday, September 6th, 2007

I made it to San Jose last night for the Rich Web Experience, my bag didn’t, and had a good time at the speaker pre-party. No I’m not speaking, but I got invited and was glad to attend. Lots of fun, smart guys drinking beer and talking about all kinds of interesting stuff.

This morning I got my bag about 6:30am and got cleaned up and headed down for checkin and breakfast. The conf started with an expert panel, and then it was time for the sessions.

I’m currently sitting in a prototyping talk by Bill Scott. He’s covering a very interesting prototyping framework he created, protoscript. I leaned over and asked the guy next to me about using protoscript in “prod” and a little later someone asked Bill if it was possible. He said no as his JSON logic is double-parsing the protoscript code which makes it too slow for a prod environment.

I plan on hitting talks by David Verba, and James Ward as the day goes on. I’ll post some follow-up thoughts as I have time.

Going to Rich Web Experience next week…

Thursday, August 30th, 2007

I got the clearance from my boss to attend the Rich Web Experience next week. The RWE is run by the people that produce the No Fluff Just Stuff shows so I know it will be a top-notch conference. I’m looking forward to seeing some of my favorites from the NFJS tour (Venkat Subramaniam, Scott Davis, and Neal Ford) however, there are a number of names I haven’t seen present.

I’d love to get some recommendations from people that are going to RWE or have seen some of the other speakers that are presenting? I plan on attending James Ward’s talk, as I previously worked for a company that does a lot of Flex consulting, and I’m kind of a fan of Flex. I also plan on attending Keith Donald’s talk, looking for tips to better use AJAX in our Spring MVC apps here at work. Other then that, I’m not really dead set on what talks I’ll attend.

Another huge positive on attending the RWE is that my best friend lives very close to San Jose so I’ll be seeing him as he’s also attending the RWE. It will be strange spending time with him in a “learning environment”. Since college the only times we get together are for Vegas trips, weddings, or New Year’s parties.  We’ll try hard to save the beer drinking for the afternoon conference sessions.  :)

Spring In Action 2 Release Party…

Tuesday, August 14th, 2007

The Spring Dallas User Group is hosting a Spring In Action 2 book release party tomorrow night. So if you are in or around Dallas, TX on Wednesday, 8/15/07 please plan on attending the meeting.

Why should you attend the Spring In Action 2 Book Release Party…

  1. Manning is buying everyone free pizza
  2. Craig Walls will sign your book
  3. You can buy a book tomorrow before anyone else
  4. Great raffle prizes

Read more about the meeting on the SDUG site or Craig’s blog.

Gettin’ Groovy…

Monday, July 30th, 2007

Yeah, I know my post title is lame, “Gettin’ Groovy.” That it took no real imagination at all to come up with. That it’s an overused. Blah, Blah, Blah… My response is that you don’t name a programming language, Groovy, if you don’t want to see these corny uses of its name…

Anyhow, I do dig the name, and the language. I tried to spend some time, earlier in the year “Gettin’ Groovy,” but just got to busy with work. I attended a couple awesome talks at JavaMUG on Groovy, and then Grails, and was sold.

So here I am. Trying to really understand the language. Why it works the way it does, versus just hacking-away with it. I’ve bought the book, “Groovy Programming - An Introduction for Java Developers” which covers a lot of details about the language. Stuff you wouldn’t pick up while reading a web post about Groovy. Stuff you need hunderds of pages to fill a book on.

My only complaint with the book so far is that I’ve found no way to communicate with the book’s authors. The two websites mentioned in the front of the book appear to be dead. I checked them many times over the weekend and repeatedly got timeouts.

So my first observation on the language is that I don’t understand why parentheses are optional. It makes it hard to learn a language when you don’t know if you have a bug in your code or just are missing a set of parens.

Take the simple println statement. Unlike Java, you can simply say:

println “some text”
println “some *more* text”

The problem is when you decide you want a blank line between the two stmts:

println “some text”
println
println “some *more* text”

This throws the generic error…

some text
Caught: groovy.lang.MissingPropertyException: No such property: println for class: test
at test.run(test.groovy:2)
at test.main(test.groovy)

I guess that error isn’t that confusing, now that I’ve been using Groovy for a couple days. However, here is another case where the missing parens hurt a bit. I’m exploring the Java base classes and how they work in Groovy. One case where I’m trying to understand the fact that all numbers are either Integers or BigDecimals. Not too hard, but I’m trying to prove it to myself with code like this…

def x = 0.123
println x
println x.getClass

It’s hard to prove something like this when I get the following output:

0.123
Caught: groovy.lang.MissingPropertyException: No such property: getClass for class: java.math.BigDecimal
at test.run(test.groovy:8)
at test.main(test.groovy)

The error message is similar to the one I got when using println, but the question I have is, is Groovy telling me I don’t have access to the java.lang.Object.getClass() or is Groovy telling me I have to just use the parens?

Why not just make the dang parens required? Isn’t there something to be gained by some consistency?

Eclipse Europa Breaks my Project…

Wednesday, July 25th, 2007

Argh… I have an xml file that Eclipse Europa is flagging with a couple “cvc-complex-type” errors. Why??? Eclipse 3.2 had no problem with the exact same xml file.

Here are the error messages:

  • cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element ‘ehcache:annotations’.
  • cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element ‘ehcache:config’.

There must have been a change in how Eclipse is validating xml schemas. Regardless, it is pissing me off. Now, my perfectly good, tested, working application has two errors I cannot fix.

I like XML config files…

Wednesday, July 18th, 2007

Yup, I do. I LIKE XML CONFIG FILES. I especially like them when working with the Spring Framework. That’s why I have no interest in Guice. I’m almost disappointed to see all buzz by the Interface21 guys on the other options for doing bean definitions. Guys, if you’re listening, spend more time on working on new features, or bug fixes. Don’t waste time working on ways to do things we can already do with XML config.

Anyhow, the main reason I’m writing this post is that Craig Walls will be speaking at the Spring Dallas User Group (SDUG) tonight, covering how we can clean-up, or improve our xml config files. Should be a good talk for people that embrace using xml for config and want to improve the model.

Wiki or Blog for Personal Notes…

Wednesday, July 18th, 2007

Should I being using a wiki or blog for my note/documentation tasks?  What are ya’ll doing?  Why?  Pros and Cons? I have a ton of txt files with notes on various subjects.  I want to get these notes online so I can better organize them and have access to them from all machines.

I already have a blog so I was thinking it would be real easy to just put my notes up on my blog.  A new post for each txt file.  Put them in a new category (maybe notes or documentation).  I would probably keep them out of my regular feed so people don’t have to read the stuff, but they will be online, and search-able.

My blog solution sounds easy, but I think I really should me using a wiki for this info.  I mean isn’t that part of what a wiki is for, info storage.  The reason I’m not just going with the wiki option from the start is that another big part of wiki is the whole “collaboration” thing.  And I’m not interested in looking for collaborators.  I just want to get my notes off my machine and up on the web.

Another problem I have with wikis is that people take what’s in their current website and just duplicate it in a wiki.  Then the two sources get out of sync and you never no where to go for up-to-date info…   Damn…  I just went off on a rant…  Sorry…  That’s for another post.

So to wiki or blog my info?

Eclipse Europa… Too Many Choices…

Friday, June 29th, 2007

I was happy to see that Europa was released on-time this morning. However, I was very disappointed to see the confusing download page.

Here are your Java/JEE choices:

  • Eclipse IDE for Java Developers - 79 MB
  • Eclipse IDE for Java EE Developers - 123 MB
  • Eclipse Classic - 140 MB

So, I’m ok with there being a Java version and a JEE version considering all Java development isn’t in the JEE world, as some people think. But what makes me crazy is there being an Eclipse “Classic” version. WTF?!?

If Eclipse Classic wasn’t tailored to Java developers I might buy the need for it. The thing is… the Classic version IS for Java developers. So they have an Eclipse IDE for Java Developers and an Eclipse Classic which is for Java developers. How the people in the eclipse org don’t think this will confuse people is a question I’d like answered.

What’s funny is if you look at the Java IDE “info” page you will see them describe it as an IDE for Java developers, with a nice set of features for Java developers, an XML Editor, and the Mylyn plugin. Then you look at what they say about the Classic version. It’s a superior Java editing IDE as well as a platform for building RCP apps. This last point is what really makes me crazy! What I left off my list above is that there is also a pre-built version of Eclipse 3.3 for doing RCP development.

SO WHY THE FRIGGIN’ CLASSIC VERSION? I see it only confusing people and slowing the adoption of Eclipse.

Sorry for this rant. I must have had too much coffee this morning.

Eclipse Europa Download…

Thursday, June 28th, 2007

So I’ve been tasked with “test-driving” Eclipse Europa for my team at work.  Making sure that our set of plugins works with everything that is in Europa.

Europa is due to be released in 16 hours.  That’s 8am Dallas time.  However, I’m guessing that it’s a bit later in the day it ends up being available.  Plus, I’m guessing the download will take quite some time to download.

Just for fun I grabbed the latest version of Eclipse WTP, in the form of their all-in-one download.  The download includes 5 of the the 21 projects that make up Europa, and it weighed in at 266 MB.  The key is this is the larger part of Europa, as WTP all-in-one includes Eclipse, which is the bulk of the download.  Anyhow, this afternoon I pulled the WTP all-in-one, 266 MB zip file down in a brisk 3:30.  That’s 3 minutes and 30 seconds.  210 seconds.  FAST is my point.

Lets hope I’m as lucky tomorrow while downloading Europa as I was today with the WTP all-in-one.

Windows Safari Sucks Behind our Proxy Server

Wednesday, June 13th, 2007

I was pretty excited to see Apple release Safari for Windows this week. I quickly grabbed it and installed. The problem is that I fire it up and it can’t get past our corporate proxy server.

I say to myself, no problem, it probably needs to be manually configured. So I go to Edit -> Preferences and then click through the tabs looking for a place to configure my internet connection/proxy settings. I found “Proxies” on the “Advanced” tab; the only problem is the bastard is disabled (greyed-out).

I guess Safari isn’t ready for the Windows business world.

Please login to proxy?Not allowed to modify your proxy settings.