long id

Oct. 1st, 2015 02:02 pm
juan_gandhi: (VP)
[personal profile] juan_gandhi
I think I got it where all this bs about passing around numerical ids of entities instead of entity references (maybe lazy) come from. It's like 'error code'. It comes from the ancient c programming, where we just could not allocate a string for a readable piece of text, or for the data that may need some efforts to instantiate or allocate.

In short. It's stupid to pass around "ids" in a program.

Date: 2015-10-02 12:36 am (UTC)
From: [identity profile] juan-gandhi.livejournal.com
Oh shit, never thought about CPU registers somewhere inside my phone.

And I never suggested to pass around internal references outside. This may be an interesting problem, passing around internal references; even a numerical id is an internal reference if we look from outside. I routinely talk to our analysts like this - "did it work now for account number 10567"? Now imagine... well, we all know how it is. Phone number (why the fuck it is still a number?), SSN, card number (why number?), etc.

Date: 2015-10-02 01:08 am (UTC)
From: [identity profile] rezkiy.livejournal.com
>> is still a number

Numbers can be trivially entered by a blind, mute person using their foot prosthesis.

Date: 2015-10-02 01:28 am (UTC)
From: [identity profile] soonts.livejournal.com
>never thought about CPU registers somewhere inside my phone
Have you ever developed any software for those phones? I did. Not only I know about their CPU registers, I even know which specific SIMD instruction sets they support.

>I never suggested to pass around internal references outside
“Outside” is a big place sometimes hard to define. If you’re working on a big system like Facebook or Google that spans thousands of servers, where exactly is “outside”?

>why the fuck it is still a number?
Many reasons. The most obvious one is 3G TS 23.038 standard: it’s nearly impossible to quickly replace the whole cellular network infrastructure in the world.

>card number (why number?)
Merely a legacy.
Nowadays, the number is only used when you buy online. In the rest of the use cases the EMV part of your card (https://en.wikipedia.org/wiki/EMV) kicks in.

Date: 2015-10-02 05:00 am (UTC)
From: [identity profile] juan-gandhi.livejournal.com
I actually did. I rolled around "bird-view" maps etc. And I also developed some stuff for Blackberry, where Waterloo idiots designed their JVM to care about registers in a so peculiar way that using Java constants was just out of question (they were "persisted" to flash regularly, for instance).

And yes, I understand that replacing the network standards is pretty hard. Unlike the software.

By "outside" I mean outside one single piece of code.

Date: 2015-10-02 07:09 am (UTC)
From: [identity profile] sassa-nf.livejournal.com
"the number is only used when you buy online...the rest of the use cases"

:) funny, but in the 21st century buying online is the overwhelming majority of the cases (even if not by volume).

Date: 2015-10-02 04:45 am (UTC)
From: [identity profile] yatur.livejournal.com
> SSN, card number (why number?)

What do you suggest instead? Card identifiers must be

1. Unique
2. Long enough so they are hard to remember
3. Hard to guess based on publicly available information
4. Easily transferable by voice over phone lines
5. Short enough to fit in paper forms
6. Replaceable in case of compromise

Anything based on a person's obviously fails #1, #3 and #5.
Some generated words like "GreatBrownFoxJumpsOverALazyDog" fail #4 and #5.
Any form of long hexadecimal gibberish also fails #4 and #5.
Decimal numbers 10-20 digits long work perfectly.



Edited Date: 2015-10-02 04:52 am (UTC)

Date: 2015-10-02 04:56 am (UTC)
From: [identity profile] juan-gandhi.livejournal.com
I do not exactly have a suggestion, I just think this is a funny problem, passing around numbers, why numbers? Because Hollerith invented cards this way?

Date: 2015-10-02 07:07 am (UTC)
From: [identity profile] sassa-nf.livejournal.com
#7 numbers are really internationally recognized by lay people. unlike alphabets (импортные буквы)

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

July 2025

S M T W T F S
  12345
6789 1011 12
131415 1617 1819
20212223242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 23rd, 2025 04:19 pm
Powered by Dreamwidth Studios