Error handling in Solidity is very useful

Reading Time: 3 minutes Hello guys, here is another blog on Solidity. Check out my previous blog on Value types in Solidity. In this blog, we will see how to do error handling in Solidity. Solidity uses state-reverting exceptions to handle errors. Such an exception undoes all changes made to the state in the current call and all its sub-calls and reports the error to the caller. When exceptions Continue Reading

Expressions and Control Structures in Solidity

Reading Time: 3 minutes Hey Readers! Welcome back to the world of Solidity. In this blog we will see what are the Expressions and Control Structures in Solidity. Expressions and Control Structures in Solidity is a vast concept that we will see today. Control Structures Most of the control structures known from curly-braces languages are available in Solidity: There are if, else, while, do, for, break, continue, return, with Continue Reading

Box Pointers in Rust make recursive types possible

Reading Time: 3 minutes Overview A pointer is a general programming concept for a variable that contains an address in memory. In Rust, we have smart pointers in addition to normal pointers. Smart pointers are data structures that not only act as a pointer but also have additional metadata and capabilities. Box pointers are one of the smart pointers in Rust. Box Pointers Boxes allow you to store data on the heap Continue Reading

Gyroscope sensor of the stm32 board || Part 2

Reading Time: 4 minutes Hi everyone, in today’s blog we are going to work further with the Gyroscope sensor of the stm32 discovery board. We are going to access the l3gd20 package and return the important data to the main method. In the previous part of this series, we learned about the Gyroscope Sensor, how it works and where we use this sensor. So before reading it further, I Continue Reading

Value Types In Solidity

Reading Time: 3 minutes Solidity is an object-oriented, high-level language for creating smart contracts. Smart contracts are programs that decide the behaviour of accounts within the Ethereum state. Solidity is a statically typed language. It supports inheritance, libraries and complex user-defined types among other features. With Solidity, you can create contracts for uses such as voting, crowdfunding, blind auctions, and multi-signature wallets. There are various data types in solidity Continue Reading

Gyroscope| Sensor of the “stm32 Discovery Board”

Reading Time: 4 minutes Today we are going to learn about a new sensor of the stm32f3 Discovery Board. This sensor is known as Gyroscope. We are going to know about this particular sensor and its function and why we need it in our embedded development. This is going to be a series of the blogs just like other series for Sensors. In our previous series of blogs, we Continue Reading

Accelerometer as Puncho-o-meter | The “stm32-Discovery Board Sensor”- Part 3

Reading Time: 4 minutes Hello everyone, In this blog, we are going to provide you the way to use the Accelerometer Sensor of the Discovery Board as a Punch-o-meter. This is going to be the last part of the series in which we will work with Accelerometer as Puncho-o-meter. In the previous part, we have discussed the Accelerometer Sensor of the Discovery Board and we also got the readings Continue Reading

Error Handling in Rust – Error are a fact of life in Software.

Reading Time: 4 minutes Hello Readers!! Again I am here with an exciting topic that is Error Handling. As we know errors are things that no one wants in their program. So lets see what are Errors and how we can handle them . An error is basically an unexpected behaviour or event that may lead a program to produce undesired output or terminate abruptly. We can try to find Continue Reading

STM32F3’s Magnetometer | Use-cases & Reading Extraction (Part-1)

Reading Time: 3 minutes An embedded system is computer hardware with software embedded in it. Or we can say it is a combination of computer processors, computer memory, and input/output devices and it can be an independent system or a part of a large system. Hi folks, we are back again with another interesting article where we’ll understand the use-cases of Magnetometer sensor and how to extract readings of Continue Reading

Ownership: An exciting concept of Rust(Part-1)

Reading Time: 4 minutes Ownership, An exciting concept of Rust and it enables Rust to make memory safety guarantees without needing a garbage collector. Therefore, it’s important to understand how ownership works in Rust. While running all the programs manage the way they use computer’s memory. Some languages have garbage collection, in other languages, the programmer must explicitly allocate and free the memory. On the other hand Rust uses Continue Reading

Carpooling Chain – Cab Booking made better

Reading Time: 3 minutes About Carpooling Chain is a decentralized blockchain solution built with the objective of eliminating the need for a central authority to book cabs. The blockchain backend for Carpooling chain is build using Substrate. Substrate is a next-generation framework for blockchain innovation. It comes with everything you need to build your blockchain.  Substrate is a completely free and open-source project. It is built using Rust and WebAssembly. Rust is designed for Continue Reading

Accelerometer as Puncho-o-meter | The “stm32-Discovery Board Sensor”- Part 2

Reading Time: 4 minutes Hi everyone, I hope you all are doing fine. So what’s in today’s blog? In today’s blog, we are going to take our findings further. We are going to get the readings of the Accelerometer Sensor in a variable and then we are going to print them on the itm console using ITM. As we are working with the Embedded Systems they make our task Continue Reading

Message Passing in Rust Threads is very helpful

Reading Time: 3 minutes Rust has been the most loved programming language for the last five years in a row. It is a low-level statically-typed multi-paradigm programming language that’s focused on safety and performance. Rust has facilities for message passing through an mpsc channel which allows various threads to communicate. Rust solves problems that C/C++ has been struggling with for a long time, such as memory errors and building concurrent programs. Due to the borrow checker, Rust can prevent data races at compile-time. Data races Continue Reading