Delegatecall in solidity

This is used to call other contract method but any change in states happened in the caller contract not in the targeted contract.

Gas Optimization in Solidity Smart Contract

During deployment of a contract gas cost play a vital role. It increase the cost of a deployment cost. we can reduce it via inline assembly language check below example. Without inline assembly the gas cost of the below contract is 106299: With Assembly Language the gas cost of contract is: 105003

Bytes in Solidity

There 2 Types of bytes: Fixed size bytes from (bytes1 to bytes32) dynamic bytes (with specific length)

keccak256 in solidity

keccak256 returns hash of the given argument. It receives arguments with the type of bytes (not in the form of fixed bytes e.g bytes1 to bytes32). And returns hash of bytes32.