The idea behind smart contract (PART 2)

Joefitech
2 min readDec 12, 2022

Exploring the Ethereum protocol
Being the first to implement a smart contract

Ethereum is a technology comprised of digital money, global payment, and the creation of applications, using what is called the Ethereum Virtual Machine.

We'll focus more on the core area of its creation of applications as we explore the Ethereum ecosystem.
With the aid of smart contracts - using a programming language that is specific to the Ethereum network called 'Solidity', Ethereum can build decentralized applications (DApps)

Just like any developer can build apps for the apple /play store, developers can also build on top of Ethereum blockchain infrastructure using EVM

In clearer terms, to the end user( the one using the app) 'dapp' might not feel or look any different from the apps you use today
However, DApps are powered by blockchain, which makes them different and perhaps superior

A DApps front-end code user interface can be written in any language such as JavaScript, HTML, or CSS
Its backend code works with a decentralized peer-to-peer network like Ethereum.

Let’s take some more dive into;
Frontend and backend, using an example
Take The “medium app” for example- a simple blogging site that lets users publish their content and interact with content from others.
As a web 2.0 application, it may sound simple, but there is a lot that goes into medium architecture to make it possible.

Firstly: there must be a place to store essential data, such as users, posts, tags, comments, likes, and so on. This requires a constantly updated database

Secondly: backend code (written in languages like nodes.js, Java, or python) must define medium business logic. For example what happens when a new user signs up, publishes a new blog, or comments on someone else's blog?

Thirdly: Frontend end code (typically written in JavaScript, HTML, and CSS) must define medium user interface (UI) logic, for example, what does the site look like, and what happens when a user interacts with each element in the page?

Let's drive all of these homes,
When you write a blog post on medium (as I just did now), I interacted with its frontend code, which talks to its 'backend', which in turn talks to its 'database'. All of this code is hosted on a centralized server and sent to users through an internet browser.

This is just a good example of how our common web 2 applications work today

Having laid this foundation on how a centralized app work, we’ll focus more on how DApps work in our next post.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Joefitech
Joefitech

Written by Joefitech

Crypto and Defi research analyst || Defi/Blockchain Writer

No responses yet

Write a response