Author: Ayush Aggarwal

Structures In Rust

Structures are used to creating a more complex data structure. Basically, we have three types of Structures in Rust: The classic C Structs Tuple structs, which are, basically, named tuples. Unit structs, which are field-less, are useful for generics. In general, If we take an example of length and breadth in case of the area of many of 2D shapes then we calculate the area Continue Reading

Macros in Rust #2

In my previous blog, we have already discussed what macros and why macros. Now in this blog, we will go through the types of macros in detail. So basically we have two types of macros in Rust language i.e Declarative Macros and Procedural Macros. Declarative Macros: Actually, we can further divide Declarative macros into two parts ones defined with the macro_rules! keyword, and ones defined with the macro Continue Reading

Macros in Rust #1

Macros: Basically, macros are a way of writing code that writes other code, which is known as metaprogramming. I have also used ‘println!()’ macros in my previous blog. Here macros expand to produce more code than the code you’ve written manually. Metaprogramming helps us to reduce the amount of code we write and maintain.

Why Rust & What Is Rust

Why Rust?  In system programming languages we basically face two complex problems which are difficult to crack i.e. Secure and Multithreaded code. For this Rust has added its own goals of memory safety and data-race-free concurrency. What Is Rust?  Rust is a System programing language sponsored by Mozilla which describes it as a “safe,  concurrent and practical language,” supporting functional and imperative-procedural paradigms. It basically Continue Reading

A Quick Guide: Java 8 DateTime API

DateTime API in Java 8 has overcome many shortcomings of older java.util.Date and java.util.Calendar. As there were many issues with the older Date and Calendar API. So now let us see how this java 8 DateTime API resolve the issues and how it provides the better support in JDK core. Issues in Existing Date/Time APIs : Thread Safety. Zoned Date and Time. Design and Easiness. Continue Reading

Quick Go Through of JAVA 8 Streams

Java 8 implements many features of functional programming such as Optional, Completable Futures, Streams, Lambdas and many more. All these Features have created a language which is more readable and more concise. As Java 8 is giving more importance to Concurrency. So, Java 8 has developed Streams API which leads us to peep in the window of parallelism. The Stream is a new abstract layer Continue Reading

Java8 Bliss: Optional

Java8 is not so new now. Everybody is well aware and probably using it in one or the other project. Certainly, Java8 is a big leap for Java since it makes Java functional. (though its procedural internally). Anyway, it successfully got interested in the IT industry. In this blog, I am going to talk about one of the vital features of Java8 i.e. Optional. Optional, Continue Reading

A Quick start to GraphQL and Sangria

GraphQL GraphQL is a data query language developed  by Facebook in 2012 before it was publicly released in 2015. It is a query language for our API, and a server-side runtime for executing queries by using a type system we define for our data. It gives us an alternative to REST and ad-hoc webservice architectures. It allows the clients to define the structure of the Continue Reading

%d bloggers like this: