Learn Solidity | Introduction

Abhijit Roy
2 min readSep 12, 2021

--

Smart Contract interaction & application

Explore Solidity from a professional developer

Welcome to the new series! 😎

We all know that Solidityis the most popular smart contract language in the Blockchain ecosystem, especially for EVM chains.

As a beginner, many people might see Solidity as Javascript in their initial journey. But, let me alert you that actually, it’s not fully true. Well, the language is mostly inspired from C/C++ . And this is the reason primarily that many programmers/coders might take a step back later while writing core-level smart contracts.

Comparison with C/C++

  • Variable type declaration is a must in Solidity .
  • Automatic variable initialization during contract deployment.
  • Supports Object-Oriented Programming (OOP).
  • Compiled to bytecode in Solidity like binary code in C/C++.
  • Supports almost all the variable types of C/C++ & more like uint , int(of varying bits), bytes (of varying size)etc.
  • Unlike EOSIO C/C++ (earlier version v2.0), EVM’s Solidity does support contract methods, which can return values.

Limitations

  • In Solidity , while using for-loop, the max iteration recommended is 256. After which it might exceed the ‘gas limit per block’.
  • There are very limited types of storage containers like mapping, array, struct.

Summary

In this series, one would get to experience some core functionalities of Solidity. I would also try to give a comparo with other Blockchain protocol’s smart contract language.

Thanks a lot for your patience 🙏

Follow me on:
Email — dalvath3700@gmail.com
Github — https://github.com/abhi3700
Telegram — https://t.me/abhi3700
Steemit — https://steemit.com/@abhi3700
LinkedIn — https://www.linkedin.com/in/abhi3700/
Twitter — https://twitter.com/abhi3700
Medium — https://medium.com/@abhi3700
Fiverr — https://www.fiverr.com/abhijitroy294
Facebook — https://www.facebook.com/abhi3700

--

--

Abhijit Roy
Abhijit Roy

Written by Abhijit Roy

Blockchain (Rust, Solidity, C++, JS/TS) || Data Science (Python) || Bot (Python) || Backend (JS, TS)

No responses yet