Author: Rahul Bhati

Loggers in Rust

Don’t Worry… I hugged it first – Loggers In Rust

Reading Time: 2 minutes Loggers play the most significant role in the software development community that not all developers take it seriously. Due to this, all have lost countless hours while debugging the code. So it is helpful to use logger. So, lets explore how to use loggers in Rust. Importance of Logger? Logger provides tremendous help to the developer while understanding the code. But also some developer assumes Continue Reading

Basic Introduction to Actix-Web Part-1

Reading Time: 2 minutes Actix-web is a small and pragmatic framework of RUST. If you are already a Rust programmer you will probably find yourself at home quickly, but even if you are coming from another programming language you should find actix-web easy to pick up. First of all, you should add an actix-web dependency in cargo.toml [dependencies] actix-web = “0.7”   Creating a basic application with Actix:- A basic example Continue Reading

Pattern matching in RUST

Reading Time: 2 minutes Pattern matching is a mechanism for checking a value against a pattern. A successful match can also deconstruct a value into its constituent parts. It is a more powerful version of the statementswitch in languages like C++, and Java, it can likewise be used in place of a series of if/else statements. In Rust, Patterns are a special type of syntax for matching against the structure Continue Reading


OOP Features of RUST

Reading Time: 2 minutes The OOP concept is designed to overcome the drawbacks of procedural programming and structured programming approach. We already know that the four main pillars of OOP (Object Oriented Programming Language) are Encapsulation, Inheritance, Abstraction, and Polymorphism. In this blog, we will discover how rust also provides some of the necessary features of OOP. 1. Encapsulation – Encapsulation is wrapping of data and information together in a Continue Reading


What are Smart Pointers in RUST?

Reading Time: 4 minutes In Rust, Smart Pointers are not only pointers but a data structure as well. They are also available in many other languages, but their origin lies in c++. Smart pointers are generally implemented through structs. Following are the types of Smart Pointer in rust. 1. Box The box is the most simple smart pointer which enables recursive types. At compile time rust compiler wants to Continue Reading


How We can do Fearless Concurrency in RUST

Reading Time: 2 minutes Handling concurrent programming safely and efficiently is another of Rust’s major goals. Concurrent programming, where different parts of the program execute independently, and parallelly. Creating Thread-In RUST:- In RUST to create a new thread, we call the thread:: spawn function and pass it in a closure containing the code we want to run in the new thread. Example: Filename: src/ use std::thread; use std::time::Duration; fn Continue Reading


Introduction to Error Handling in RUST

Reading Time: 3 minutes Like most programming languages, Rust encourages the programmer to handle errors in a particular way. If we talk in a general way Rust gives you an acknowledgment about an error and gives you an option to define some action for it before compile. This makes your program more robust by ensuring that you’ll discover errors and handle them appropriately. Rust group errors into two major Continue Reading

Spark vs MapReduce: Which is better?

Reading Time: 3 minutes Both the technologies are equipped with amazing features, however with the increased need for real-time analytics, these two giving tough competition to each other What are MapReduce and Spark? MapReduce:- MapReduce is a programming model for processing huge amounts of data in a parallel and distributed. In this model, there are two tasks that are undertaken Map and Reduce and there is a map function Continue Reading