What is Solidity?

Solidity is an object oriented, high-level programming language for implementing smart contracts. It allows to write programs, which governs the behavior of accounts within blockhain network. It is just like any other programming language. Comprised of:

  • loops
  • conditionals
  • variables
  • functions
  • objects and types
  • and handles money transactions!

Before jumping to coding with Solidity it is important to familiarize oneself with blokchain's mental models - these are essential because of the contrasting difference in a blockchain application architecture and a common web application architecture. Where we want to go is Web 3.0, where servers and databases are as decentralized as the clients. In other words, clients can also act as servers or databases or both (aka, peer-to-peer). With many-to-many relationships at all levels of the stack, there are no concentrations of control and a single point of failure. The network is maximally distributed.

Essentially the following points need to be kept in mind always:

  • Memory is limited - each memory element requires all nodes on the blockchain to confirm and store that element
  • Computation complexity is limited
  • Reading data is free
  • Each write operation has a cost associated with it - you pay it with ether. The cost is measured in gas.


📚 Solidity Docs