How are generated ids on trello?

371 Views Asked by At

I'm studying the Trello api and had the following doubts: How is generated the id of the cards, boards and lists on trello? Is it used some kind of hash? thanks in advance.

1

There are 1 best solutions below

1
Alexey Guseynov On

You must not make any assumptions on how id's are generated because if you rely on them, your code will eventually break. It is a good tone to generate id's in such a way, that it will be impossible to predict them or make any assumptions. Hashes or random numberas are a good way to achieve that. One of common ways to generate such id's is to use UUID's, but they are long.