NFTs have taken the digital world by storm. You’ve heard of creators cashing in big on the new technology, like the art piece sold for $70 million. But what do NFTs mean for the average content creator?
NFTs are special tokens on the blockchain. They have a unique ID along with a publicly visible transaction history. Since they exist on a public ledger, you can trace a token’s ownership history from creation through each subsequent buyer, along with the sale price at each step. You can think of it like a receipt, it’s publicly verifiable proof that a transaction took…
NFTs are set to change the world of digital content forever, but the public nature of the blockchain makes it difficult for buyers to really feel like the true owner of their tokens. Using the digital signatures built into the Ethereum protocol, we can fix this problem.
NFT stands for Non-fungible token. I don’t know about you, but I’ve never used the word fungible in my life. What it really means, is that each token is unique and special, like a snowflake. Pennies in the US financial system are fungible tokens, each one is considered to be identical when used…
Most people would tell you not to use a while loop in Elixir. And most people are right. Since data is immutable, they generally won’t do you much good. But I am not most people.
while loop looks something like this:
This wouldn’t quite work in Elixir. The value of
x can't change, so depending on the value of
x, the loop would either continue forever, or finish immediately. Not so helpful is it? "But Wait!" you proudly shout, "We can just reassign the value of
x and loop to our hearts content". But thats not really…
Data structures in Elixir are immutable. Once I define a value, it cannot be changed. When I declare the list of outer planets as
outer_planets = ["Jupiter", "Saturn", "Neptune", "Pluto"]
There’s not a damn thing I, nor Neil Degrasse Tyson could do to remove “Pluto” from that list. Sure, I could try to change it, but all attempts will create a new list, leaving the old one fully intact.
iex> outer_planets = ["Jupiter", "Saturn", "Neptune", "Pluto"]`,
iex> updated_planets = List.delete(outer_planets, "Pluto")
iex> ["Jupiter", "Saturn", "Neptune"]
iex> ["Jupiter", "Saturn", "Neptune", "Pluto"]
Although nothing stops me from simply…