crypto library to generate a UUID:
crypto.randomUUID() // '5872aded-d613-410e-841f-a681a6aa8d8b' crypto.randomUUID() // 'fe6c7438-a833-4c7c-9ea3-cdc84ef41dfc' crypto.randomUUID() // 'e47a03d4-5da3-4451-a2c1-265de99cc2c1' crypto.randomUUID() // '04cdadeb-0228-43db-85dc-ce7e960a6cde'
It is important to remember that UUID is not guaranteed to be unique, although the probability of recurrence is incredibly low. I look forward to exploring
window.crypto API further to see what other cool things we can do!
To be a Dev father
I get asked lots of questions every day, but I’m always surprised that they are rarely questions about code or even technology — many of the questions I get are more about non-dev things like how my office is, what software I use, and often …
attachEvent. Times have changed, but there are still a few features that every developer should …
Elegant Overflow with CSS Ellipsis
Overflow with text is always a big issue, especially in a programmatic environment. There is always only so much space but variable content to add to that space. I recently worked on a table for displaying user information and noticed that longer strings were …
Adding events to add events in MooTools
Note: This post has been updated. One of my big web peeves is when an item has click events attached to it, but the item does not have the “cursor” cursor. I mean how the hell should the user know that they can / should click on …