Stefan BirdProscbird.hashnode.dev·Aug 9, 2023The case for prefixed IDsIDs are often overlooked, but they play a crucial role in almost every application. Most modern IDs are random strings, an improvement on the previously popular sequential IDs. However, we can improve them further by adding a short prefix to designat...Discuss·1 like·44 readsid
Rashedul Islamdev-rashedul.hashnode.dev·Mar 27, 2023generate id with a generator functionfunction* generateId() { let index = 1; while (true) { yield index++; } } const generateUserId = generateId(); const generateProdId = generateId(); // user id console.log("user", generateUserId.next()); console.log("user", generateUserId.next()...Discuss·80 readsid
Igvir Ramirezpwd.hashnode.dev·Feb 22, 2023Using Hash Codes as Unique IdentifiersIntroduction In this article, we will cover a common use case for software developers: Using and generating Unique Identifiers. Let´s start with a definition: What is an identifier? The simplest explanation usually comes from Wikipedia: An identifi...Discuss·10 likes·1.4K readsJava
RobertoTorinocloudit.hashnode.dev·Nov 4, 2022Make Your Id UniqueThere are situations where you want uniqueness but you can not use numbers only letters to distinguish uniqueness, here's an example on how to achieve this: export function makeUnique() { let text = ''; const rangeChoice = 'abcdefghijklmnopqr...Discussunique
Karthik Kadambistick-tech.hashnode.dev·Oct 5, 2022State IDNot everyone wants to get a car initially and hence won't be getting a driver's license too. But you still need an Id using which you can travel within the US without a passport. In California, there are 2 options: State ID Driver Licence and one o...DiscussRandomid