concept solidity in category blockchain

This is an excerpt from Manning's book Blockchain in Action.
In the simple use case of the counter, no conditions or rules are used. That’s fine; we don’t need any rules, because this problem is a simple one used to illustrate the design process. The contract diagram for the counter is shown in figure 2.5. You’ll use the camel-case convention for the identifiers of the various components (data variables and functions) of the contract. The diagram shows the name of the contract as Counter, the only data element as an integer called
value, and the functions from the use case diagram in figure 2.3, which is replicated on the left side of figure 2.5. Besides the three functions--initialize(),increment(), anddecrement()--the contract diagram includes aconstructor()function and aget()function. The constructor, when invoked, deploys the smart contract code in the VM sandbox supported by the blockchain infrastructure. It also initializes the contract’s state if the constructor has any parameters. Theget()function is a utility function that returns the current value of the counter. This function is a view function; no transaction is recorded when it is invoked.

This is an excerpt from Manning's book Permissioned Blockchains in Action.
For this, we will use the Solidity language. Solidity is a language designed specifically for smart contracts and is by far the most popular smart contract language. That said, do keep in mind that it is not the only one: Go, Scilla, Java and others are also valid choices for writing smart contracts in. With that caveat out of the way, let’s dive right in.