Speaking of Rails yumminess, Anyone know how to work with composite primary keys in ActiveRecord? We have lots of legacy schemas we'd love to support, but ran...
I enjoyed Anthony's presentation and Sam's workshop last night, as well as chatting with everyone. Thanks! Afterwards in an unrelated discussion I realized...
... Just a quick note, Hibernate doesn't require getters and setters, as it can use field access. Also, you don't technically need a no arg constructor....
... Thanks, that's good to know. I should disclaim that I'm not familiar with Hibernate yet. I was writing about its documentation at the above URL which...
Hal, Check out this introductory article: http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html I believe you will find all you need. I just ran through it...
Thanks! ... From: honolulu-java-meetup@yahoogroups.com [mailto:honolulu-java-meetup@yahoogroups.com] On Behalf Of Sam Joseph Sent: Thursday, September 01, 2005...
Hal, Take a look at the tutorials on the rubyonrails.com site. Most of the RoR tutorials assume MySQL. You don't really have to do anything special, in your...
I checked out the sites, but I think now maybe I did not install everything yet. I download the one-click-installer ruby 182-15.exe. Do I now need to use the...
... I can definitely recommend the new Ruby on Rails book just published by the Pragmatic Programmers. It leads you through all of this, and it's an...
Thanks everyone for your help. I now have several references, purchased two books, and have actually accomplished some RUBY programming. Hal _____ From:...
I'm not sure if it's an anti-pattern, or just my personal fuckup, but I just learned that the reson why I don't get stack traces in my log4j output isn't...
A problem not related to yours ( but I thought about it when I read it). Is it just me who thinks this is a big drawback in Java? You have three classes: class...
Hi Thomas, This sounds like a design issue rather than a problem with java. Why wouldn't MessageRouter just have: class MessageRouter { void handle(MyMessage...
I know it's "not always convenient to bake the 'handling' of the message in the actual message either." (which, for the benefit of the list, can you go into...
Thanks! Yes, I always do the interface/command if the types were written by me. In my case, the messages are typed from XSDs (in a web service), so I use auto...
... Since I still haven't seen why you need the MessageRouter, then I would advocate using AOP or just creating a bunch of subclasses that extend your...
... You don't control when or how the actual instances are created? If so, merely instantiate the subclass. ... You lost me here. Can you elaborate? Thanks, ...
Yes, I lost you. I'll describe at the next HJUG instead. /Thomas ... __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo!...
it's amazing that this has come up, since I was just last week working around a similar problem. yes, working around, because it felt like I was being forced...
... Agreed, and certainly instanceof isn't an inherintly evil construct. I think people are merely saying it's evil to do instanceof checks when a polymorphic...
Hi Joseph, ... I suspect multiple dispatch was avoided because A) As you said, Gosling was trying not to shock C++ programmers with the new language. B)...
... You make a good point. Developers can get in the habit of coding a certain way and forget about the constraints of the language which led to that way. If...
Hi Dave, That's not safe: Foo foo = new Foo(5); Object reallyAFoo = new Foo(5); foo.equals(reallyAFoo); // returns false Methods are resolved by the type of...