Author: Rahul Bhati

Basic Introduction to Actix-Web Part-1

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

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

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?

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

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/main.rs use std::thread; use std::time::Duration; fn Continue Reading

Introduction to Error Handling in RUST

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?

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

Knoldus Pune Careers - Hiring Freshers

Get a head start on your career at Knoldus. Join us!