Author: Ayush Mishra

Non-lexical lifetimes in Rust

This blog is for new Rustacean, who just started exploring Rust. I was exploring Rust’s Vector collection, but got confused while testing one of the Vector example of Rust Programming book. Above code won’t compile because we can’t have mutable and immutable references in the same scope. But if we write println! before pushing element into v, code will compile and execute. Here I got Continue Reading

Implement ‘unimplemented’ feature of Rust

The headline looks weird. Isn’t it. Well, there are some hidden corals in Rust sea, which you won’t find in Rust documentation. In the continuation of my exploration about Rust language, I found a useful feature unimplemented!. This feature lets you write a not-yet-implemented method, like this: The methods you define can also take input parameters and specify a return type, like this: Although your Continue Reading

How to Write Better Compilation Error Message In Rust

While exploring Rust’s standard libraries, I came across a beautiful feature of RUST – compile_error. However this feature is useful for only specific use cases, for example:- when you are defining macro_rules! or conditional compilation strategy. Let’s see both use cases, one by one. 1) macro_rules macro is a very powerful feature in Rust. We use it for metaprogramming for reducing the amount of code. Continue Reading

No more run time !! Enjoy Compile time function evaluation using `const fn` in Rust

Sometimes we want the compiler to pre-compute values at compile time. If you have ever done programming in C++, you would have heard about constexpr which is used to improve performance by doing computations at compile time rather than run time. A few days ago, I was exploring Rust’s Unstable Book and found pretty much same feature in Rust, which is const_fn. I started exploring Continue Reading

You can live without Exceptions, If you are using RUST

If you are coming from Java background, where you have used Exception Handling extensively and you have started working on new language like RUST, which doesn’t support Exception Handling then you will be forced to think that does such kind of world really exists? The Java story Java provides full coverage to Exceptions and those are required to be handled with try-catch like construct. In Java, Continue Reading

Are you still using `println` in Rust for debugging?

Printing to standard output is a good way to trace through your code and troubleshoot potential problems. While coding, many programmers use a lot of println statements to see what is going on at different levels in their code. If you are from Java background, you would have used System.out.println() and System.err.println() methods. If you are from Scala background, you would have used println. As Continue Reading

Scrum vs Extreme Programming! Let’s see the difference!

In my previous blog “A quick overview of Scrum and Extreme Programming for the beginners“, I gave a brief introduction on Scrum and Extreme Programming. If we talk about similarities and differences between Scrum and XP, in some ways they are same and yet in some ways they are different. Scrum and Extreme programming, both are referred as “Agile Methodologies”, used in software development to Continue Reading

A quick overview of Scrum and Extreme Programming for the beginners

If you are working on an agile based project, you would hear some terms like “Scrum” and “Extreme Programming“. And then some questions arises in your mind such that how these terms are related to “Agile“, are they similar or is there any difference between them as both of them being the most important methodologies of Agile? Should I use XP or scrum? etc. I will try Continue Reading

Simple steps to make Agile Retrospective fun and effective

Before explaining sprint retrospective, I am assuming that you have a fairly good knowledge of Agile practice management. This blog doesn’t cover Agile basics. This blog is for anyone who wants to be successful in running an Agile Retrospective The sprint retrospective is just for scrum team and gives the team an opportunity at the end of the sprint to take a look back at Continue Reading

A Simple Example using elm

In this blog, we will see how to build a simple application using elm. Elm is a functional language that compiles into javascript with following features:- 1)  Great Performance 2)  No run-time exception 3)  Javascript Interop 4)  Friendly error message 5)  Ability to write functional code Elm is getting popular day by day. According to Slant community, it is the 2nd most popular language, which Continue Reading

A Simple Example of WebSocket based Microservice Architecure using Akka-HTTP in Scala

In my previous blog, I explained how you can implement WebSocket server using Akka-HTTP. As you know,  Microservice architecture has become very popular in recent years. This architecture fits perfect 1) When you want to give support of your application for many platforms such as web, mobile etc. 2) When your application consists of multiple services such as order service, account service, payment service etc. Continue Reading

A simple example to implement WebSocket server using Akka HTTP

This is a very simple example to implement WebSocket server using Akka HTTP. If we have the scenario to transfer real time data from and to server over a HTTP connection, we use WebSocket. Akka provides Akka HTTP library to interact with web services. Akka HTTP provides a stream-based implementation of the WebSocket protocol. In this example, you will see how easily you can create web Continue Reading

Frontend to Backend: Everything is on Scala using Play, Scala.js and ScalaCSS

In my previous post, I tried to create a pure front-end application using Scala.js and ScalaCSS. So that we can build our front-end also in a typesafe way. But there was no server interaction. This time I have tried to make server interaction using play framework. Since this application is about Weather Information System, so I am  hitting a third party api to get weather Continue Reading

Knoldus Pune Careers - Hiring Freshers

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