Re: Could you comment on my little program? Thank you!



Oliver Wong wrote:

[code snipped]

I don't think you should have the client code pass a string in, because if the client unwittingly passes in the same string twice, that could screw things up. Instad, your JMenuPower class should take care of generating a unique identifier (not nescessarly a String) for every Mapper passed in.

Thank you. Could you elaborate it more? I cannot follow you.
.



Relevant Pages

  • Re: accessors
    ... mentioned that returning references from functions makes using ... boundaries, but if i did, "string const& nameconst" is functionally ... the same as "string nameconst", so i don't see why i'd have to change ... anything (but if i did, the change does not really affect client code, ...
    (comp.lang.cpp)
  • Re: Partial Search
    ... > I have a HashMap that maps names to objects they represent. ... > Client Code needs to search based on some string that cd be anywhere ... > Client Code searches using "d", ... an efficient solution is a ternary search tree (TST). ...
    (comp.lang.java.programmer)
  • Re: Adding Invalid Client Codes
    ... where it would have entered the CLIENT CODE if there were a match, ... Dim temp As String, WrhsCode As String, CliCode As String, doubles As ... Dim cntr As Long ...
    (microsoft.public.access.formscoding)
  • Re: Convert to datatype money
    ... Which of course will be the string '500+300' ... string datatype and not some numeric datatype. ... I suggest you fix your client code. ... > I have 2 variables which I want to add (strBalance and strLink) the values ...
    (microsoft.public.sqlserver.programming)
  • Re: Oh... no....
    ... given format, or worse, write code in TSQL to determine what ... Better to leave string handling to the client side, ... Put another way, if the client code has a date value as a string, it ...
    (microsoft.public.sqlserver.programming)