
Publishing content covering Web Dev | Fullstack dev | building w/ React & JAMStack
Los Angeles, CA
Joined November 2016
- Tweets1.1K
- Following253
- Followers75
- Likes1.9K
Pinned Tweet
Feeling confident in Javascript?
Well, given a string of lowercase letters, would you be able to sum them all up into 1 value?
In one line of code?
Solution and explanations are below.
1/6🧵👇
1
AlexHΞ👨💻🐧 retweeted
TW: pic of damaged face***
thursday night, i was attacked while going home in brooklyn. i suffered a minor skull fracture, broken teeth, & stitches on my face. im missing work to recover and need help for food & items while at home. pls help if u can, my ven/ca are lanaeatspizza
> .reduce((a, b) => a + b, 0);
Lastly, this reduces the list down to a single value.
It calls the function we pass on each item in the array, storing the result and calling it again with the next value in the array.
Here we are summing up every element in the list.
1
Ex. Protocol DAO
Some examples of Protocol DAOs are
- Uniswap
- Compound
- Aave
For example, Uniswap token holders voted on which Layer-2 networks the protocol should be deployed.
6/16🧵👇
1
Polkadot is a cryptocurrency network that wants to help weave all the disparate blockchains together.
Currently, blockchains operate in silos, separately.
But Polkadot promises to fix this by creating an internet of interoperable blockchains.
2/11🧵👇
How do DAOs work?
- Governance mechanism is provided by the smart-contracts
- Governance tokens are used by members to vote on actions taken by the DAO
- more contributed = stronger vote
- Outcome can also be based on participation
4/13🧵👇
1


