Re: Why does 4D have uppercase UUIDs?

2017-04-24 Thread Kirk Brooks via 4D_Tech
Tim,

On Mon, Apr 24, 2017 at 12:14 PM, Tim Nevels via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I’m curious why you want to “read” a UUID? I can’t read one and remember
> it with or without lowercase characters. It’s just too long.
>
​Well, we all seem to have our favorite little data fetishes...

My use of UUIDs is primarily for primary keys. And in those situations
> where I need to do some debugging
> ​...
>
​Me too. And I couldn't remember one to save. But sometimes I look at an ID
field in record A then glance over to something else to verify things
happened the way I wanted them to. And in that instant I'm really looking
at the first or last few characters. Lowercase chars mixed with numbers
have more distinctive patterns than when it's all uppercase. ​

-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

*- Edmund Burke*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Why does 4D have uppercase UUIDs?

2017-04-24 Thread Tim Nevels via 4D_Tech
On Apr 24, 2017, at 11:37 AM, Kirk Brooks wrote:

> I was looking up something else yesterday and came across some comments and
> directions regarding UUIDs and saying that they should always be lowercase.
> But this isn't a hard rule, apparently. And 4D prefers to uppercase them -
> which I find harder to read.

I’m curious why you want to “read” a UUID? I can’t read one and remember it 
with or without lowercase characters. It’s just too long.

My use of UUIDs is primarily for primary keys. And in those situations where I 
need to do some debugging and have to query on a UUID to find something, I have 
this object method for the UUID field on an input form:

  // copy UUID to pasteboard if Mouse Enter and Shift Key down
If ((Form event=On Mouse Enter) & Shift down)
SET TEXT TO PASTEBOARD(Self->)
BEEP
End if 

Then I don’t have to read it or remember it and it is on the pasteboard ready 
for me to paste into the Query Editor.

Tim


Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Why does 4D have uppercase UUIDs?

2017-04-24 Thread Lee Hinde via 4D_Tech
python -c 'import uuid; print uuid.uuid4()'

returns: 

8f1dad2d-2eec-4da7-b484-63a7e7549824

Not that that’s canonical, just offering another sample.


> On Apr 23, 2017, at 10:03 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> I wasn't aware of the argument that they should always be lowercase.
> 
> it's true that the native function on Windows (UuidCreate, UuidToString) 
> creates lowercase,
> but on Mac (NSUUID.UUIDString, CFUUIDCreate/CFUUIDCreateString) they are 
> uppercase and also hyphenated.
> 
> uppercase-non-hyphenated seems like a reasonable cross-platform solution.
> 
>> 2017/04/24 4:21、Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> のメール:
>> 
>> I was looking up something else yesterday and came across some comments and
>> directions regarding UUIDs and saying that they should always be lowercase.
>> But this isn't a hard rule, apparently. And 4D prefers to uppercase them -
>> which I find harder to read.
>> Just curious what that's about and if there's some important distinction
>> here I'm not aware of.
> 
> 

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Why does 4D have uppercase UUIDs?

2017-04-24 Thread Dennis, Neil via 4D_Tech
> uppercase-non-hyphenated seems like a reasonable cross-platform solution

Nicely put :)

Upper/Lower with or without dashes, under the hood it is a 128 bit integer, the 
letters and numbers are just the number in Hex (i.e. it doesn't make a 
difference on the case)

Even Wiki says upper or lower case 
https://en.wikipedia.org/wiki/Universally_unique_identifier 

Neil






--

Privacy Disclaimer: This message contains confidential information and is 
intended only for the named addressee. If you are not the named addressee you 
should not disseminate, distribute or copy this email. Please delete this email 
from your system and notify the sender immediately by replying to this email.  
If you are not the intended recipient you are notified that disclosing, 
copying, distributing or taking any action in reliance on the contents of this 
information is strictly prohibited.

The Alternative Investments division of UMB Fund Services provides a full range 
of services to hedge funds, funds of funds and private equity funds.  Any tax 
advice in this communication is not intended to be used, and cannot be used, by 
a client or any other person or entity for the purpose of (a) avoiding 
penalties that may be imposed on any taxpayer or (b) promoting, marketing, or 
recommending to another party any matter addressed herein.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Why does 4D have uppercase UUIDs?

2017-04-23 Thread Keisuke Miyako via 4D_Tech
I wasn't aware of the argument that they should always be lowercase.

it's true that the native function on Windows (UuidCreate, UuidToString) 
creates lowercase,
but on Mac (NSUUID.UUIDString, CFUUIDCreate/CFUUIDCreateString) they are 
uppercase and also hyphenated.

uppercase-non-hyphenated seems like a reasonable cross-platform solution.

> 2017/04/24 4:21、Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> のメール:
>
> I was looking up something else yesterday and came across some comments and
> directions regarding UUIDs and saying that they should always be lowercase.
> But this isn't a hard rule, apparently. And 4D prefers to uppercase them -
> which I find harder to read.
> Just curious what that's about and if there's some important distinction
> here I'm not aware of.



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Why does 4D have uppercase UUIDs?

2017-04-23 Thread Arnaud de Montard via 4D_Tech

> Le 23 avr. 2017 à 21:41, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Arnaud,
> 
>> [...]
>> 
> ​Yeah - please. The google translate makes no sense. ​

Agree, I prefer Ioda. 

+++
me: 
wondering why uuid are uppercase and md5 lowercase…
UPPERCASE IS UGLY, IT YELLS

me (again):
BTW a uuid field is perfect to store a md5

Bruno:
to help differentiate between a uuid and a md5  :-)))

me:
so clever. 
I was thinking the uuid guy at 4D shouts to be paid better while the md5 one is 
shy. 
+++


some links:



computer science is strange. 

-- 
Arnaud de Montard 



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Why does 4D have uppercase UUIDs?

2017-04-23 Thread Kirk Brooks via 4D_Tech
Arnaud,

On Sun, Apr 23, 2017 at 12:31 PM, Arnaud de Montard via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi Kirk,
> 
> (feel free to ask for translation if needed)
>
​Yeah - please. The google translate makes no sense. ​

-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

*- Edmund Burke*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Why does 4D have uppercase UUIDs?

2017-04-23 Thread Arnaud de Montard via 4D_Tech

> Le 23 avr. 2017 à 21:21, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> [...]
> Just curious what that's about and if there's some important distinction
> here I'm not aware of.

Hi Kirk, 

(feel free to ask for translation if needed)

-- 
Arnaud de Montard 



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**