Been doing some Knop conversion work today. Have something for discussion in regards to the method knop_unique. It's been translated and working for some time so this is more a revisit to it.
In Lasso 8 it produces short and manageable string but they can't be guarantied to be unique. I've had it happen that producing a burst of knop_unique values gave me duplicates. It was probably once created as an alternative to Lassos built in lasso_uniqueid. A tag that had/has some drawbacks that's been discussed at a number of occasions. Making ones own implementations of id generators has been popular.
Anyway. In Lasso 9 lasso_uniqueid returns a longer, very unique string that's removes all drawbacks in regards to both knop_unique and Lasso 8 lasso_uniqueid. With one exception. The result is fairly long, 40 chars.
Speed difference for the present knop_unique implementation and built in lasso_uniqueid is substantial. Built in is way faster. So, I would prefer to have knop_unique simply call lasso_uniqueid and thus making the end result one and the same. That would gain speed and a guarantee that the result is unique. But, the result will not look the same as before and, worst of all, it will be longer. The length might break present solutions where the id is stored in fields of limited length. The difference is 20 chars for present implementation and 40 for lasso_uniqueid.
What's the list views on this?
HDB Jolle -- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@lists.montania.se>. To unsubscribe, E-mail to: <knop-off@lists.montania.se> Send administrative queries to <knop-request@lists.montania.se> List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/
Jan 27
Steve Piercy - Web Site Builder Re: Knop_unique for Lasso 9
Jan 27, 2011; 10:02
Steve Piercy - Web Site Builder
Re: Knop_unique for Lasso 9
Jan 27
Jolle Carlestam Re: Knop_unique for Lasso 9
Jan 27, 2011; 19:13
Jolle Carlestam
Re: Knop_unique for Lasso 9
Jan 27
Steve Piercy - Web Site Builder Re: Knop_unique for Lasso 9
Jan 27, 2011; 10:53
Steve Piercy - Web Site Builder
Re: Knop_unique for Lasso 9
Jan 27
Bil Corry Re: Knop_unique for Lasso 9
Jan 27, 2011; 12:16
Bil Corry
Re: Knop_unique for Lasso 9
Jan 28
Jolle Carlestam Re: Knop_unique for Lasso 9
Jan 28, 2011; 09:20
Jolle Carlestam
Re: Knop_unique for Lasso 9
Jan 28
Jolle Carlestam Re: Knop_unique for Lasso 9
Jan 28, 2011; 09:31
Jolle Carlestam
Re: Knop_unique for Lasso 9
Jan 28
Jolle Carlestam Re: Knop_unique for Lasso 9
Jan 28, 2011; 10:30
Jolle Carlestam
Re: Knop_unique for Lasso 9
Jan 28
Bil Corry Re: Knop_unique for Lasso 9
Jan 28, 2011; 01:31
Bil Corry
Re: Knop_unique for Lasso 9
Jan 28
Bil Corry Re: Knop_unique for Lasso 9
Jan 28, 2011; 01:35
Bil Corry
Re: Knop_unique for Lasso 9
Jan 28
Jolle Carlestam Re: Knop_unique for Lasso 9
Jan 28, 2011; 10:48
Jolle Carlestam
Re: Knop_unique for Lasso 9
Jan 28
Jolle Carlestam Re: Knop_unique for Lasso 9
Jan 28, 2011; 10:59
Jolle Carlestam
Re: Knop_unique for Lasso 9
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!