A Misconception About Ethereum?steemCreated with Sketch.

in #ethereum6 years ago

People wonder: what's the difference between Bitcoin and Ethereum? The common answer is that we can program Ethereum smart contracts with a language that is Turing Complete.

What's wrong with that? That is one of the most noticeable differences between scripting functionality on the two blockchains. And these Turing Complete languages can loop. Isn't that important?

Yes, but the "main" functionality we need to write powerful DApps is rather first-class-citizenship of smart contracts. Since contracts are first-class-citizens, they can call functions from other contracts and even generate contracts automatically.

First-class-citizenship is a general property of language design. E.g. we call functions "first-class-citizens" in functional programming-- you can define a function within a function and you can pass functions as parameters...

What are the common examples/use cases of smart contracts?

  • Escrows
  • DAO
  • Voting systems
  • Payment processing
  • Tokens

In summary, "autonomous services that remove the middleman."

Autonomous services? i.e. they self-execute, a corrupt power cannot interfere. We also need them to handle complexity and large amounts of data.

Their performance relies heavily on the fact that separate contracts can interact with each other-- one part of the flow/pipeline can be delegated to a specific contract.

Also if set up correctly, faulty code can be replaced.

Contract A needs Contract B to do some heavy lifting? Great. But we found a bug in B! Ok, create a Contract C and make A point to C after its deployed.

New contracts can leverage contracts that are already deployed on-chain.

In short, the most powerful ways to leverage Ethereum are direct results of contracts being able to store data, implement complex logic, and make calls to other contracts. The choice in design to implement contracts as first-class-citizens is crucial. On the other hand, loops afforded by a Turing complete language are not core to Ethereum's design philosophy-- at most, they make certain complex functions convenient to program.


Feel the Branding Power of @goldhash
https://steemit.com/photography/@goldhash/i-feel-the-branding-power-of-goldhash-whenever-i-watch-this

Sort:  

Hello, as a member of @steemdunk you have received a free courtesy boost! Steemdunk is an automated curation platform that is easy to use and built for the community. Join us at https://steemdunk.xyz

Upvote this comment to support the bot and increase your future rewards!

Congratulations @goldhash! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Congratulations @goldhash! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

Click here to view your Board

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @goldhash! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes
Award for the number of upvotes received

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

BTC AND ETHEREUM BOTH ARE FUTURE

ABSOLUTELY!!! general concensus

Congratulations @goldhash! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

You got your First payout
Award for the total payout received

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Congratulations @goldhash! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Congratulations @goldhash! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:
SteemitBoard and the Veterans on Steemit - The First Community Badge.

Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

interesting

Congratulations @goldhash! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

SteemitBoard - Witness Update

Support SteemitBoard's project! Vote for its witness and get one more award!