Search the web
Sign In
New User? Sign Up
ajug · Australian Java Users Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 6996 - 7025 of 7356   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
6996
We're fortunate to have Mike Keith presenting at the next meeting, which will be Wednesday 17th October. Beer and Nibbles 6:00, session starts at 6:30 sharp....
David Coldrick
coldrick
Offline Send Email
Oct 2, 2007
6:34 am
6997
There are lots of Java JSON libraries out there - has anyone developed a sense of which one is around for keeps? jon....
Jon Seymour
js3ymour
Offline Send Email
Oct 3, 2007
1:01 am
6998
We're fortunate to have Mike Keith presenting at the next meeting, which will be Wednesday 17th October. Drinks and nibbles 5:30, session starts at 6:00 sharp....
David Coldrick
coldrick
Offline Send Email
Oct 10, 2007
12:52 am
6999
public class HashTest { public static void main(String[] args) { HashMap<Object, String> map = new HashMap<Object, String>(); System.err.println("SIZE: " +...
Greg Irvine
gregirvine
Offline Send Email
Oct 12, 2007
7:32 am
7000
My sentiments exactly! 8^) The unexpected behaviour also occurs in 1.5_12 and 1.6_02. _____ From: Jon Seymour [mailto:jon.seymour@...] Sent: Friday, 12...
Greg Irvine
gregirvine
Offline Send Email
Oct 12, 2007
8:15 am
7001
I'm not sure which part is unexpected. The Javadoc for HashMap states... This implementation provides all of the optional map operations, and permits null...
Drew Lethbridge
droooooooooo...
Offline Send Email
Oct 12, 2007
9:45 am
7002
HashMap has always been that way, and for me it is exactly as I would have expected. From the first paragraph of the documentation for HashMap: This...
Benjamin Johnston
superhero@...
Send Email
Oct 12, 2007
9:52 am
7003
please give me a link of good tutorial or pdf or ppt on DAO for java...
coolpundru
Offline Send Email
Oct 12, 2007
4:56 pm
7004
HashMap allows null keys and values. From javadoc: ** * Hash table based implementation of the <tt>Map</tt> interface. This * implementation provides all of...
Krishna Kattirisetti
krishnaprema
Offline Send Email
Oct 12, 2007
5:26 pm
7005
Thanks to everyone who responded by simply pointing out what the javadoc says. However, I think the point of the question might have been missed. How is it...
Greg Irvine
gregirvine
Offline Send Email
Oct 14, 2007
10:59 pm
7006
I fail to see your point. It is perfectly reasonable for three reasons: 1. The documentation for HashMap explicitly mentions that that is what the class does ...
Ishaaq Chandy
ishaaqchandy
Online Now Send Email
Oct 15, 2007
12:43 pm
7007
We're fortunate to have Mike Keith presenting at tonight's meeting. Drinks and nibbles 5:30, session starts at 6:00 sharp. We're at the Wesley Centre, 220 Pitt...
David Coldrick
coldrick
Offline Send Email
Oct 16, 2007
8:10 pm
7008
... If that is your main problem with null you are well off ;-) Null is an ugly beast, although having a hash code is not a problem: there is only one null so...
Peter Becker
peterbecker_de
Offline Send Email
Oct 17, 2007
8:25 am
7009
Peter – what would be “doing things right”. Most of the evil that I see coming from the concept of null seem to me to be unavoidable. The alternative...
Daniel Egan
sixtimesnine42
Offline Send Email
Oct 17, 2007
8:19 pm
7010
Hi All, In light of the recent discussion about nulls in hash maps, I would like to know what the group feels are good (or bad) uses for nulls. Return types....
Robert Bram
robertmarkbram
Offline Send Email
Oct 17, 2007
10:58 pm
7011
In addition to resolving ambiguous overloaded method calls, named parameters can be very useful for ensuring that parameters are assigned correctly for methods...
Daniel Egan
sixtimesnine42
Offline Send Email
Oct 17, 2007
11:20 pm
7012
Daniel, Scala (http://www.scala-lang.org/ , another programming language compiling to the JVM) already improves things by defaulting to not allowing null...
Peter Becker
peterbecker_de
Offline Send Email
Oct 17, 2007
11:24 pm
7013
Hi Robert (and ajug) I use nulls in code to determine if a programmer knows how to write Java code, or if they are a frustrated C programmer using a Java...
Jon Eaves
jon_eaves
Offline Send Email
Oct 17, 2007
11:53 pm
7014
What annoys me most is when a programming language has a feature then people decide it's evil and refuse to use it. The Null Object pattern is fine in some...
John Farrell
friendless_f...
Offline Send Email
Oct 18, 2007
12:54 am
7015
Hi Jon, I am not sure I entirely appreciate what the NullObject pattern can do. It seems that you still need the same branch in logic to deal with null return ...
Robert Bram
robertmarkbram
Offline Send Email
Oct 18, 2007
12:59 am
7016
Hi Peter, Yep, what you have described for Scala is pretty much what I was thinking of. As far as null being an instance of the absurd type, I'm not sure if I...
Daniel Egan
sixtimesnine42
Offline Send Email
Oct 18, 2007
1:29 am
7017
You're misunderstanding the NullObject pattern. That, and the Result object I described perform 2 different operations. In the case of the NullObject pattern,...
Jon Eaves
jon_eaves
Offline Send Email
Oct 18, 2007
1:52 am
7018
Hi John, I kind of agree with you, if you've been given a hammer don't use it to bang in screws. But that doesn't mean you can't bitch about not being given a...
Daniel Egan
sixtimesnine42
Offline Send Email
Oct 18, 2007
2:04 am
7019
... Of course, and bitching is so much fun it's inevitable :-). Remember that this hammer was designed 15(?) years ago when all we had was a hard rock with a...
John Farrell
friendless_f...
Offline Send Email
Oct 18, 2007
2:19 am
7020
Yep John, you're absolutely right, I shouldn't slag off at the designers/creators, at the end of the day when McGyver makes a machine gun out of an air...
Daniel Egan
sixtimesnine42
Offline Send Email
Oct 18, 2007
2:58 am
7021
Daniel, yes, I think you understand Scala right -- at least it matches my understanding which is based on reading up on Scala a bit. Your understanding of what...
Peter Becker
peterbecker_de
Offline Send Email
Oct 18, 2007
3:36 am
7022
... What's convenient to the person coding is not always what is convenient a year later when you need to fix that code quickly. ... I agree that enforcing...
Peter Becker
peterbecker_de
Offline Send Email
Oct 18, 2007
3:44 am
7023
To add something to this (no disagreement at all): I think the point that might be missing here is that there are two scenarios: a) something can not be...
Peter Becker
peterbecker_de
Offline Send Email
Oct 18, 2007
3:50 am
7024
... NullObject is appropriate sometimes. For example, if you have a function like this: void func(MyObject arg) { int i = 0; if (arg == null) { i = i + 1; }...
John Farrell
friendless_f...
Offline Send Email
Oct 18, 2007
4:01 am
7025
OK, so a NullObject would be extremely useful if you can provide a legitimate default implementation - that's cool. I will definitely keep this in mind. ... ...
Robert Bram
robertmarkbram
Offline Send Email
Oct 18, 2007
4:43 am
Messages 6996 - 7025 of 7356   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help